社区
C语言
帖子详情
A question about makefile
Plotto
2002-09-05 04:58:17
What is the meaning of $@ and $^ in the makefile?
Thx
...全文
40
2
打赏
收藏
A question about makefile
What is the meaning of $@ and $^ in the makefile? Thx
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
liubear
2002-09-07
打赏
举报
回复
上位讲得很清楚了
greysky123
2002-09-05
打赏
举报
回复
举个例子吧:
CC=gcc
CFLAGS=-Wall
COMPILE=$(CC) $(CFLAGS) -c
all: myprogram
myprogram: test.o
$(CC) -o myprogram test.o
%.o: %.c
$(COMPILE) -o $@ $<
//这里“$@”代替了目标文件名即test.o,“$<”代替了要编译的文件名即test.c,这样清楚么?
Turbo C++ 3.0[DISK]
If you still have a
que
stio
n and need assistance, help is avail
ab
le from the following sources: 1. Type GO BPROGB on the CompuServe bulletin board system for instant access to the Borland forums ...
Turbo C++ 3.00[DISK]
If you still have a
que
stio
n and need assistance, help is avail
ab
le from the following sources: 1. Type GO BPROGB on the CompuServe bulletin board system for instant access to the Borland forums ...
Makefile
详解 --- 从入门到精通 (make、cmake、gmake、scons、ninja)
什么是
makefile
?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和professional的程序员,
makefile
还是要懂。这就好像现在有这么多的HTML的编辑器,但...
跟我一起写
Makefile
(十一)
一般来说,最简单的就是直接在命令行下输入make命令,make命令会找当前目录的
makefile
来执行,一切都是自动的。但也有时你也许只想让make重编译某些文件,而不是整个工程,而又有的时候你有几套编译规则,你想在不同...
makefile
to compile all c files
Note: this answer assumes that you are using GNU make.... I will not answer your last
que
stio
n
ab
out cross-platform port
ab
ility. First because it is a complex
que
stio
n, second because I do not ha
C语言
69,371
社区成员
243,080
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章