Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec...
[deliverable/linux.git] / tools / testing / selftests / net / Makefile
CommitLineData
a6f68034 1# Makefile for net selftests
77f65ebd
WB
2
3CC = $(CROSS_COMPILE)gcc
23a95442 4CFLAGS = -Wall -O2 -g
77f65ebd
WB
5
6CFLAGS += -I../../../../usr/include/
7
23a95442 8NET_PROGS = socket psock_fanout psock_tpacket
77f65ebd 9
a6f68034 10all: $(NET_PROGS)
77f65ebd
WB
11%: %.c
12 $(CC) $(CFLAGS) -o $@ $^
13
14run_tests: all
a6f68034 15 @/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
77f65ebd 16 @/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
64a8946b
AS
17 @if /sbin/modprobe test_bpf ; then \
18 /sbin/rmmod test_bpf; \
19 echo "test_bpf: ok"; \
20 else \
21 echo "test_bpf: [FAIL]"; \
22 exit 1; \
23 fi
77f65ebd 24clean:
a6f68034 25 $(RM) $(NET_PROGS)
This page took 0.092495 seconds and 5 git commands to generate.