1# Makefile for net selftests
2
3CC = $(CROSS_COMPILE)gcc
4CFLAGS = -Wall -O2 -g
5
6CFLAGS += -I../../../../usr/include/
7
8NET_PROGS = socket psock_fanout psock_tpacket
9
10all: $(NET_PROGS)
11%: %.c
12	$(CC) $(CFLAGS) -o $@ $^
13
14run_tests: all
15	@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
16	@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
17
18clean:
19	$(RM) $(NET_PROGS)
20