On Jan 10, 12:50 am, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
Quote:
xz wrote:
Quote:
I am a rookie of C++ and got so confused with the Makefile these days.
Quote:
Those have really nothing to do with each other. C++ language
Standard does not define 'Makefile', neither is 'Makefile' C++
specific.
Quote:
Quote:
Could anyone be so kind and give a little sample Makefile for the
following particular example?
[..]
I am on a linux machine(Ubuntu 7.10) and use g++ 4.1 as the compiler.
Quote:
Quote:
Then how should I write the Makefile? Thanks a lot in advance!
Quote:
Go to 'gnu.*' or 'comp.os.linux.*' hierarchies.
Linux make is GNU make, and I believe that there's a special
mailing list for GNU make. Still, my advice would be:
-- If you're in a professional environment, use their standard
build tools, and don't worry about it. I've never seen a
standard environment where programmers had to write more
than a couple of lines of make, and those generally didn't
look much like a standard makefile either.
-- If you're working on your own, trying to learn C++, get an
IDE, and let it generate the makefiles for you. While the
IDE's that I've seen are pretty worthless (in fact, they're
rather counter-productive) for professional programming,
they're ideal for learning, and they allow you to
concentrate on one thing at a time: C++, for example, rather
than makefiles.
--
James Kanze (GABI Software) mailto:james.kanze@gmail.com
Conseils en informatique orient�e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S�mard, 78210 St.-Cyr-l'�cole, France, +33 (0)1 30 23 00 34