Skip to content

Makefile Compile error #59

Description

@mourutiao

charpter3 --Makefile 写的问题
make提示如下错误:Makefile make: *** No rule to make target 'hello', needed by 'all'. Stop
这里的TARGETS = hello hello-func,但是没有生成TARGETS对应的命令,原代码如下:
$(TARGETS): %: %.bpf.o

1.如果想生成原有目标,需要添加相应生成指令。

  1. 通过上下文学习,这里并不是想要生成hello, hello-func, 而是生成对应的hello.bpf.o hello-func.bpf.o

请作者确认Makefile是否问题?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions