Modified the main Makefile so that it will pass the values determined

by Autoconf down to the libraries.
This commit is contained in:
Peter Simons 2000-12-14 16:43:10 +00:00
parent 135cf3c8f6
commit 7c59e894d3

View File

@ -11,6 +11,7 @@ YACC = @YACC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@ @DEFS@
LDFLAGS = @LDFLAGS@
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 \
@ -19,6 +20,10 @@ LIBS = librfc822/librfc822.a liblists/liblists.a libargv/libargv.a \
libconfigfile/libconfigfile.a libtext/libtext.a \
libdebug/libdebug.a
FLAGS_TO_PASS = CC="$(CC)" AR="$(AR)" RANLIB="$(RANLIB)" LEX="$(LEX)" \
YACC="$(YACC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
LDFLAGS="$(LDFLAGS)"
.SUFFIXES:
.SUFFIXES: .c .o
@ -46,7 +51,7 @@ acl_scan.c: acl_scan.l acl_scan.h
acl.c: acl_scan.c
$(LIBS):
(cd `echo $@ | sed -e 's@/.*@@'` && $(MAKE))
(cd `echo $@ | sed -e 's@/.*@@'` && $(MAKE) $(FLAGS_TO_PASS))
clean distclean realclean::
@for n in lib*; do (cd $$n && $(MAKE) $@); done