2009-04-27 22:59:50 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
|
|
|
@@ -1,15 +1,17 @@
|
|
|
|
-flags=-g3 -Wall -ansi -pedantic -D_GNU_SOURCE
|
|
|
|
+OPT_FLAGS=-g3
|
|
|
|
+
|
|
|
|
+flags=$(OPT_FLAGS) -Wall -ansi -pedantic -D_GNU_SOURCE
|
|
|
|
|
2007-01-21 15:53:41 +00:00
|
|
|
all: icmptx
|
|
|
|
|
2009-04-27 22:59:50 +00:00
|
|
|
icmptx: it.o icmptx.c tun_dev.o
|
|
|
|
- gcc $(flags) -o icmptx icmptx.c it.o tun_dev.o
|
|
|
|
+ $(CC) $(flags) -o icmptx icmptx.c it.o tun_dev.o
|
2007-01-21 15:53:41 +00:00
|
|
|
|
2009-04-27 22:59:50 +00:00
|
|
|
it.o: it.c tun_dev.h
|
2007-01-21 15:53:41 +00:00
|
|
|
- gcc $(flags) -c it.c
|
2009-04-27 22:59:50 +00:00
|
|
|
+ $(CC) $(flags) -c it.c
|
2007-01-21 15:53:41 +00:00
|
|
|
|
|
|
|
tun_dev.o: tun_dev.c
|
|
|
|
- gcc $(flags) -c tun_dev.c
|
2009-04-27 22:59:50 +00:00
|
|
|
+ $(CC) $(flags) -c tun_dev.c
|
2007-01-21 15:53:41 +00:00
|
|
|
|
|
|
|
clean:
|
2009-04-27 22:59:50 +00:00
|
|
|
rm -f tun_dev.o it.o icmptx
|