Commit fe7c3452 authored by Joanne Hugé's avatar Joanne Hugé

WIP: makefile

parent 4685802b
...@@ -35,9 +35,9 @@ endif ...@@ -35,9 +35,9 @@ endif
vpath %.c $(SRCDIR) vpath %.c $(SRCDIR)
xdp_kern.o: xdp_kern.o: xdp_kern.c
clang -S -target bpf -D __BPF_TRACING__ -Wall -O2 -emit-llvm -c -g -o xdp_kern.ll xdp_kern.c clang -S -target bpf -D __BPF_TRACING__ -Wall -O2 -emit-llvm -c -g -o xdp_kern.ll $^
llc -march=bpf -filetype=obj -o xdp_kern.o xdp_kern.ll llc -march=bpf -filetype=obj -o $@ xdp_kern.ll
ifneq ($(WITH_XDP),) ifneq ($(WITH_XDP),)
$(SERVER_PROG): $(SERVER_OBJS) xdp_kern.o $(SERVER_PROG): $(SERVER_OBJS) xdp_kern.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment