X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <3C9F95A1.49832E2A@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: include depend References: <3c9f454d$0$4035$9b622d9e AT news DOT freenet DOT de> <3C9F7540 DOT A8B0707E AT yahoo DOT com> <3c9f8b97$0$4074$9b622d9e AT news DOT freenet DOT de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 59 Date: Mon, 25 Mar 2002 21:26:56 GMT NNTP-Posting-Host: 12.90.179.31 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1017091616 12.90.179.31 (Mon, 25 Mar 2002 21:26:56 GMT) NNTP-Posting-Date: Mon, 25 Mar 2002 21:26:56 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com deckerben wrote: > "CBFalconer" wrote in message > > Hans-Bernhard Broeker wrote: > > > deckerben wrote: > > > > > > > I have source code that include the line "include depend" in > > > > the makefile, but the file "depend" does not exist, nor do any > > > > obvious candidates for renaming. Is there a utility that > > > > creates this file? > > > > > > Probably --- but not for DJGPP, as it is. > > > > > > It would probably help if you could give some more details. > > > Like the name of the package, and what compiler it's supposed to > > > be used with, originally. > > > > > > > Is the application source code / makefile possibly broken? > > > > > > Not necessarily. But probably it's not meant for DJGPP. > > > Makefiles, if not very carefully written, are about the most > > > unportable thing you can find in a typical Unix source code. > > > > > > Some people have installed GNU make on their Unix boxes, even > > > they they don't have any other GNU software, simply for that > > > reason: using GNU make on all platforms is about the only way > > > to gain compatible access to a reasonable set of features > > > across many different platforms. > > > > Doesn't gcc have an option to generate dependancies, something > > like -M? and a similar environment variable? > > Thanks for the tip. There are a few examples of using this function, mainly > inside of makefiles, like: > BTW, this option is among the dozens listed when a "cc1 --help" is executed > (not gcc --help ...it won't say anything about it, I guess because the > augment is really carried out by cc1 ... I think)... OK here is what I > found... > > ## gcc 3 implements dependency tracking that does exactly what > ## we want. Yay! Note: for some reason libtool 1.4 doesn't like > ## it if -MD -MP comes after the -MF stuff. Hmm. > "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" > > (taken from http://www.fastcgi.com/devkit/depcomp) > > But I need a command-line solution. Please DO NOT top-post. I fixed this one. "info gcc" should eventually lead you where you want to go. gcc is inherently command line driven, as is gnu make, etc. I suspect "info make rules automatic" might be more productive. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net) Available for consulting/temporary embedded and systems. (Remove "XXXX" from reply address. yahoo works unmodified) mailto:uce AT ftc DOT gov (for spambots to harvest)