Date: Tue, 12 Jan 1999 10:57:02 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Charles Wood cc: djgpp AT delorie DOT com Subject: Re: MakeFile Creation In-Reply-To: <77dkhp$kjk@bgtnsc03.worldnet.att.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On 11 Jan 1999, Charles Wood wrote: > This CPP program (source only) will check all the dependencies of all the > cpp file and .h files in a directory. Then it will output a file called > makefile.inc . Just do a !include in your makefile and all dependencies > are done. Thanks. However, note that GCC already has a bunch of switches that cause the compiler to emit such dependencies automatically, in the format expected by Make. Check out the -MM switch and the ones described near it. The GNU Make manual even describes how to use this facility automatically from a Makefile (see the node called "Automatic Dependencies" in the GNU Make manual). Also, please don't post uuencoded files. If it is a source, just post it as text. If it's too large to post, tell people who are interested to mail you privately.