(CPPFLAGS): Use $($(subdir)-CPPFLAGS) if defined first.
authordrepper <drepper>
Thu, 25 Jun 1998 19:30:39 +0000 (19:30 +0000)
committerdrepper <drepper>
Thu, 25 Jun 1998 19:30:39 +0000 (19:30 +0000)
Makeconfig

index d70c479..1ef0cc5 100644 (file)
@@ -564,8 +564,9 @@ endif       # $(+cflags) == ""
 libio-include = -I$(..)libio
 
 # These are the variables that the implicit compilation rules use.
 libio-include = -I$(..)libio
 
 # These are the variables that the implicit compilation rules use.
-CPPFLAGS = $(+includes) $(defines) -include $(..)include/libc-symbols.h \
-          $(sysdep-CPPFLAGS) $(CPPFLAGS-$(suffix $@)) $(CPPFLAGS-$(<F)) \
+CPPFLAGS = $($(subdir)-CPPFLAGS) $(+includes) $(defines) \
+          -include $(..)include/libc-symbols.h $(sysdep-CPPFLAGS) \
+          $($(subdir)-CPPFLAGS) $(CPPFLAGS-$(suffix $@)) $(CPPFLAGS-$(<F)) \
           $(CPPFLAGS-$(@F))
 override CFLAGS        = $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
                  $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))
           $(CPPFLAGS-$(@F))
 override CFLAGS        = $(filter-out %frame-pointer,$(+cflags)) $(sysdep-CFLAGS) \
                  $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) $(CFLAGS-$(@F))