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
Does anyone know why I get the error: "Makefile:1: *** missing separator. Stop."? I googled and I did put a tab after the beginning of every line. Thanks!