Pass preprocessor flags as well in the Makefile

This allows better hardening of the binary (e.g. in Debian, hardening
flags include pre-processor flags).
This commit is contained in:
Iustin Pop
2015-05-29 10:35:04 +02:00
committed by Iustin Pop
parent 460b48d32e
commit b943c10fe7
+2 -2
View File
@@ -9,10 +9,10 @@ MTDIR=$(BINDIR)
all: mt stinit
mt: mt.c
$(CC) $(CFLAGS) $(LDFLAGS) -o mt mt.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o mt mt.c
stinit: stinit.c
$(CC) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o stinit stinit.c
install: mt stinit
install -s mt $(MTDIR)