|
@@ -44,7 +44,7 @@ HOSTLOADLIBES_tracex4 += -lelf -lrt
|
|
# point this to your LLVM backend with bpf support
|
|
# point this to your LLVM backend with bpf support
|
|
LLC=$(srctree)/tools/bpf/llvm/bld/Debug+Asserts/bin/llc
|
|
LLC=$(srctree)/tools/bpf/llvm/bld/Debug+Asserts/bin/llc
|
|
|
|
|
|
-%.o: %.c
|
|
|
|
|
|
+$(obj)/%.o: $(src)/%.c
|
|
clang $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) \
|
|
clang $(NOSTDINC_FLAGS) $(LINUXINCLUDE) $(EXTRA_CFLAGS) \
|
|
-D__KERNEL__ -Wno-unused-value -Wno-pointer-sign \
|
|
-D__KERNEL__ -Wno-unused-value -Wno-pointer-sign \
|
|
-O2 -emit-llvm -c $< -o -| $(LLC) -march=bpf -filetype=obj -o $@
|
|
-O2 -emit-llvm -c $< -o -| $(LLC) -march=bpf -filetype=obj -o $@
|