
21 May
2007
21 May
'07
7:27 a.m.
"Dean Michael Berris" <dmberris@friendster.com> writes:
On 5/18/07, Anthony Williams <anthony_w.geo@yahoo.com> wrote:
"Dean Michael Berris" <dmberris@friendster.com> writes:
[snipped my biased example]
That's overly verbose: most of these rules are built in to make.
My simple makefile says:
main: main.cpp some_other_file.cpp
Okay... I might be rusty with Make, but shouldn't that be:
main: main.o some_other_file.o
No, specifying source files works just fine. On my system it produces one command: g++ -o main main.cpp some_other_file.cpp Anthony -- Anthony Williams Just Software Solutions Ltd - http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL