aboutsummaryrefslogtreecommitdiff
path: root/chinese/hanzim/files/patch-Makefile
blob: 8234eaee4335f6adc46199f6c4665f2a2f9e732e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
--- 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${X11BASE}/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${X11BASE}/include
+CFLAGS += $(DEFINES)
 #CFLAGS = -O2 -Wall -pedantic -ansi $(DEFINES)
 LFLAGS = $(LIBS)  -s