Kim Walden's make dependency generator (does it work?)
Kim Walden
kim at enea.UUCP
Sun Jun 30 04:05:37 AEST 1985
In article <161 at grpwre.UUCP> Scott Herzinger writes:
>1) Has anyone ported this to System III or V?
>
>2) Has anyone gotten makedep to work at all?
> ...
>Makedep has some expressions that confuse me. For instance:
>
> sprintf(s, "makenorm %s `pwd` %s %s | ", norm, srcs);
>
>The format causes sprintf to expect three arguments; only two are
>supplied...
I thought a replied to this a week ago, but it somehow didn't make it,
so here we go again.
Yes, I have had several responses from people at various non-Berkeley
installations, system V and others, that have makedep running without
problems.
The sprintf mentioned is an old fossil bug that went undetected at our
4.2bsd, because the third %s only copied an empty string.
The correct line should read:
sprintf(s, "makenorm %s `pwd` %s | ", norm, srcs);
When porting makedep to system V, it is also useful to have
-Dindex=strchr -Drindex=strrchr
in ones CFLAGS when running make.
--
Kim Walden
ENEA DATA Sweden
UUCP: {seismo,decvax,philabs}!{mcvax,ukc,unido}!enea!kim
ARPA: decvax!mcvax!enea!kim at berkeley.arpa
mcvax!enea!kim at seismo.arpa
More information about the Comp.unix
mailing list