--- Makefile.orig Wed Mar 20 00:59:19 2002 +++ Makefile Sat Jun 14 09:21:10 2003 @@ -6,11 +6,11 @@ # set INSTALLROOT to the installation base; it is used to set the # other directory variables below -INSTALLROOT = /usr/local +INSTALLROOT = ${PREFIX} #INSTALLROOT = /usr # set LIBDIR to where you will keep the datafiles, fontspecs, and "hanwin.tcl" -LIBDIR = $(INSTALLROOT)/lib/Hanzim +LIBDIR = $(INSTALLROOT)/lib/hanzim #LIBDIR = /usr/local/lib/Hanzim # for debugging #LIBDIR = ./Data @@ -24,7 +24,7 @@ #MANDIR = /usr/local/man # set DOCDIR to where you want the documentation files to reside -DOCDIR = $(INSTALLROOT)/doc +DOCDIR = $(INSTALLROOT)/share/doc/hanzim #DOCDIR = $(INSTALLROOT)/share/doc #DOCDIR = /usr/local/share/doc #DOCDIR = /usr/share/doc @@ -41,13 +41,13 @@ #OS=WINDOWS # location of Tcl and Tk libraries -LIBTCLDIR = -L /usr/lib +LIBTCLDIR = -L${LOCALBASE}/lib # location of x library -LIBXDIR = -L /usr/X11/lib +LIBXDIR = -L${LOCALBASE}/lib # you might need to change "libtcl" and "libtk" to "libtcl8.x" and "libtk8.x" -LIBS = $(LIBXDIR) $(LIBTCLDIR) -ltk -ltcl -lX11 -lm -ldl +LIBS = $(LIBXDIR) $(LIBTCLDIR) -ltk84 -ltcl84 -lX11 -lm INSTALL = install RM = rm -f @@ -55,9 +55,8 @@ # End of configuration. ############################################################################### -CC = cc -DEFINES = -D$(OS) -DLIBDIR=\"$(LIBDIR)\" -CFLAGS = -O2 $(DEFINES) +DEFINES = -D$(OS) -DLIBDIR=\"$(LIBDIR)\" -I${LOCALBASE}/include/tk8.4 -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include +CFLAGS += $(DEFINES) #CFLAGS = -O2 -Wall -pedantic -ansi $(DEFINES) LFLAGS = $(LIBS) -s