]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Formerly GNUmakefile.~78~
authorRoland McGrath <roland@redhat.com>
Thu, 27 Aug 1992 23:25:59 +0000 (23:25 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 27 Aug 1992 23:25:59 +0000 (23:25 +0000)
GNUmakefile

index 41531fb374753da38bba022279562888f0f1a6ee..49cdd5c05b6821f1198938b76263837a562bd367 100644 (file)
@@ -55,9 +55,7 @@ $(archpfx)remote.o: remote.c
 $(archpfx)remote.dep: remote.c
        $(mkdep) $(REMOTE) $< | sed 's,$*\.o,& $@,' > $@
 
-ifneq "$(defines)" "@DEFS@"
-CPPFLAGS = $(defines)
-endif
+CPPFLAGS := $(filter-out @%@,$(defines))
 
 ifneq "$(wildcard $(ARCH)/makefile)" ""
 include $(ARCH)/makefile
@@ -79,9 +77,10 @@ CC := $(CC) -b glibc
 
 # getopt is in libc.
 GETOPT =
-GETOPT_SRC =
+#GETOPT_SRC = Don't clear this or dist will break.
 
-CPPFLAGS := -DSTDC_HEADERS -DHAVE_UNISTD_H -DHAVE_GLOB_H \
+CPPFLAGS := $(CPPFLAGS) \
+           -DSTDC_HEADERS -DHAVE_UNISTD_H -DHAVE_GLOB_H \
            -DHAVE_GETDTABLESIZE -DHAVE_SYS_SIGLIST -DHAVE_DUP2 \
            -DHAVE_GETCWD -DHAVE_SIGSETMASK -DHAVE_GETGROUPS -DHAVE_SETLINEBUF