From 8681d2dd187f677357f78a1b151bb617284ab43b Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 7 Jul 1998 18:35:04 +0000 Subject: Revert last change and replace it with Tue Jul 7 11:39:08 1998 Thomas Bushnell, n/BSG * Makeconf (CPPFLAGS): Include $($*-CPPFLAGS). Reported by Gordon Matzigkeit (gord@gnu.org). --- ChangeLog | 9 +++------ Makeconf | 19 ++++++------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 45959e63..45105d27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,11 +1,8 @@ Tue Jul 7 11:39:08 1998 Thomas Bushnell, n/BSG - * Makeconf (%.o): New rules (from %.c and %.S) so that we can - specify file-specific CPPFLAGS (already in use by utils/Makefile - for utils/ping.c). - (%_pic.o, $_p.o, make-deps): Also grok file-specific CPPFLAGS. - Reported by Gordon Matzigkeit (gord@gnu.org). - + * Makeconf (CPPFLAGS): Include $($*-CPPFLAGS). Reported by Gordon + Matzigkeit (gord@gnu.org). + * INSTALL-cross: Updated by Gordon Matzigkeit (gord@gnu.org). 1998-04-02 Gordon Matzigkeit diff --git a/Makeconf b/Makeconf index 00e076f7..7f69235b 100644 --- a/Makeconf +++ b/Makeconf @@ -69,7 +69,7 @@ top_srcdirinc= else top_srcdirinc=-I$(top_srcdir) endif -CPPFLAGS += -I. $(srcdirinc) -I.. $(top_srcdirinc) -I$(top_srcdir)/include -D_GNU_SOURCE +CPPFLAGS += -I. $(srcdirinc) -I.. $(top_srcdirinc) -I$(top_srcdir)/include -D_GNU_SOURCE $($*-CPPFLAGS) CFLAGS += -Wall -g -O3 # More useful version of HURDLIBS @@ -349,26 +349,19 @@ relink: vpath libutil.% $(libdir)/ -# Default rules to build standard object files. -%.o: %.c - $(COMPILE.c) $($*-CPPFLAGS) $< -o $@ - -%.o: %.S - $(COMPILE.S) $($*-CPPFLAGS) $< -o $@ - # Default rules to build PIC object files. %_pic.o: %.c - $(COMPILE.c) $($*-CPPFLAGS) $< -DPIC -fPIC -o $@ + $(COMPILE.c) $< -DPIC -fPIC -o $@ %_pic.o: %.S - $(COMPILE.S) $($*-CPPFLAGS) $< -DPIC -o $@ + $(COMPILE.S) $< -DPIC -o $@ # Default rules to build profiled object files. %_p.o: %.c - $(COMPILE.c) $($*-CPPFLAGS) $< -DPROF -pg -o $@ + $(COMPILE.c) $< -DPROF -pg -o $@ %_p.o: %.S - $(COMPILE.S) $($*-CPPFLAGS) $< -DPROF -o $@ + $(COMPILE.S) $< -DPROF -o $@ # How to build RPC stubs @@ -473,7 +466,7 @@ $(target): %: FORCE endif define make-deps -set -e; $(CC) $(CFLAGS) $(CPPFLAGS) $($*-CPPFLAGS) -M -MG $< | \ +set -e; $(CC) $(CFLAGS) $(CPPFLAGS) -M -MG $< | \ sed > $@.new -e 's/$*\.o:/$*.o $*_pic.o $*_p.o $@:/' \ -e 's% [^ ]*/gcc-lib/[^ ]*\.h%%g' mv -f $@.new $@ -- cgit v1.2.3