You need to sign in or sign up before continuing.
Makefile 393 字节
Newer Older
1
# Makefile for net selftests
2 3

CC = $(CROSS_COMPILE)gcc
4
CFLAGS = -Wall -O2 -g
5 6 7

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

8
NET_PROGS = socket psock_fanout psock_tpacket
9

10
all: $(NET_PROGS)
11 12 13 14
%: %.c
	$(CC) $(CFLAGS) -o $@ $^

run_tests: all
15
	@/bin/sh ./run_netsocktests || echo "sockettests: [FAIL]"
16
	@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"
17
	./test_bpf.sh
18
clean:
19
	$(RM) $(NET_PROGS)