summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/bpf/Makefile
blob: 8a69c91fcca07eb69322b17450f9079cfa4d336d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# SPDX-License-Identifier: GPL-2.0

CLANG ?= clang
CCINCLUDE += -I../../bpf
CCINCLUDE += -I../../../lib
CCINCLUDE += -I../../../../../usr/include/

TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o
all: $(TEST_CUSTOM_PROGS)

$(OUTPUT)/%.o: %.c
	$(CLANG) -O2 -target bpf -c $< $(CCINCLUDE) -o $@

EXTRA_CLEAN := $(TEST_CUSTOM_PROGS)