Make File compile error

I have a program using classes that I am trying to compile using a make file (required by professor). The program has a Main.cpp, Money.cpp(class), & Money.h. The error I get is this:

*** No rule to make target `Main.cpp', needed by `Main.o'. Stop.



This is the unix cmd I am using:

make -f Money.mak -l



My .mak looks like this:


#File: Money.mak
#Compiles Main.cpp, made up of Money.cpp, Money.h

Main.exe: Main.o Money.o
g++ Main.o Money.o Main.exe

Main.o: Main.cpp
g++ -c Main.cpp -o Main.o

Money.o: Money.cpp Money.h
g++ -c Money.cpp -o Money.o


I am new to classes so any help in clearing the reason for this error is greatly appreciated! Thanks.

You have probably misnamed the Main.cpp file - but the Make program is saying it can't find a file called Main.cpp
make file (required by professor)


*shudders*

*hugs farmergeoff2003 to help ease some of the pain*
Topic archived. No new replies allowed.