懒之圣帝
文件不要后缀名的吧
>>
完整版
Makefile:
终端:edm3 : main.o scene.o battlerbase.o battle.o \g++ -o edm3 main.o
main.o : main.cpp battlerbase.h scene.h \
g++ -c main.cpp
scene.o : scene.cpp scene.h \
g++ -c scene.cpp
battlerbase.o : battlerbase.cpp battlerbase.h \
g++ -c battlerbase.cpp
battle.o : battle.cpp battle.h \
g++ -c battle.cpp
clean : \
rm main.o scene.o battlerbase.o battle.o
`main.o' に必要なターゲット `g++' を make するルールがありません?不科学啊。[otakuchiyan@localhost EDM3]$ makemakefile:2: *** 分離記号を欠いています. 中止.
[otakuchiyan@localhost EDM3]$ make
makefile:4: *** 分離記号を欠いています. 中止.
[otakuchiyan@localhost EDM3]$ make
makefile:12: *** 分離記号を欠いています. 中止.
[otakuchiyan@localhost EDM3]$ make
make: *** `main.o' に必要なターゲット `g++' を make するルールがありません. 中止.
[otakuchiyan@localhost EDM3]$
