summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/Makefile
blob: bd6e272bab87592bea15731dab24719ab6658c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Makefile for net selftests

CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall

CFLAGS += -I../../../../usr/include/

NET_PROGS = socket psock_fanout

all: $(NET_PROGS)
%: %.c
	$(CC) $(CFLAGS) -o $@ $^

run_tests: all
	@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
	@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"

clean:
	$(RM) $(NET_PROGS)