#
# Makefile for Slurp
#
# C compiler
# Set to cc for machines with an ANSI C compiler or gcc if you don't have
# one as standard and need to use Gnu C (e.g. SunOS 4.x and Linux).
CC = cc
#CC = gcc
# News history database
# If DBZ, DBM, GDBM or NDBM are defined in conf.h then Slurp will need the
# 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 .
#DBLIB = -ldbz
#DBINCLUDE = -I/usr/local/include
#DBLIB = -L/usr/local/lib -lgdbm
# C compilation flags
# Add here any additional compilation flags you need.
# 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
# Add here any additional loader flags you need.
LDFLAGS =
# Additional libraries
# 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 =
# If you don't have the syslog facility then uncomment these two lines
#FAKESRC = fakesyslog.c
#FAKEOBJ = fakesyslog.o
# Everything else probably doesn't need changing
SOURCE = slurp.c newnews.c articles.c history.c time.c sockets.c misc.c \
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 \
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)
.c.o:
$(CC) $(CFLAGS) $(DBINCLUDE) -c $<
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
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
clean:
-rm -f *.o core slurp
shar:
shar -v -s -oslurp.shar $(MANIFEST)
taz:
tar -cf - $(MANIFEST) | compress > slurp.tar.Z
diff:
rcsdiff -q -r1.9 -C 1 $(MANIFEST) > slurp.diff
# END-OF-FILE
syntax highlighted by Code2HTML, v. 0.9.1