--- Makefile.orig Tue Feb 7 12:37:45 1995 +++ Makefile Sun Nov 9 18:14:24 1997 @@ -15,10 +15,10 @@ # appropriate header file and library for the news database format that # you have chosen. -DBINCLUDE = -I/usr/local/src/cnews/dbz -DBLIB = /usr/local/src/cnews/dbz/dbz.o +#DBINCLUDE = -I/usr/local/src/cnews/dbz +#DBLIB = /usr/local/src/cnews/dbz/dbz.o -#DBINCLUDE = +DBINCLUDE = -I . #DBLIB = -ldbz #DBINCLUDE = -I/usr/local/include @@ -28,7 +28,11 @@ # C compilation flags # Add here any additional compilation flags you need. -CFLAGS = -O +# To enable the site exclusion features, define SITEEXCLUDING. +# +# If KEEPMISSINGARTS is defined, slurp will attempt on the next run +# to fetch articles which were not available on the current download. +CFLAGS+=-DSITEEXCLUDING -DKEEPMISSINGARTS # Loader flags @@ -41,8 +45,8 @@ # On some systems (e.g. SVR4) you need to include additional socket # libraries. On others (e.g. Linux, BSD) this is not required. -LIBS = -lnsl -lsocket -#LIBS = +#LIBS = -lnsl -lsocket +LIBS = # If you don't have the syslog facility then uncomment these two lines @@ -54,15 +58,16 @@ # Everything else probably doesn't need changing SOURCE = slurp.c newnews.c articles.c history.c time.c sockets.c misc.c \ - cache.c hostfiles.c space.c $(FAKESRC) + dbz.c cache.c hostfiles.c siteexclude.c space.c $(FAKESRC) OBJECT = slurp.o newnews.o articles.o history.o time.o sockets.o misc.o \ - cache.o hostfiles.o space.o $(FAKEOBJ) + dbz.o cache.o hostfiles.o siteexclude.o space.o $(FAKEOBJ) MANIFEST = README slurp.c newnews.c articles.c history.c time.c sockets.c \ misc.c cache.c hostfiles.c space.c fakesyslog.c conf.h slurp.h \ nntp.h syslog.h patchlevel.h Makefile slurp.sys slurp.1 HISTORY +all: slurp slurp: $(OBJECT) $(CC) $(LDFLAGS) $(OBJECT) -o slurp $(DBLIB) $(LIBS) @@ -71,17 +76,17 @@ $(CC) $(CFLAGS) $(DBINCLUDE) -c $< -slurp.o: slurp.c slurp.h conf.h nntp.h syslog.h patchlevel.h -newnews.o: newnews.c slurp.h conf.h nntp.h syslog.h -articles.o: articles.c slurp.h conf.h nntp.h syslog.h +slurp.o: slurp.c slurp.h conf.h nntp.h patchlevel.h +newnews.o: newnews.c slurp.h conf.h nntp.h +articles.o: articles.c slurp.h conf.h nntp.h history.o: history.c slurp.h conf.h nntp.h time.o: time.c slurp.h conf.h -sockets.o: sockets.c slurp.h conf.h nntp.h syslog.h -misc.o: misc.c slurp.h conf.h syslog.h -cache.o: cache.c slurp.h conf.h syslog.h -hostfiles.o: hostfiles.c slurp.h conf.h syslog.h -space.o: space.c slurp.h conf.h syslog.h -fakesyslog.o: fakesyslog.c slurp.h conf.h syslog.h +sockets.o: sockets.c slurp.h conf.h nntp.h +misc.o: misc.c slurp.h conf.h +cache.o: cache.c slurp.h conf.h +hostfiles.o: hostfiles.c slurp.h conf.h +space.o: space.c slurp.h conf.h +fakesyslog.o: fakesyslog.c slurp.h conf.h lint: lint -p $(CFLAGS) $(SOURCE) > slurp.lint