2000-12-13 15:16:34 +00:00
|
|
|
#
|
|
|
|
|
# Petidomo Makefile
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
CC = @CC@
|
|
|
|
|
AR = ar
|
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
LEX = @LEX@
|
|
|
|
|
YACC = @YACC@
|
|
|
|
|
|
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
|
CPPFLAGS = @CPPFLAGS@ @DEFS@
|
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2000-12-14 15:26:44 +00:00
|
|
|
OBJS = acl.o archive.o argvSetDebugLevel.o authen.o config.o exit.o \
|
|
|
|
|
filter.o handleacl.o help.o hermes.o index.o io.o listserv.o \
|
|
|
|
|
mailer.o members.o parsearray.o password.o rfcparse.o \
|
|
|
|
|
subscribe.o tool.o signature.o unsubscribe.o main.o
|
2000-12-13 16:53:19 +00:00
|
|
|
LIBS = librfc822/librfc822.a liblists/liblists.a libargv/libargv.a \
|
2000-12-14 15:26:44 +00:00
|
|
|
libconfigfile/libconfigfile.a libtext/libtext.a \
|
|
|
|
|
libdebug/libdebug.a
|
2000-12-13 15:16:34 +00:00
|
|
|
|
|
|
|
|
.SUFFIXES:
|
2000-12-14 15:26:44 +00:00
|
|
|
.SUFFIXES: .c .o
|
2000-12-13 15:16:34 +00:00
|
|
|
|
2000-12-14 15:26:44 +00:00
|
|
|
.c.o:
|
2000-12-14 15:30:52 +00:00
|
|
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
|
2000-12-13 15:16:34 +00:00
|
|
|
|
|
|
|
|
all: hermes listserv
|
|
|
|
|
|
|
|
|
|
petidomo: $(OBJS) $(LIBS)
|
|
|
|
|
$(CC) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
|
|
hermes listserv: petidomo
|
|
|
|
|
@rm -f $@
|
|
|
|
|
ln -s $< $@
|
|
|
|
|
|
|
|
|
|
acl.c acl_scan.h: acl.y
|
|
|
|
|
$(YACC) -d -p acl acl.y
|
|
|
|
|
mv y.tab.c acl.c
|
|
|
|
|
mv y.tab.h acl_scan.h
|
|
|
|
|
|
|
|
|
|
acl_scan.c: acl_scan.l acl_scan.h
|
2000-12-14 15:30:52 +00:00
|
|
|
$(LEX) -i -Pacl acl_scan.l
|
2000-12-13 15:16:34 +00:00
|
|
|
mv lex.acl.c acl_scan.c
|
|
|
|
|
|
|
|
|
|
acl.c: acl_scan.c
|
|
|
|
|
|
2000-12-14 15:26:44 +00:00
|
|
|
$(LIBS):
|
|
|
|
|
$(MAKE) -C `echo $@ | sed -e 's@/.*@@'`
|
2000-12-13 15:16:34 +00:00
|
|
|
|
|
|
|
|
clean distclean realclean::
|
|
|
|
|
@for n in lib*; do $(MAKE) -C $$n $@; done
|
|
|
|
|
|
2000-12-14 15:26:44 +00:00
|
|
|
clean::
|
2000-12-13 15:16:34 +00:00
|
|
|
rm -f petidomo listserv hermes
|
|
|
|
|
rm -f $(OBJS)
|
|
|
|
|
rm -f acl_scan.c acl_scan.h acl.c
|
|
|
|
|
|
2000-12-14 15:26:44 +00:00
|
|
|
distclean:: clean
|
2000-12-13 16:42:17 +00:00
|
|
|
rm -f config.log config.cache config.status Makefile
|
2000-12-13 15:16:34 +00:00
|
|
|
|
2000-12-14 15:26:44 +00:00
|
|
|
realclean:: distclean
|
2000-12-13 15:16:34 +00:00
|
|
|
rm -f configure
|
|
|
|
|
|
2000-12-14 15:26:44 +00:00
|
|
|
# Dependencies
|
2000-12-13 15:16:34 +00:00
|
|
|
|
2000-12-14 15:08:14 +00:00
|
|
|
acl.o: libtext/text.h petidomo.h libargv/argv.h debug.h acl_scan.c acl_scan.h
|
|
|
|
|
acl_scan.o: acl_scan.h
|
2000-12-13 15:16:34 +00:00
|
|
|
archive.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
argvSetDebugLevel.o: debug.h libargv/argv.h
|
|
|
|
|
authen.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
config.o: liblists/lists.h libconfigfile/configfile.h petidomo.h
|
|
|
|
|
config.o: libargv/argv.h debug.h
|
|
|
|
|
exit.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
filter.o: petidomo.h libargv/argv.h debug.h
|
|
|
|
|
handleacl.o: petidomo.h libargv/argv.h debug.h
|
|
|
|
|
help.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
hermes.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
index.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
io.o: petidomo.h libargv/argv.h debug.h
|
|
|
|
|
listserv.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
mailer.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
main.o: petidomo.h libargv/argv.h debug.h
|
|
|
|
|
members.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
parsearray.o: petidomo.h libargv/argv.h debug.h
|
|
|
|
|
password.o: petidomo.h libargv/argv.h debug.h
|
|
|
|
|
rfcparse.o: librfc822/rfc822.h libtext/text.h petidomo.h libargv/argv.h
|
|
|
|
|
rfcparse.o: debug.h
|
|
|
|
|
signature.o: petidomo.h libargv/argv.h debug.h
|
|
|
|
|
subscribe.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
tool.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|
|
|
|
|
unsubscribe.o: libtext/text.h petidomo.h libargv/argv.h debug.h
|