Makefile 358 字节
Newer Older
1
# Makefile for net selftests
2 3 4 5 6 7

CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall

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

8
NET_PROGS = socket psock_fanout
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 17 18
	@/bin/sh ./run_afpackettests || echo "afpackettests: [FAIL]"

clean:
19
	$(RM) $(NET_PROGS)