84f887bfb9
This avoids repeating the logic in every Makefile. We mimic the top-level Makefile and use $(CROSS_COMPILE)gcc. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
20 lines
325 B
Makefile
20 lines
325 B
Makefile
# Makefile for net selftests
|
|
|
|
CFLAGS = -Wall -O2 -g
|
|
|
|
CFLAGS += -I../../../../usr/include/
|
|
|
|
NET_PROGS = socket psock_fanout psock_tpacket
|
|
|
|
all: $(NET_PROGS)
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
TEST_PROGS := run_netsocktests run_afpackettests test_bpf.sh
|
|
TEST_FILES := $(NET_PROGS)
|
|
|
|
include ../lib.mk
|
|
|
|
clean:
|
|
$(RM) $(NET_PROGS)
|