Rewrote the makefile to not require GNU make.
This commit is contained in:
parent
79972e1cdb
commit
3a581cbcdd
31
Makefile.in
31
Makefile.in
@ -11,20 +11,18 @@ YACC = @YACC@
|
|||||||
CFLAGS = @CFLAGS@
|
CFLAGS = @CFLAGS@
|
||||||
CPPFLAGS = @CPPFLAGS@ @DEFS@
|
CPPFLAGS = @CPPFLAGS@ @DEFS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
LIBS = @LIBS@
|
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 \
|
||||||
SRCS = acl.c archive.c argvSetDebugLevel.c authen.c config.c exit.c \
|
mailer.o members.o parsearray.o password.o rfcparse.o \
|
||||||
filter.c handleacl.c help.c hermes.c index.c io.c listserv.c \
|
subscribe.o tool.o signature.o unsubscribe.o main.o
|
||||||
mailer.c members.c parsearray.c password.c rfcparse.c \
|
|
||||||
subscribe.c tool.c signature.c unsubscribe.c main.c
|
|
||||||
OBJS = ${SRCS:.c=.o}
|
|
||||||
LIBS = librfc822/librfc822.a liblists/liblists.a libargv/libargv.a \
|
LIBS = librfc822/librfc822.a liblists/liblists.a libargv/libargv.a \
|
||||||
libconfigfile/libconfigfile.a libtext/libtext.a libdebug/libdebug.a
|
libconfigfile/libconfigfile.a libtext/libtext.a \
|
||||||
|
libdebug/libdebug.a
|
||||||
|
|
||||||
.PHONY: all clean distclean realclean
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
|
.SUFFIXES: .c .o
|
||||||
|
|
||||||
%.o : %.c
|
.c.o:
|
||||||
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
|
||||||
|
|
||||||
all: hermes listserv
|
all: hermes listserv
|
||||||
@ -47,25 +45,24 @@ acl_scan.c: acl_scan.l acl_scan.h
|
|||||||
|
|
||||||
acl.c: acl_scan.c
|
acl.c: acl_scan.c
|
||||||
|
|
||||||
lib%:
|
$(LIBS):
|
||||||
$(MAKE) -C $(dir $@)
|
$(MAKE) -C `echo $@ | sed -e 's@/.*@@'`
|
||||||
|
|
||||||
clean distclean realclean::
|
clean distclean realclean::
|
||||||
@for n in lib*; do $(MAKE) -C $$n $@; done
|
@for n in lib*; do $(MAKE) -C $$n $@; done
|
||||||
@$(MAKE) $@-local
|
|
||||||
|
|
||||||
clean-local::
|
clean::
|
||||||
rm -f petidomo listserv hermes
|
rm -f petidomo listserv hermes
|
||||||
rm -f $(OBJS)
|
rm -f $(OBJS)
|
||||||
rm -f acl_scan.c acl_scan.h acl.c
|
rm -f acl_scan.c acl_scan.h acl.c
|
||||||
|
|
||||||
distclean-local:: clean-local
|
distclean:: clean
|
||||||
rm -f config.log config.cache config.status Makefile
|
rm -f config.log config.cache config.status Makefile
|
||||||
|
|
||||||
realclean-local:: distclean-local
|
realclean:: distclean
|
||||||
rm -f configure
|
rm -f configure
|
||||||
|
|
||||||
# DO NOT DELETE
|
# Dependencies
|
||||||
|
|
||||||
acl.o: libtext/text.h petidomo.h libargv/argv.h debug.h acl_scan.c acl_scan.h
|
acl.o: libtext/text.h petidomo.h libargv/argv.h debug.h acl_scan.c acl_scan.h
|
||||||
acl_scan.o: acl_scan.h
|
acl_scan.o: acl_scan.h
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user