blob: 261322be58429afb54faadcd7b7564597afd2110 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Pass CPPFLAGS and LDFLAGS to the compiler so the build respects the
user's flags.
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
CC=gcc
all: zerofree.c
- $(CC) $(CFLAGS) -o zerofree zerofree.c -lext2fs
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o zerofree zerofree.c -lext2fs
clean:
/bin/rm -f *.o *~ zerofree
|