mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Organize source files
This commit is contained in:
15
examples/c-form/Makefile
Normal file
15
examples/c-form/Makefile
Normal file
@ -0,0 +1,15 @@
|
||||
BPF_CLANG := clang
|
||||
CFLAGS := -O2 -emit-llvm -target bpf -c
|
||||
|
||||
SRC := example.bpf.c
|
||||
OUT := example.bpf.ll
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: $(OUT)
|
||||
|
||||
$(OUT): $(SRC)
|
||||
$(BPF_CLANG) $(CFLAGS) -S $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OUT)
|
||||
Reference in New Issue
Block a user