Skip to content

Commit

Permalink
add CPPFLAGS to compilation rules.
Browse files Browse the repository at this point in the history
This is needed for Debian hardening flags, but shouldn't hurt in general.
Created by David Bremner <[email protected]>.
  • Loading branch information
dai-vdr committed Jul 8, 2017
1 parent c98c08f commit 4bcc522
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ CFLAGS ?= -g -Wall
endif

%.o: %.c
$(CC) $(CFLAGS) $(INCS) -c $<
$(CC) $(CPPFLAGS) $(CFLAGS) $(INCS) -c $<

%.dep: %.c
$(CC) $(CFLAGS) $(INCS) -MM $< -o $@
$(CC) $(CPPFLAGS) $(CFLAGS) $(INCS) -MM $< -o $@

.PHONY: all clean distclean install uninstall

Expand Down

0 comments on commit 4bcc522

Please sign in to comment.