Makefile.mingw 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. PREFIX = "."
  2. BINDIR = $(PREFIX)\
  3. LDLIBS = -lwsock32
  4. FILE_DEFINES = -DLOCAL_ROOT=\".\www\" -DDISK_CACHE_ROOT=\".\cache\"
  5. # You may optionally also add any of the following to DEFINES:
  6. #
  7. # -DNO_DISK_CACHE to compile out the on-disk cache and local web server;
  8. # -DNO_IPv6 to avoid using the RFC 3493 API and stick to stock
  9. # Berkeley sockets;
  10. # -DHAVE_IPv6 to force the use of the RFC 3493 API on systems other
  11. # than GNU/Linux and BSD (let me know if it works);
  12. # -DNO_FANCY_RESOLVER to compile out the asynchronous name resolution
  13. # code;
  14. # -DNO_STANDARD_RESOLVER to compile out the code that falls back to
  15. # gethostbyname/getaddrinfo when DNS requests fail;
  16. # -DNO_TUNNEL to compile out the code that handles CONNECT requests;
  17. # -DNO_SOCKS to compile out the SOCKS gateway code.
  18. # -DNO_FORBIDDEN to compile out the all of the forbidden URL code
  19. # -DNO_REDIRECTOR to compile out the Squid-style redirector code
  20. DEFINES = $(FILE_DEFINES) $(PLATFORM_DEFINES)
  21. CFLAGS = -O3 -g -Wall $(MD5INCLUDES) $(CDEBUGFLAGS) $(DEFINES) $(EXTRA_DEFINES)
  22. SRCS = util.c event.c io.c chunk.c atom.c object.c log.c diskcache.c main.c \
  23. config.c local.c http.c client.c server.c auth.c tunnel.c \
  24. http_parse.c parse_time.c dns.c forbidden.c \
  25. md5import.c md5.c ftsimport.c fts_compat.c socks.c mingw.c
  26. OBJS = util.o event.o io.o chunk.o atom.o object.o log.o diskcache.o main.o \
  27. config.o local.o http.o client.o server.o auth.o tunnel.o \
  28. http_parse.o parse_time.o dns.o forbidden.o \
  29. md5import.o ftsimport.o socks.o mingw.o
  30. polipo.exe: $(OBJS)
  31. $(CC) $(CFLAGS) $(LDFLAGS) -o polipo.exe $(OBJS) $(MD5LIBS) -lwsock32
  32. ftsimport.o: ftsimport.c fts_compat.c
  33. md5import.o: md5import.c md5.c
  34. .PHONY: all install install.binary install.man
  35. all: polipo$(EXE) localindex.html
  36. TAGS: $(SRCS)
  37. etags $(SRCS)
  38. .PHONY: clean
  39. clean:
  40. -rm -f polipo.exe *.o *~ core TAGS gmon.out
  41. -rm -f polipo.cp polipo.fn polipo.log polipo.vr
  42. -rm -f polipo.cps polipo.info* polipo.pg polipo.toc polipo.vrs
  43. -rm -f polipo.aux polipo.dvi polipo.ky polipo.ps polipo.tp
  44. -rm -f polipo.dvi polipo.ps polipo.ps.gz polipo.pdf polipo.html
  45. -rm -rf ./html/
  46. -rm -f polipo.man.html