Help on Makefile



Hi, Dear group,

I am trying to compile some c++ files in unix. I got problems in
Makefile. The Makefile is like:

file: file.o test.o
g++ -o file file.o test.o
file.o: file.cpp
g++ -c file.cpp
test.o: test.cpp
g++ -c test.cpp


It keeps saying that:

mksh: Warning: newline is not last character in file Makefile


What could be the problem? Thank you!

.



Relevant Pages

  • Re: Want to compile my roguelike
    ... you don't need a makefile with lcc-win32. ... The aboove applies to compiling Vanilla Angband 3.0.6 on my ... Cosmic Gerbil ... I've been working nearly all day trying to compile. ...
    (rec.games.roguelike.angband)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, to test if everything is ok. ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)
  • Re: problem compiling sample drivers
    ... Then I wanted to compile the sample drivers, to test if everything is ok. ... NMAKE: fatal error U1064: MAKEFILE not found and no target specified ...
    (microsoft.public.development.device.drivers)