Hi nelnel,
Looks like you've given make the dependencies for abc.o, but not how to build it. If you don't tell make what command to use, it will use a default one that is chosen according to the source file's extension.
I think changing this:
Code:
abc.o: abc.cpp abc.h
to this:
Code:
abc.o: abc.cpp abc.h
$(CC) $(CFLAGS) -c -o $@ abc.cpp
will give you the result that you expect.
~sind