mirror of
https://github.com/iustin/mt-st.git
synced 2026-07-28 18:22:41 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user