diff options
Diffstat (limited to 'tools/testing/selftests/net/Makefile')
-rw-r--r-- | tools/testing/selftests/net/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile new file mode 100644 index 000000000000..750512ba2c88 --- /dev/null +++ b/tools/testing/selftests/net/Makefile | |||
@@ -0,0 +1,19 @@ | |||
1 | # Makefile for net selftests | ||
2 | |||
3 | CC = $(CROSS_COMPILE)gcc | ||
4 | CFLAGS = -Wall -O2 -g | ||
5 | |||
6 | CFLAGS += -I../../../../usr/include/ | ||
7 | |||
8 | NET_PROGS = socket psock_fanout psock_tpacket | ||
9 | |||
10 | all: $(NET_PROGS) | ||
11 | %: %.c | ||
12 | $(CC) $(CFLAGS) -o $@ $^ | ||
13 | |||
14 | run_tests: all | ||
15 | @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]" | ||
16 | @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]" | ||
17 | |||
18 | clean: | ||
19 | $(RM) $(NET_PROGS) | ||