www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/25/16:01:37

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "deckerben" <deckerben AT freenet DOT de>
Newsgroups: comp.os.msdos.djgpp
References: <3c9f454d$0$4035$9b622d9e AT news DOT freenet DOT de> <a7nian$88b$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <3C9F7540 DOT A8B0707E AT yahoo DOT com>
Subject: Re: include depend
Date: Mon, 25 Mar 2002 21:57:10 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Lines: 58
Message-ID: <3c9f8b97$0$4074$9b622d9e@news.freenet.de>
NNTP-Posting-Host: 213.6.234.48
X-Trace: 1017088919 news.freenet.de 4074 213.6.234.48
X-Complaints-To: abuse AT freenet DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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.

Ben

"CBFalconer" <cbfalconer AT yahoo DOT com> wrote in message
news:3C9F7540 DOT A8B0707E AT yahoo DOT com...
> Hans-Bernhard Broeker wrote:
> > deckerben <deckerben AT freenet DOT de> 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?
>
> --
> 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)
>
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019