www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/25/19:55:09

Date: Mon, 25 Nov 1996 19:46:09 -0500 (EST)
From: Frank Donahoe <fdonahoe AT wilkes1 DOT wilkes DOT edu>
To: Koen DOT VanHerck AT barco DOT com
Cc: DJGPP List <djgpp AT delorie DOT com>
Subject: Re: DJGPP path from makefile
In-Reply-To: <9611251613.AA11043@ivs4.>
Message-Id: <Pine.A32.3.91.961125193023.49892B-100000@wilkes1.wilkes.edu>
Mime-Version: 1.0


On Mon, 25 Nov 1996, Koen Van Herck wrote:
> 
> does anyone know if it is possible to detect the installation path of
> djgpp in a makefile ? I want to do the following:
> 
> INSTALLDIR = a:/
> DJGPP_PATH = ?????
> 
> install:
> 	cp $(DJGPP_PATH)/bin/cwsdpmi.exe $(INSTALLDIR)
> 	cp myprog.exe $(INSTALLDIR)
; . . .

Add a section to your djgpp.env file, for example:

- - - -

[make]
CC=gcc
prefix=%\>:prefix%%\DJDIR%
LIB_PATH=%\>;LIB_PATH%%\DJDIR%\lib

- - - -

I have used back-slashes because the gnu utilities understand both types,
some DOS constructs eat forward-slashes, and not everyone will have cp,
install, mv and rm but must make do with copy, move and del.  It is trivial
to convert the expressions back to forward slashes.

With this addition one can refer in the makefile to $(CC), $(prefix),
$(LIB_PATH) etc. as many items as are in the djgpp.env file for make.

Regards, Frank


- Raw text -


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