[Gs-devel] building in different directories

Marty Leisner mleisner at eng.mc.xerox.com
Fri May 18 10:23:39 PDT 2001


I built gs7.00 on solaris and linux...
I wanted to lock down the source in one place...

This seems to be a relatively good way of doing it...

It would be a good idea to check for zlib, jpeg and png directories
instead of just failing compile make rules (haven't put this in yet).

This is the hacked up unix-gcc.mak...

(IMHO, it would be a good idea to segregate the makefiles out of source 
(into make scripts/ or support/ or something)

By default, DISTDIR could do something like
DISTDIR=$PWD
so by default it builds in the same directory...

I didn't see in the instructions how to do this...



--- Makefile	2001/04/07 23:34:40	1.19
+++ Makefile	2001/05/17 19:50:41
@@ -26,12 +26,13 @@
 # source, generated intermediate file, and object directories
 # for the graphics library (GL) and the PostScript/PDF interpreter (PS).
 
+DISTDIR=/usr/local/src/gnu/gs7.00
 BINDIR=./bin
-GLSRCDIR=./src
+GLSRCDIR=$(DISTDIR)/src
 GLGENDIR=./obj
 GLOBJDIR=./obj
-PSSRCDIR=./src
-PSLIBDIR=./lib
+PSSRCDIR=$(DISTDIR)/src
+PSLIBDIR=$(DISTDIR)/lib
 PSGENDIR=./obj
 PSOBJDIR=./obj
 
@@ -174,7 +175,7 @@
 # Define the directory where the icclib source are stored.
 # See icclib.mak for more information
 
-ICCSRCDIR=icclib
+ICCSRCDIR=$(DISTDIR)/icclib
 
 # Define how to build the library archives.  (These are not used in any
 # standard configuration.)



marty		mleisner at eng.mc.xerox.com   
Don't  confuse education with schooling.
	Milton Friedman to Yogi Berra



More information about the gs-devel mailing list