Mail Archives: djgpp/1995/11/26/13:41:35
Dom De Vitto (devitto AT senna DOT ferndown DOT ate DOT slb DOT com) wrote:
: DJ Delorie (dj AT delorie DOT com) wrote:
: : > I'm using djgpp for years, and I'm learning U..X system at my office. So I
: : > discovered the wonderfull makedepend program.
: : >
: : > I wanted to use the same stuff at home on djgpp, but I didn't found any
: : > makedepend program in /bin directory, in V1.12m4 like in v2beta.
: : >
: : > Can someone tell me where I can found such a proram for djgpp ?
: : gcc has a much more powerful feature. In your Makefile, add the "-MD"
: : or "-MMD" options to gcc. Then, add this at the end of your Makefile:
: : DEPS := $(wildcard *.d)
: : ifneq ($(DEPS),)
: : include $(DEPS)
: : endif
: : gcc will automatically generate dependencies as it compiles, and make
: : will automatically use any that gcc has generated. This is much more
: : reliable than using makedepend.
: But requires you to run make twice to be sure everything is built.
Whoops, seems like I can't prove myself right! So I'll agree that ONE
run of make should be fine - and DJ solution is #1.
Dom
--
_____________________________________________________________________________
Dom De Vitto devitto AT ferndown DOT ate DOT slb DOT com
Schlumberger Automatic Test Equipment fox AT bcs DOT org DOT uk
Board Systems Desk/voicemail: +44(0) 1202 850951
Wimborne, Dorset, Site reception: +44(0) 1202 850850
England, BH21 7PP Fax: +44(0) 1202 850988
_____________________________________________________________________________
- Raw text -