all: ship
ship: testShip.o ship.o
g++ -g -Wall -o ship testShip.o ship.o
testShip.o: testShip.cpp
g++ -g -Wall -c testShip.cpp
ship.o: ship.cpp
g++ -g -Wall -c ship.cpp
clean:
rm -rf *.o ship
有谁知道我为什么会收到错误:" Makefile:1:***缺少分隔符。停止。&#34 ;? 我用Google搜索,并在每行开头后放了一个标签。谢谢!