Mail Archives: djgpp/1995/11/26/07:48:31
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3432
|
Path: | news-dnh.mv.net!mv!news.NH.Destek.Net!news2.net99.net!news.cais.net!ringer.cs.utsa.edu!swrinde!cs.utexas.edu!news.sprintlink.net!news.omnes.net!news.sinet.slb.com!news.london.sinet.slb.com!senna!devitto
|
From: | devitto AT senna DOT ferndown DOT ate DOT slb DOT com (Dom De Vitto)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: makedepend program ??
|
Date: | 23 Nov 1995 17:40:50 GMT
|
Organization: | Schlumberger SINet, London, England
|
Lines: | 39
|
References: | <DI739q DOT 3w2 AT jade DOT mv DOT net>
|
Nntp-Posting-Host: | senna.ferndown.ate.slb.com
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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.
How about adding something like this too?
ifeq ($(SECOND_RUN),)
make SECOND_RUN=1
endif
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 -