--- Makefile.orig	Mon Oct  7 15:31:25 1996
+++ Makefile	Sat Apr  3 11:15:32 1999
@@ -26,11 +26,10 @@
 #
 PROG	 = tgd
 HOME     = .
-GDHOME   = $(HOME)/gd1.2
-CC	 = gcc
+CC	 ?= gcc
 CDEFS	 = 
-INCLUDE  = -I$(HOME) -I$(GDHOME)
-GDLIB    = $(GDHOME)/libgd.a
+INCLUDE  = -I$(HOME) -I${PREFIX}/include/gd
+GDLIB    = ${PREFIX}/lib/libgd.a
 #
 # Some debugging/profiling options
 # CFLAGS   = -p  $(CDEFS) $(INCLUDE)
@@ -40,10 +39,10 @@
 #
 # CFLAGS	 = -g  $(CDEFS) $(INCLUDE)
 # LDFLAGS	 = -g -n 
-CFLAGS	 = $(CDEFS) $(INCLUDE)
+CFLAGS	 += $(CDEFS) $(INCLUDE)
 LDFLAGS	 =
 
-LDLIBS	 = -L$(GDHOME) -lgd -lm
+LDLIBS	 = -L${PREFIX}/lib -lgd -lm
 MAKEFILE = Makefile
 FONT1    = tgdFont10x20.c tgdFont12x24.c tgdFont5x8.c tgdFont6x10.c
 FONT2    = tgdFont6x12.c tgdFont6x13.c tgdFont6x13bold.c tgdFont6x9.c
