xref: /linux/tools/testing/selftests/net/Makefile (revision a6f68034de8a5784dfeabb337506254c80b4c8c6)
1*a6f68034SDavid S. Miller# Makefile for net selftests
2*a6f68034SDavid S. Miller
3*a6f68034SDavid S. MillerCC = $(CROSS_COMPILE)gcc
4*a6f68034SDavid S. MillerCFLAGS = -Wall
5*a6f68034SDavid S. Miller
6*a6f68034SDavid S. MillerCFLAGS += -I../../../../usr/include/
7*a6f68034SDavid S. Miller
8*a6f68034SDavid S. MillerNET_PROGS = socket psock_fanout
9*a6f68034SDavid S. Miller
10*a6f68034SDavid S. Millerall: $(NET_PROGS)
11*a6f68034SDavid S. Miller%: %.c
12*a6f68034SDavid S. Miller	$(CC) $(CFLAGS) -o $@ $^
13*a6f68034SDavid S. Miller
14*a6f68034SDavid S. Millerrun_tests: all
15*a6f68034SDavid S. Miller	@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
16*a6f68034SDavid S. Miller	@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
17*a6f68034SDavid S. Miller
18*a6f68034SDavid S. Millerclean:
19*a6f68034SDavid S. Miller	$(RM) $(NET_PROGS)
20