selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests
[linux-3.10.git] / tools / testing / selftests / net / Makefile
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)