Makefile gives make: *** No rule to make target using suffixs. Help please
I'm trying to learn c++ from the ground up so I'm figuring out makefiles.
And when I type make I get
CPP = g++
OFLAG = -o
.SUFFIXES : .o .cpp
$(CPP) -c $<
stw: main.o PieceClothing.o
$(CPP) $(OFLAG) main main.o PieceClothing.o
PieceClothing.o: PieceClothing.cpp PieceClothing.h
main.o: main.cpp PieceClothing.h
What am I doing wrong?
make: *** No rule to make target `main.cpp', needed by `main.o'. Stop.
Shouldn't the suffix rule take care of a target for main.cpp?