Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

makefiles, g++dep, dependencies???

0 views
Skip to first unread message

John Collins

unread,
Aug 13, 2002, 1:33:02 PM8/13/02
to
Makefiles typically have the list of dependency files at the end of the
makefile. How does one automate including the dependencies? Is g++dep
used? Where can any documentation be found for g++dep or does anyone
have any examples?

Eric Worrall

unread,
Aug 14, 2002, 12:13:00 PM8/14/02
to

g++ -M -MM *.c *.cpp

outputs a list of makefile dependencies. You can then edit the list into
a Makefile or create a simple script which uses the output from g++ -M
-MM to create your makefile.

Eric Worrall

--
You have just received an Etech Solution
For all your Linux requirements contact
ewor...@netcomuk.co.uk

0 new messages