15 lines
297 B
Makefile
15 lines
297 B
Makefile
|
|
# SPDX-License-Identifier: GPL-2.0
|
||
|
|
|
||
|
|
CLANG ?= clang
|
||
|
|
CCINCLUDE += -I../../bpf
|
||
|
|
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 $@
|
||
|
|
|
||
|
|
clean:
|
||
|
|
rm -f $(TEST_CUSTOM_PROGS)
|