--- Makefile	Wed Dec  9 23:58:24 1998
+++ /home/andy/tmp/wrk/Makefile	Sat Feb 13 18:29:55 1999
@@ -4,16 +4,22 @@
 #
 #----------------------------------------------------------------------------------
 
+# X11R6 directory
+X11BASE ?= /usr/X11R6
+
+# Local packages directory
+LOCALBASE ?= /usr/local
+
 # place to install the EZWGL library
-LIBDIR = /usr/local/lib
+LIBDIR = $(X11BASE)/lib
 #LIBDIR = /usr/lib
 
 # place to install the header file EZ.h
-INCLDIR = /usr/local/include
+INCLDIR = $(X11BASE)/include
 #INCLDIR = /usr/include
 
 # place to instal the man pages
-MANDIR=/usr/local/man/man3
+MANDIR = $(X11BASE)/man/man3
 
 #----------------------------------------------------------------------------------
 AR = ar
@@ -22,14 +28,14 @@
 #----------------------------------------------------------------------------------
 # Compiler, you need gcc.
 #
-CC= gcc -Wall 
+#CC= gcc -Wall 
 #
 #
 DEBUG_FLAG = #-DEZ_DEBUG 
 #
 # Optimization flag.
 #
-OPTIMIZATION_FLAG = -O2  -fexpensive-optimizations -funroll-loops
+#OPTIMIZATION_FLAG = -O2  -fexpensive-optimizations -funroll-loops
 #
 # If your X window environment does not support the MIT shared memory
 # extension, comment out the next line. 
@@ -45,8 +51,8 @@
 #  If you don't want the JPEG support, simply comment out
 #  the next two lines.
 #
-JPEG_FLAG = -DJPEG -I../jpeg 
-JPEG_LIB = #../jpeg/libjpeg.a 
+JPEG_FLAG = -DJPEG -I${LOCALBASE}/include -I${X11BASE}/include
+#JPEG_LIB = #../jpeg/libjpeg.a 
 #
 # A few high frequency gl routines have macro substitutes. The macro version
 # is about, on average, 5-10% faster. However, they generate about 25% larger
@@ -58,7 +64,7 @@
 GL_FLAG = -DUSE_GL_MACROS  #-DLOW_PRECISION_SQRT
 #
 #------------------------------------------------------------------
-CFLAGS =  $(OPTIMIZATION_FLAG) 
+#CFLAGS =  $(OPTIMIZATION_FLAG) 
 FLAGS = $(DEBUG_FLAG) $(GL_FLAG) $(MISC_FLAG) $(JPEG_FLAG)
 COMPILER = $(CC)  $(CFLAGS) 
 
@@ -68,16 +74,16 @@
 
 
 shared:
-	cd jpeg;      make all CC="$(CC) -fpic";
+#	cd jpeg;      make all CC="$(CC) -fpic";
 	cd lib;       make shared CC="$(COMPILER) $(FLAGS) -fpic"
-	cd examples;  make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
-	cd demos;  make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
+#	cd examples;  make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
+#	cd demos;  make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
 
 static:
-	cd jpeg;      make all CC="$(CC)";
+#	cd jpeg;      make all CC="$(CC)";
 	cd lib;       make static  CC="$(COMPILER) $(FLAGS)" AR="$(AR)" RANLIB="$(RANLIB)"
-	cd examples;  make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
-	cd demos;     make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
+#	cd examples;  make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
+#	cd demos;     make all  CC="$(COMPILER)" LIBDIR="$(LIBDIR)" JPEG_LIB="$(JPEG_LIB)"
 
 install-shared:
 	cd include;  make install CC="$(COMPILER)" INCLDIR="$(INCLDIR)"
