Mail Archives: djgpp/2002/03/25/16:01:37
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 -