b5d395307011deda92266119f0a488dc812e402a
[openwrt/svn-archive/packages.git] / net / l7-protocols / patches / 100-testing_crosscompile.patch
1 --- a/testing/Makefile
2 +++ b/testing/Makefile
3 @@ -1,19 +1,19 @@
4 all: randchars randprintable test_speed-kernel test_speed-userspace match_kernel
5
6 randchars: randchars.c
7 - gcc -O2 -o randchars randchars.c
8 + $(CC) $(CFLAGS) -o randchars randchars.c
9
10 randprintable: randprintable.c
11 - gcc -O2 -o randprintable randprintable.c
12 + $(CC) $(CFLAGS) -o randprintable randprintable.c
13
14 test_speed-kernel: test_speed-kernel.c
15 - gcc -o test_speed-kernel test_speed-kernel.c
16 + $(CC) $(CFLAGS) -o test_speed-kernel test_speed-kernel.c
17
18 test_speed-userspace: test_speed-userspace.cpp l7-parse-patterns.cpp l7-parse-patterns.h
19 - g++ -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
20 + $(CXX) $(CXXFLAGS) -Wall -o test_speed-userspace test_speed-userspace.cpp l7-parse-patterns.cpp
21
22 match_kernel: match-kernel.c
23 - gcc -O2 -o match_kernel match-kernel.c
24 + $(CC) $(CFLAGS) -o match_kernel match-kernel.c
25
26 clean:
27 rm -f randprintable randchars test_speed-kernel test_speed-userspace match_kernel