--- makefile.orig	Fri Apr  2 21:43:18 1999
+++ makefile	Mon Apr 19 13:21:47 1999
@@ -1,16 +1,17 @@
 # Makefile for pstoedit. 
 
-BINDIR=/usr/local/bin
+BINDIR=${PREFIX}/bin
 # The manual is now distributed in HTML format
-#MANDIR=/usr/local/man
+#MANDIR=${PREFIX}/man
 
-AWK=gawk
-#AWK=awk
+#AWK=gawk
+AWK=awk
 
+LOCALDEFINES=	-DBUGGYGPP
 
 # uncommment one of the following CCC lines for Un*x like systems
 # For users of GNU g++
-CCC=g++        -pedantic -Wall  -Wwrite-strings -Wcast-qual  -Wpointer-arith -Wstrict-prototypes 
+CCC=g++        -pedantic -Wall  -Wwrite-strings -Wcast-qual  -Wpointer-arith -Wstrict-prototypes ${CFLAGS}
 # For users of DJGPP
 #CCC=gxx 
 #CCC=g++ -g -O2 -pedantic -Wall  -Wwrite-strings -Wcast-qual  -Wpointer-arith -Wstrict-prototypes -O2
@@ -29,11 +30,11 @@
 
 # rest of flags for Un*x systems
 LINK=$(CCC) $(LDFLAGS)
-CCFLAGS=-DDEFAULTGS=gs $(CXXFLAGS) 
+CCFLAGS=-DDEFAULTGS=${PREFIX}/bin/gs $(CXXFLAGS) 
 #with shared libs LDFLAGS=-lm -ldl
 LDLIBS= $(LOCALLIBS) -lm  -ldl
 #without shared libs LDFLAGS=-lm 
-#LDLIBS=-lm
+LDLIBS=-lm
 INSTALL_DATA=cp
 #INSTALL_DIR=install -d -m755     # or: mkdir -p
 MANEXT=htm    
