I am trying to set up a makefile for use with GNU make for the first time:
My program has the following files:
myprog.cpp
myprog.h
Then I want to make an object file and include it from these files:
test.cpp
test.h
Here is my makefile:
Is this correct?Code:myprog : myprog.o test.o myprog.o: myprog.cpp myprog.h test.o: test.cpp test.h