packages/net/icmptx/patches/001-cross_compile.patch
nico 9c7603b355 [packages] icmptx: update to v0.2, switched to git for source retrieval
git-svn-id: svn://svn.openwrt.org/openwrt/packages@15461 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-27 22:59:50 +00:00

25 lines
512 B
Diff

--- 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
all: icmptx
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
it.o: it.c tun_dev.h
- gcc $(flags) -c it.c
+ $(CC) $(flags) -c it.c
tun_dev.o: tun_dev.c
- gcc $(flags) -c tun_dev.c
+ $(CC) $(flags) -c tun_dev.c
clean:
rm -f tun_dev.o it.o icmptx