g++ 的makefile
kpman 2009-02-17 03:45:27 原来是用gcc做编译器的。现在换在g++就不行了。。
include rules.mk
ALLDIR = blib source
all:
for i in $(ALLDIR); do $(MAKE) -C $$i || exit 1; done
clean:
rm $(ALLDIR)/*.o
出错信息如下:
for i in blib source; do make -C $i || exit 1; done
make: Not a recognized flag: C
usage: make [-eiknqrst] [-k|-S] [-d[A|adg[1|2]msv]] [-D variable] [-f makefile ] [-j [jobs]] [variable=value ...] [target ...]
make: 1254-004 The error code from the last command is 1.
Stop.
lsd@tower02:/dev01/liangshida/_practice/_practice $
如象是这个 -C的参数不对。。可是不用他吧。。又没法深入到各个目录去编译。。