delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/26/13:41:35

Xref: news-dnh.mv.net comp.os.msdos.djgpp:3434
Path: news-dnh.mv.net!mv!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: 26 Nov 1995 15:12:47 GMT
Organization: Schlumberger SINet, London, England
Lines: 32
References: <DI739q DOT 3w2 AT jade DOT mv DOT net> <492bn2$en6 AT snlsu1>
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

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 -


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