Merge branch 'rework/kthreads' into for-linus
[linux-2.6-microblaze.git] / tools / testing / selftests / net / bpf / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2
3 CLANG ?= clang
4 CCINCLUDE += -I../../bpf
5 CCINCLUDE += -I../../../lib
6 CCINCLUDE += -I../../../../../usr/include/
7
8 TEST_CUSTOM_PROGS = $(OUTPUT)/bpf/nat6to4.o
9 all: $(TEST_CUSTOM_PROGS)
10
11 $(OUTPUT)/%.o: %.c
12         $(CLANG) -O2 -target bpf -c $< $(CCINCLUDE) -o $@
13
14 EXTRA_CLEAN := $(TEST_CUSTOM_PROGS)