diff --git a/.gitignore b/.gitignore index d0d22d9..ada6798 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,10 @@ polipo core *.o +*~ +.*.swp +/ID +/tags +/html +/polipo.info + diff --git a/Makefile b/Makefile index 17b9fdb..2de0d37 100644 --- a/Makefile +++ b/Makefile @@ -72,6 +72,101 @@ OBJS = util.o event.o io.o chunk.o atom.o object.o log.o diskcache.o main.o \ http_parse.o parse_time.o dns.o forbidden.o \ md5import.o ftsimport.o socks.o mingw.o +default: polipo$(EXE) + +atom.o: atom.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +auth.o: auth.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +chunk.o: chunk.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +client.o: client.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +config.o: config.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +diskcache.o: diskcache.c polipo.h mingw.h ftsimport.h atom.h util.h \ + config.h event.h io.h socks.h chunk.h object.h dns.h http.h client.h \ + local.h diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h \ + auth.h tunnel.h md5import.h md5.h +dns.o: dns.c polipo.h mingw.h ftsimport.h atom.h util.h config.h event.h \ + io.h socks.h chunk.h object.h dns.h http.h client.h local.h diskcache.h \ + server.h http_parse.h parse_time.h forbidden.h log.h auth.h tunnel.h +event.o: event.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +forbidden.o: forbidden.c polipo.h mingw.h ftsimport.h atom.h util.h \ + config.h event.h io.h socks.h chunk.h object.h dns.h http.h client.h \ + local.h diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h \ + auth.h tunnel.h +fts_compat.o: fts_compat.c fts_compat.h +ftsimport.o: ftsimport.c polipo.h mingw.h ftsimport.h atom.h util.h \ + config.h event.h io.h socks.h chunk.h object.h dns.h http.h client.h \ + local.h diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h \ + auth.h tunnel.h +http.o: http.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +http_parse.o: http_parse.c polipo.h mingw.h ftsimport.h atom.h util.h \ + config.h event.h io.h socks.h chunk.h object.h dns.h http.h client.h \ + local.h diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h \ + auth.h tunnel.h +io.o: io.c polipo.h mingw.h ftsimport.h atom.h util.h config.h event.h \ + io.h socks.h chunk.h object.h dns.h http.h client.h local.h diskcache.h \ + server.h http_parse.h parse_time.h forbidden.h log.h auth.h tunnel.h +local.o: local.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +log.o: log.c polipo.h mingw.h ftsimport.h atom.h util.h config.h event.h \ + io.h socks.h chunk.h object.h dns.h http.h client.h local.h diskcache.h \ + server.h http_parse.h parse_time.h forbidden.h log.h auth.h tunnel.h +main.o: main.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +md5.o: md5.c md5.h +md5import.o: md5import.c md5.c md5.h +mingw.o: mingw.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +object.o: object.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +parse_time.o: parse_time.c polipo.h mingw.h ftsimport.h atom.h util.h \ + config.h event.h io.h socks.h chunk.h object.h dns.h http.h client.h \ + local.h diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h \ + auth.h tunnel.h +server.o: server.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +socks.o: socks.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +tunnel.o: tunnel.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h +util.o: util.c polipo.h mingw.h ftsimport.h atom.h util.h config.h \ + event.h io.h socks.h chunk.h object.h dns.h http.h client.h local.h \ + diskcache.h server.h http_parse.h parse_time.h forbidden.h log.h auth.h \ + tunnel.h + polipo$(EXE): $(OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o polipo$(EXE) $(OBJS) $(MD5LIBS) $(LDLIBS) diff --git a/log.h b/log.h index d4c4321..ec92769 100644 --- a/log.h +++ b/log.h @@ -45,7 +45,7 @@ THE SOFTWARE. #define D_IO 0x200000 #define LOGGING_DEFAULT (L_ERROR | L_WARN | L_INFO) -#define LOGGING_MAX 0xFF +#define LOGGING_MAX (~0) extern int scrubLogs;