t
it uses del instead, but this can cause (harmless) # `File not found'
error messages. If you are not using DOS at all, # set the variable to
something which will unquestioningly remove # files. #
# 下面先检查你的 djgpp 命令目录下有没有 rm 命令,如果没有,我们使用 # del 命令来代替,但有可能给我们 'File
not found' 这个错误信息,这没 # 什么大碍。如果你不是用 DOS ,把它设定成一个删文件而不废话的命令。 #
(其实这一步在 UNIX 类的系统上是多余的,只是方便 DOS 用户。 UNIX # 用户可以删除这5行命令。)
ifneq ($(wildcard $(DJDIR)/bin/rm.exe) RM-F := rm -f else
RM-F := del endif
# You shouldn't need to
change anything below this point. # #
从这里开始,你应该不需要改动任何东西。(我是不太相信,太NB了!)
SOURCE := $(wildcard *.c)
$(wildcard *.cc) OBJS := $(patsubst %.c,%.o,$(patsubst
%.cc,%.o,$(SOURCE))) DEPS := $(patsubst %.o,%.d,$(OBJS))
MISS |