Date: Mon, 17 Jan 2000 19:28:25 +0200 (WET) From: Andris Pavenis To: Gisle Vanem cc: djgpp Subject: Re: make depend In-Reply-To: <010d01bf60ef$d8b87240$293f8589@gv015029.bgo.nera.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 17 Jan 2000, Gisle Vanem wrote: > Ever since installing gcc 2.95.2 (and djgpp 2.03), 'make depend' targets always > includes extra files from $DJDIR/include. Example: > > charpool.o: charpool.c e:/djgpp/lib/../include/sys/version.h \ > charpool.h utils.h error.h > > With a file 'charpool.c' that only includes which includes > . Looking at I note it lacks > "#ifndef __dj_ENFORCE_ANSI_FREESTANDING" around it as others > do. If this the reason? > Including $DJDIR/lib/../include/sys/version.h is a hack how to get definitions of current DJGPP version automatically in. I still think that best would be to force to include stdio.h when one needs version definitions, but there were objections against such solution. Simply this was best I was able to do to get version automatically in using definition in gcc specs. Maybe I'm wrong but some my tests with later development versions of gcc-2.96 shows that this hack no more works, so it's possible we'll have to drop it in future Andris