0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.12 2004/09/12 16:56:55 aono Exp $
|
|
3 #
|
|
4
|
|
5 #
|
|
6 # FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
7 # This file is part of FreeWnn.
|
|
8 #
|
|
9 # Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
10 # 1987, 1988, 1989, 1990, 1991, 1992
|
|
11 # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
12 # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
13 # Copyright FreeWnn Project 1999, 2000, 2001, 2003
|
|
14 #
|
|
15 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
16 #
|
|
17 # This program is free software; you can redistribute it and/or modify
|
|
18 # it under the terms of the GNU General Public License as published by
|
|
19 # the Free Software Foundation; either version 2 of the License, or
|
|
20 # (at your option) any later version.
|
|
21 #
|
|
22 # This program is distributed in the hope that it will be useful,
|
|
23 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
25 # GNU General Public License for more details.
|
|
26 #
|
|
27 # You should have received a copy of the GNU General Public License
|
|
28 # along with this program; if not, write to the Free Software
|
|
29 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
30 #
|
|
31
|
|
32 include @top_builddir@/makerule.mk
|
|
33 top_srcdir = @top_srcdir@
|
|
34 top_builddir = @top_builddir@
|
|
35
|
|
36 LINKS = jl.c js.c wnnerrmsg.c
|
|
37 JLIBDEFINES = -DWRITE_CHECK
|
|
38 INCLUDES = -I$(KWNNINCLUDESRC) -I$(top_builddir)
|
|
39 DEFINES = $(KWNNDEFINES) $(KWNNLANGDEF) $(CWNNLANGDEF) $(JLIBDEFINES)
|
|
40 # # for Mule
|
|
41 # # -- S. Taoka
|
|
42 LINTLIBS =
|
|
43 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
44 LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
45 LT_CC = $(LIBTOOL) --mode=compile $(CC)
|
|
46
|
|
47 SRC1= js.c wnnerrmsg.c jl.c
|
|
48 OBJ1= js.o wnnerrmsg.o jl.o
|
|
49
|
|
50 SRC3= $(KWNNETCSRC)/msg.c
|
|
51 OBJ3= msg.o
|
|
52 SRC4= $(KWNNETCSRC)/strings.c
|
|
53 OBJ4= strings.o
|
|
54 SRC5= $(KWNNETCSRC)/bcopy.c
|
|
55 OBJ5= bcopy.o
|
|
56 SRC6= $(KWNNETCSRC)/yincoding.c
|
|
57 # for Mule
|
|
58 # -- S. Taoka
|
|
59 OBJ6= yincoding.o
|
|
60 SRC7= $(KWNNETCSRC)/py_table.c
|
|
61 OBJ7= py_table.o
|
|
62 SRC8= $(KWNNETCSRC)/zy_table.c
|
|
63 OBJ8= zy_table.o
|
|
64
|
|
65 LOCAL_RKSRCS= $(KWNNROMKANSRC)/rk_bltinfn.c $(KWNNROMKANSRC)/rk_main.c $(KWNNROMKANSRC)/rk_modread.c $(KWNNROMKANSRC)/rk_read.c $(KWNNROMKANSRC)/rk_vars.c
|
|
66
|
|
67 LOCAL_RKOBJS= $(KWNNROMKANSRC)/rk_bltinfn.o $(KWNNROMKANSRC)/rk_main.o $(KWNNROMKANSRC)/rk_modread.o $(KWNNROMKANSRC)/rk_read.o $(KWNNROMKANSRC)/rk_vars.o
|
|
68
|
|
69 LOCAL_ETCSRCS = $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8)
|
|
70 LOCAL_ETCOBJS = $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
|
|
71 OTHER_SRCS = $(WNNETCSRC)/mkdir.c
|
|
72 OTHER_OBJS = mkdir.o
|
|
73 SRCS= $(SRC1) $(SRC3) $(LOCAL_ETCSRCS) $(OTHER_SRCS)
|
|
74 OBJS= $(OBJ1) $(OBJ3) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS) $(OTHER_OBJS)
|
|
75
|
|
76 all::
|
|
77
|
|
78 includes::
|
|
79
|
|
80 .c.o:
|
|
81 $(RM) $@
|
|
82 $(LT_CC) -c $(CFLAGS) $(_NOOP_) $*.c
|
|
83
|
|
84 clean::
|
|
85 $(RM) -r .libs
|
|
86 $(RM) *.lo *.la
|
|
87
|
|
88 all:: $(LINKS) $(OBJS) libkwnn.la
|
|
89
|
|
90 includes:: $(LINKS)
|
|
91
|
|
92 jl.c: $(WNNJLIBSRC)/jl.c
|
|
93 $(RM) $@
|
|
94 $(LN) $? $@
|
|
95
|
|
96 includes:: jl.c
|
|
97
|
|
98 depend:: jl.c
|
|
99
|
|
100 clean::
|
|
101 $(RM) jl.c
|
|
102
|
|
103 js.c: $(WNNJLIBSRC)/js.c
|
|
104 $(RM) $@
|
|
105 $(LN) $? $@
|
|
106
|
|
107 includes:: js.c
|
|
108
|
|
109 depend:: js.c
|
|
110
|
|
111 clean::
|
|
112 $(RM) js.c
|
|
113
|
|
114 wnnerrmsg.c: $(WNNJLIBSRC)/wnnerrmsg.c
|
|
115 $(RM) $@
|
|
116 $(LN) $? $@
|
|
117
|
|
118 includes:: wnnerrmsg.c
|
|
119
|
|
120 depend:: wnnerrmsg.c
|
|
121
|
|
122 clean::
|
|
123 $(RM) wnnerrmsg.c
|
|
124
|
|
125 js.o : js.c $(KWNNETCSRC)/bdic.c $(KWNNETCSRC)/pwd.c $(KWNNETCSRC)/gethinsi.c
|
|
126
|
|
127 lint:
|
|
128 $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
|
|
129
|
|
130 all:: libkwnn.la
|
|
131
|
|
132 libkwnn.la: $(OBJS) $(EXTRALIBRARYDEPS)
|
|
133 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(KWNNJLIBVERSION)
|
|
134
|
|
135 lintlib:: llib-lkwnn.ln
|
|
136
|
|
137 llib-lkwnn.ln: $(SRCS) $(EXTRALIBRARYDEPS)
|
|
138 $(RM) $@
|
|
139 $(LINT) $(LINTLIBFLAG)kwnn $(LINTFLAGS) $(SRCS)
|
|
140
|
|
141 instlib:: install
|
|
142
|
|
143 install:: libkwnn.la
|
|
144 @if [ -d $(DESTDIR)$(WNNLIBDIR) ]; then set +x; \
|
|
145 else (set -x; $(MKDIRHIER) $(DESTDIR)$(WNNLIBDIR)); fi
|
|
146 $(LT_INSTALL) $(INSTLIBFLAGS) libkwnn.la $(DESTDIR)$(WNNLIBDIR)
|
|
147
|
|
148 $(OBJ3) : $(SRC3)
|
|
149 $(LT_CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
150
|
|
151 $(OBJ4) : $(SRC4)
|
|
152 $(LT_CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
153
|
|
154 $(OBJ5) : $(SRC5)
|
|
155 $(LT_CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
156
|
|
157 $(OBJ6) : $(SRC6)
|
|
158 $(LT_CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
159
|
|
160 $(OBJ7) : $(SRC7)
|
|
161 $(LT_CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
162
|
|
163 $(OBJ8) : $(SRC8)
|
|
164 $(LT_CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
165
|
|
166 mkdir.o : $(WNNETCSRC)/mkdir.c
|
|
167 $(LT_CC) -c $(CFLAGS) $?
|
|
168
|
|
169 $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
|
|
170 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
|
|
171 cd $(KWNNROMKANSRC); \
|
|
172 echo "making all in $(KWNNROMKANSRC)"; \
|
|
173 $(MAKE) $(MFLAGS)
|
|
174
|
|
175 depend:: .depend
|
|
176
|
|
177 clean::
|
|
178 -$(RM) $(LINKS)
|
|
179
|