This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Dec 1, 2007 7:27 AM, Michael Sullivan <michael@espersunited.com> wrote: > My Makefile is now: ... > %.o : %.cpp > $(CXX) $(CFLAGS) $< -c $@ $(INC) The '-c' is misplaced. The '$@' refers to the object file and the '$<' refers to the source file. So: %.o : %.cpp $(CXX) $(CFLAGS) -c $< -o $@ $(INC) -Tom
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |