【发布时间】:2015-05-16 15:38:04
【问题描述】:
我想使用 make 时遇到问题,其中包含一个链接到我的文件夹的变量。
像这样:
DIR_ST = I\ \:\ The\ Scared\ Stones
SRC_ST = $(DIR_ST)/main.c
OBJ_ST = $(SRC_ST:.c=.o)
但是当我想这样编译时:
all : $(ST)
$(ST) : $(OBJ_ST)
$(CC) $(OBJ_ST) -o strategic
我收到了这个错误:
make: *** No rule to make target `I \: The Sacred Stones/main.o', needed by `binaries/strategic'. Stop.
如何在 Makefile 中使用此文件夹的名称?
【问题讨论】:
-
我试过了,但没用...