Date: Tue, 26 Nov 1996 08:33:17 GMT From: kvhk AT ivs4 DOT barco DOT com (Koen Van Herck) Message-Id: <9611260833.AA12777@ivs4.> To: eliz AT is DOT elta DOT co DOT il Cc: djgpp AT delorie DOT com In-Reply-To: (message from Eli Zaretskii on Mon, 25 Nov 1996 18:53:11 +0200 (IST)) Subject: Re: DJGPP path from makefile Reply-To: Koen DOT VanHerck AT barco DOT com As often, Eli Zaretskii gave me the right answer: > > 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 = ????? > > Every DJGPP program, including Make (if it is compiled with DJGPP) gets an > environment variable called DJDIR which points to the top DJGPP > installation directory, assuming that the machine where you run this > defines the DJGPP environment variable (set DJGPP=c:/djgpp/djgpp.env) and > if DJGPP.ENV was not screwed up by the user who edited it. If you cannot > assume the above (i.e., you want your installer to work on broken DJGPP > installations), then there is no way to achieve what you want. Otherwise, > just say this: > > DJGPP_PATH = $(DJDIR) > > > install: > > cp $(DJGPP_PATH)/bin/cwsdpmi.exe $(INSTALLDIR) > > cp myprog.exe $(INSTALLDIR) > > Why do you need to copy CWSDPMI at all? If it's on the PATH, the stub > will always find it. It doesn't have to be in the same directory as your > DJGPP program. > I want to make a bootable floppy which contains all necessary files to run the program. I have djgpp installed on different drives in different computers (development platforms), but the floppy should run on computers without djgpp (and without dos). The absence of protection makes dos (djgpp) an ideal development platform for hardware diagnostics. ---- Koen Van Herck Electronic Design Engineer E-mail: Koen DOT VanHerck AT barco DOT com BBBB AAA RRRR CCC OOO B A R C O V I S U A L S Y S T E M S B B A A R R C O O A division of Barco Projection Systems B BB A AAA R RR C OO O OO B B A A R R C O O Noordlaan 5 Tel +32 (0)56 36 85 71 BBBB A A R R CCC OOO B-8520 Kuurne Fax +32 (0)56 36 83 55