Ticket #35896: patch-Makefile-separate-cppflags.diff

File patch-Makefile-separate-cppflags.diff, 658 bytes (added by neverpanic (Clemens Lang), 12 years ago)
  • Makefile

    old new  
    3434
    3535%.o: %.c version.mk
    3636        $(call colorecho,CC,$<)
    37         $(VERBOSE) $(CC) -c $(CFLAGS) -o $@ $<
    38         $(VERBOSE) $(CC) -c $(CFLAGS) -o $*.d -MT $@ -MM $<
     37        $(VERBOSE) $(CC) -c $(CPPFLAGS) $(CFLAGS) -o $@ $<
     38        $(VERBOSE) $(CC) -c $(CPPFLAGS) -o $*.d -MT $@ -MM $<
    3939
    4040info:
    4141        @echo Some Info:
    42         @echo Compiling with: $(CC) -c $(CFLAGS) -o OUT INPUT
     42        @echo Preprocessing with: $(CC) -E $(CPPFLAGS)
     43        @echo Compiling with: $(CC) -c $(CPPFLAGS) $(CFLAGS) -o OUT INPUT
    4344        @echo Linking with: $(LD) -o OUT $(LDFLAGS) INPUT
    4445
    4546clean: cleandoc cleandeps