I am trying to set up a makefile for use with GNU make for the first time:
My program has the following files:
Then I want to make an object file and include it from these files:
Here is my makefile:
Is this correct?
myprog : myprog.o test.o
myprog.o: myprog.cpp myprog.h
test.o: test.cpp test.h
When I run make.exe, it says this:
cc myprog.o -o myprog
process_begin: CreateProcess(NULL, cc myprog.o -o myprog, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [myprog] Error 2