xref: /linux/tools/testing/selftests/net/Makefile (revision 5e29a9105b1a0da86eff0ad6ae015997b49d4d1d)
1a6f68034SDavid S. Miller# Makefile for net selftests
2a6f68034SDavid S. Miller
3a6f68034SDavid S. MillerCC = $(CROSS_COMPILE)gcc
423a95442SDaniel BorkmannCFLAGS = -Wall -O2 -g
5a6f68034SDavid S. Miller
6a6f68034SDavid S. MillerCFLAGS += -I../../../../usr/include/
7a6f68034SDavid S. Miller
823a95442SDaniel BorkmannNET_PROGS = socket psock_fanout psock_tpacket
9a6f68034SDavid S. Miller
10a6f68034SDavid S. Millerall: $(NET_PROGS)
11a6f68034SDavid S. Miller%: %.c
12a6f68034SDavid S. Miller	$(CC) $(CFLAGS) -o $@ $^
13a6f68034SDavid S. Miller
14*5e29a910SMichael EllermanTEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
15*5e29a910SMichael Ellerman
16*5e29a910SMichael Ellermaninclude ../lib.mk
17*5e29a910SMichael Ellerman
18a6f68034SDavid S. Millerclean:
19a6f68034SDavid S. Miller	$(RM) $(NET_PROGS)
20