Make Q's
Kevin D. Clark
kevin_d_clark at comcast.net
Wed Sep 16 23:28:19 EDT 2009
Bruce Labitt writes:
> Three questions:
> 1. Is it possible to have a project that some files are compiled with
> g++ and others gcc?
Yes. I do this all the time.
> 2. In the link phase one needs to use g++, correct?
Yes, if you are trying to link together a collection of C and C++
files and produce an executable from these.
> 3. Is there a way to automate the compilation so that the *.c files get
> compiled by gcc and the *.cpp by g++?
Yes. This a good idea to setup, IMHO.
> Hmm, one more question. Anyone have a favorite writeup or tutorial on
> make? Google reveals lots of them - most are trivial. I had one that
> was pretty good, but somehow have misplaced the URL.
Look, I could write a big writeup here, giving you a complete example
of a Makefile that is similar to what I know you are looking for, but
in actuality let me just tell you that I happen to be a big fan of the
GNU Make manual. I think that in 20 minutes of skimming you'll be
well on your way.
Regards,
--kevin
--
GnuPG ID: B280F24E God, I loved that Pontiac.
alumni.unh.edu!kdc -- Tom Waits
http://kdc-blog.blogspot.com/
More information about the gnhlug-discuss
mailing list