charpter3 --Makefile 写的问题
make提示如下错误:Makefile make: *** No rule to make target 'hello', needed by 'all'. Stop
这里的TARGETS = hello hello-func,但是没有生成TARGETS对应的命令,原代码如下:
$(TARGETS): %: %.bpf.o
1.如果想生成原有目标,需要添加相应生成指令。
- 通过上下文学习,这里并不是想要生成hello, hello-func, 而是生成对应的hello.bpf.o hello-func.bpf.o
请作者确认Makefile是否问题?
charpter3 --Makefile 写的问题
make提示如下错误:Makefile make: *** No rule to make target 'hello', needed by 'all'. Stop
这里的TARGETS = hello hello-func,但是没有生成TARGETS对应的命令,原代码如下:
$(TARGETS): %: %.bpf.o
1.如果想生成原有目标,需要添加相应生成指令。
请作者确认Makefile是否问题?