2000-12-13 15:16:34 +00:00
|
|
|
#
|
|
|
|
|
# Petidomo Makefile
|
|
|
|
|
#
|
|
|
|
|
|
2000-12-15 15:48:00 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
|
bindir = @bindir@
|
|
|
|
|
sbindir = @sbindir@
|
|
|
|
|
libexecdir = @libexecdir@
|
|
|
|
|
datadir = @datadir@
|
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
|
sharedstatedir = @sharedstatedir@
|
|
|
|
|
localstatedir = @localstatedir@
|
|
|
|
|
libdir = @libdir@
|
|
|
|
|
infodir = @infodir@
|
|
|
|
|
mandir = @mandir@
|
|
|
|
|
includedir = @includedir@
|
|
|
|
|
|
2000-12-13 15:16:34 +00:00
|
|
|
CC = @CC@
|
2000-12-15 14:54:00 +00:00
|
|
|
CXX = @CXX@
|
2000-12-13 15:16:34 +00:00
|
|
|
AR = ar
|
|
|
|
|
RANLIB = @RANLIB@
|
|
|
|
|
LEX = @LEX@
|
|
|
|
|
YACC = @YACC@
|
|
|
|
|
|
|
|
|
|
CFLAGS = @CFLAGS@
|
2000-12-15 14:54:00 +00:00
|
|
|
CXXFLAGS = @CXXFLAGS@
|
2000-12-13 15:16:34 +00:00
|
|
|
CPPFLAGS = @CPPFLAGS@ @DEFS@
|
|
|
|
|
LDFLAGS = @LDFLAGS@
|
2000-12-14 16:43:10 +00:00
|
|
|
|
2000-12-15 15:56:46 +00:00
|
|
|
OBJS = acl.o archive.o authen.o config.o \
|
2000-12-14 15:26:44 +00:00
|
|
|
filter.o handleacl.o help.o hermes.o index.o io.o listserv.o \
|
|
|
|
|
mailer.o members.o parsearray.o password.o rfcparse.o \
|
2000-12-15 16:16:07 +00:00
|
|
|
subscribe.o tool.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-15 15:48:00 +00:00
|
|
|
libconfigfile/libconfigfile.a libtext/libtext.a
|
2000-12-13 15:16:34 +00:00
|
|
|
|
2000-12-15 14:54:00 +00:00
|
|
|
FLAGS_TO_PASS = CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" LEX="$(LEX)" \
|
|
|
|
|
YACC="$(YACC)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
|
|
|
|
|
CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
|
2000-12-14 16:43:10 +00:00
|
|
|
|
2000-12-13 15:16:34 +00:00
|
|
|
.SUFFIXES:
|
2000-12-15 14:54:00 +00:00
|
|
|
.SUFFIXES: .c .o .cpp
|
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
|
|
|
|
2000-12-15 14:54:00 +00:00
|
|
|
.cpp.o:
|
|
|
|
|
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
|
|
|
|
|
|
2000-12-13 15:16:34 +00:00
|
|
|
petidomo: $(OBJS) $(LIBS)
|
2000-12-15 16:58:11 +00:00
|
|
|
$(CXX) $(OBJS) -o $@ $(LDFLAGS) $(LIBS)
|
2000-12-13 15:16:34 +00:00
|
|
|
|
|
|
|
|
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):
|
2000-12-14 16:43:10 +00:00
|
|
|
(cd `echo $@ | sed -e 's@/.*@@'` && $(MAKE) $(FLAGS_TO_PASS))
|
2000-12-13 15:16:34 +00:00
|
|
|
|
|
|
|
|
clean distclean realclean::
|
2000-12-14 15:35:11 +00:00
|
|
|
@for n in lib*; do (cd $$n && $(MAKE) $@); done
|
2000-12-13 15:16:34 +00:00
|
|
|
|
2000-12-14 15:26:44 +00:00
|
|
|
clean::
|
2000-12-15 15:48:00 +00:00
|
|
|
rm -f petidomo
|
2000-12-13 15:16:34 +00:00
|
|
|
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-15 16:58:11 +00:00
|
|
|
acl.o: libtext/text.h petidomo.h acl_scan.c acl_scan.h
|
|
|
|
|
acl_scan.o: acl_scan.h
|
|
|
|
|
archive.o: libtext/text.h petidomo.h
|
|
|
|
|
authen.o: libtext/text.h petidomo.h
|
|
|
|
|
config.o: liblists/lists.h libconfigfile/configfile.h petidomo.h
|
|
|
|
|
filter.o: petidomo.h
|
|
|
|
|
handleacl.o: petidomo.h
|
|
|
|
|
help.o: libtext/text.h petidomo.h
|
|
|
|
|
hermes.o: libtext/text.h petidomo.h
|
|
|
|
|
index.o: libtext/text.h petidomo.h
|
|
|
|
|
io.o: petidomo.h
|
|
|
|
|
listserv.o: libtext/text.h petidomo.h
|
|
|
|
|
mailer.o: libtext/text.h petidomo.h
|
|
|
|
|
main.o: petidomo.h libargv/argv.h
|
|
|
|
|
members.o: libtext/text.h petidomo.h
|
|
|
|
|
parsearray.o: petidomo.h
|
|
|
|
|
password.o: petidomo.h
|
|
|
|
|
rfcparse.o: librfc822/rfc822.hpp libtext/text.h petidomo.h
|
|
|
|
|
subscribe.o: libtext/text.h petidomo.h
|
|
|
|
|
tool.o: libtext/text.h petidomo.h
|
|
|
|
|
unsubscribe.o: libtext/text.h petidomo.h
|