【发布时间】:2013-08-10 20:26:12
【问题描述】:
我的makefile是:
CFLAGS=-g
all: mcast_client mcast_server
mcast_client: mcast_client.o $(ARG1)
mcast_server: mcast_server.o
clean:
rm -f mcast_client mcast_server mcast_client.o mcast_server.o
在我输入的命令窗口中,
$ make ARG1=hello, world!
这对吗?
【问题讨论】:
-
你想达到什么目的?就目前而言,您是说 '
mcast_client不是最新的,除非文件hello,和world!也是最新的,这不太可能是您的想法。
标签: c linux makefile command-line-arguments