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

CC = $(CROSS_COMPILE)gcc
CFLAGS = -Wall

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

AF_PACKET_PROGS = psock_fanout

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

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

clean:
	$(RM) $(AF_PACKET_PROGS)