作者weiching5566 (就酱子吧)
看板LinuxDev
标题[问题] 请问makefile定义的问题
时间Fri Mar 13 15:39:55 2015
在code看到这段
CFILES := main.c sub.c
obj-m := hello.o
hello-objs := $(CFILES:.c=.o)
不知道$(CFILES:.c=.o)代表甚麽意思....thx
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 210.61.122.2
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/LinuxDev/M.1426232397.A.0DA.html
1F:推 Bencrie: 就副档名代换,把main.c sub.c 换成 main.o sub.o 03/13 16:25
2F:→ Bencrie: linking 就直接把 hello-objs 喂给 binary 当 deps 03/13 16:25