0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.11 2004/08/15 09:38:23 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, 2004
|
|
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 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
37 LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
38 LT_LD = $(LIBTOOL) --mode=link $(CCLINK)
|
|
39
|
|
40 INCLUDES = -I$(KWNNINCLUDESRC) -I$(top_builddir)
|
|
41 DEFINES = $(KWNNDEFINES) $(KWNNLANGDEF)
|
|
42 LOCAL_INSTFLAGS = -o $(WNNOWNER)
|
|
43 HINSIDEFINE = -DHINSIDATA_FILE=\"/$(KWNNLANG)/hinsi.data\"
|
|
44
|
|
45 CLIENTPROGRAMS = kwnnstat kwnnkill kwddel kwdreg
|
|
46
|
|
47 DICUTIL2PROGRAMS = katod katof kwnntouch
|
|
48
|
|
49 DICUTILPROGRAMS = kdtoa
|
|
50
|
|
51 PROGRAMS = $(CLIENTPROGRAMS) $(DICUTILPROGRAMS) $(DICUTIL2PROGRAMS)
|
|
52
|
|
53 LINKS = atod.c atorev.c dic_head.c dtoa.c sort.c ujisf.c wddel.c wdreg.c wnnkill.c wnnstat.c wnntouch.c atof.c
|
|
54
|
|
55 SRC1= $(KWNNETCSRC)/bdic.c
|
|
56 OBJ1= bdic.o
|
|
57 SRC2= $(KWNNETCSRC)/strings.c
|
|
58 OBJ2= strings.o
|
|
59 SRC3= $(KWNNETCSRC)/sstrings.c
|
|
60 OBJ3= sstrings.o
|
|
61 SRC4= $(KWNNETCSRC)/gethinsi.c
|
|
62 OBJ4= gethinsi.o
|
|
63 SRC5= $(KWNNETCSRC)/revdic.c
|
|
64 OBJ5= revdic.o
|
|
65 SRC6= $(KWNNETCSRC)/hindo.c
|
|
66 OBJ6= hindo.o
|
|
67 SRC7= $(KWNNETCSRC)/pwd.c
|
|
68 OBJ7= pwd.o
|
|
69 SRC8= $(KWNNETCSRC)/dic_atojis.c
|
|
70 OBJ8= dic_atojis.o
|
|
71 SRC9= $(KWNNETCSRC)/xutoj.c
|
|
72 OBJ9= xutoj.o
|
|
73 SRC10= $(KWNNETCSRC)/bcopy.c
|
|
74 OBJ10= bcopy.o
|
|
75 SRC11= $(KWNNETCSRC)/server_env.c
|
|
76 OBJ11= server_env.o
|
|
77
|
|
78 LOCAL_ETCSRCS3= $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRC7) $(SRC8) $(SRC9) $(SRC10)
|
|
79
|
|
80 LOCAL_ETCOBJS3= $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJ10)
|
|
81
|
|
82 LOCAL_ETCSRCS2= $(LOCAL_ETCSRCS3) $(SRC6)
|
|
83 LOCAL_ETCOBJS2= $(LOCAL_ETCOBJS3) $(OBJ6)
|
|
84 LOCAL_ETCSRCS1= $(LOCAL_ETCSRCS2) $(SRC5)
|
|
85 LOCAL_ETCOBJS1= $(LOCAL_ETCOBJS2) $(OBJ5)
|
|
86
|
|
87 SRCATOD= atod.c ujisf.c dic_head.c atorev.c $(LOCAL_ETCSRCS1)
|
|
88 OBJATOD= atod.o ujisf.o dic_head.o atorev.o $(LOCAL_ETCOBJS1)
|
|
89 SRCDTOA= dtoa.c ujisf.c dic_head.c $(LOCAL_ETCSRCS1)
|
|
90 OBJDTOA= dtoa.o ujisf.o dic_head.o $(LOCAL_ETCOBJS1)
|
|
91 SRCTOUCH= wnntouch.c $(LOCAL_ETCSRCS3)
|
|
92 OBJTOUCH= wnntouch.o $(LOCAL_ETCOBJS3)
|
|
93 SRCSTAT= wnnstat.c $(SRC3) $(SRC9) $(SRC10) $(SRC11)
|
|
94 OBJSTAT= wnnstat.o $(OBJ3) $(OBJ9) $(OBJ10) $(OBJ11)
|
|
95 SRCKILL= wnnkill.c $(SRC3) $(SRC9) $(SRC10) $(SRC11)
|
|
96 OBJKILL= wnnkill.o $(OBJ3) $(OBJ9) $(OBJ10) $(OBJ11)
|
|
97 SRCSORT= sort.c ujisf.c $(LOCAL_ETCSRCS2)
|
|
98 OBJSORT= sort.o ujisf.o $(LOCAL_ETCOBJS2)
|
|
99 SRCWDDEL= wddel.c $(SRC3) $(SRC9) $(SRC10)
|
|
100 OBJWDDEL= wddel.o $(OBJ3) $(OBJ9) $(OBJ10)
|
|
101 SRCWDREG= wdreg.c ujisf.c $(LOCAL_ETCSRCS2)
|
|
102 OBJWDREG= wdreg.o ujisf.o $(LOCAL_ETCOBJS2)
|
|
103 SRCATOF= atof.c $(LOCAL_ETCSRCS3)
|
|
104 OBJATOF= atof.o $(LOCAL_ETCOBJS3)
|
|
105
|
|
106 SRCS= atod.c dic_head.c wddel.c wnnkill.c atof.c dtoa.c ujisf.c wdreg.c wnnstat.c atorev.c wnntouch.c $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC6) $(SRC7) $(SRC8) $(SRC9) $(SRC10) $(SRC11)
|
|
107
|
|
108 OBJS= atod.o dic_head.o wddel.o wnnkill.o atof.o dtoa.o ujisf.o wdreg.o wnnstat.o atorev.o wnntouch.o $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJ10) $(OBJ11)
|
|
109
|
|
110 all:: $(PROGRAMS)
|
|
111
|
|
112 clean::
|
|
113 $(RM) -r .libs
|
|
114 $(RM) *.lo *.la
|
|
115
|
|
116 katod: $(OBJATOD)
|
|
117 $(RM) $@
|
|
118 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJATOD) @LIBS@
|
|
119
|
|
120 clean::
|
|
121 $(RM) katod
|
|
122
|
|
123 katof: $(OBJATOF)
|
|
124 $(RM) $@
|
|
125 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJATOF) @LIBS@
|
|
126
|
|
127 clean::
|
|
128 $(RM) katof
|
|
129
|
|
130 kwnntouch: $(OBJTOUCH)
|
|
131 $(RM) $@
|
|
132 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJTOUCH) @LIBS@
|
|
133
|
|
134 clean::
|
|
135 $(RM) kwnntouch
|
|
136
|
|
137 kdicsort: $(OBJSORT)
|
|
138 $(RM) $@
|
|
139 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJSORT)
|
|
140
|
|
141 clean::
|
|
142 $(RM) kdicsort
|
|
143
|
|
144 kdtoa: $(OBJDTOA)
|
|
145 $(RM) $@
|
|
146 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJDTOA) @LIBS@
|
|
147
|
|
148 clean::
|
|
149 $(RM) kdtoa
|
|
150
|
|
151 kwnnstat: $(OBJSTAT) @DEPKWNNJLIB@
|
|
152 $(RM) $@
|
|
153 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJSTAT) $(KWNNJLIB) @LIBS@
|
|
154
|
|
155 clean::
|
|
156 $(RM) kwnnstat
|
|
157
|
|
158 kwnnkill: $(OBJKILL) @DEPKWNNJLIB@
|
|
159 $(RM) $@
|
|
160 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJKILL) $(KWNNJLIB) @LIBS@
|
|
161
|
|
162 clean::
|
|
163 $(RM) kwnnkill
|
|
164
|
|
165 kwddel: $(OBJWDDEL) @DEPKWNNJLIB@
|
|
166 $(RM) $@
|
|
167 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJWDDEL) $(KWNNJLIB) @LIBS@
|
|
168
|
|
169 clean::
|
|
170 $(RM) kwddel
|
|
171
|
|
172 kwdreg: $(OBJWDREG) @DEPKWNNJLIB@
|
|
173 $(RM) $@
|
|
174 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJWDREG) $(KWNNJLIB) @LIBS@
|
|
175
|
|
176 clean::
|
|
177 $(RM) kwdreg
|
|
178
|
|
179 includes:: $(LINKS)
|
|
180
|
|
181 atod.c: $(WNNJUTILSRC)/atod.c
|
|
182 $(RM) $@
|
|
183 $(LN) $? $@
|
|
184
|
|
185 includes:: atod.c
|
|
186
|
|
187 depend:: atod.c
|
|
188
|
|
189 clean::
|
|
190 $(RM) atod.c
|
|
191
|
|
192 atorev.c: $(WNNJUTILSRC)/atorev.c
|
|
193 $(RM) $@
|
|
194 $(LN) $? $@
|
|
195
|
|
196 includes:: atorev.c
|
|
197
|
|
198 depend:: atorev.c
|
|
199
|
|
200 clean::
|
|
201 $(RM) atorev.c
|
|
202
|
|
203 dic_head.c: $(WNNJUTILSRC)/dic_head.c
|
|
204 $(RM) $@
|
|
205 $(LN) $? $@
|
|
206
|
|
207 includes:: dic_head.c
|
|
208
|
|
209 depend:: dic_head.c
|
|
210
|
|
211 clean::
|
|
212 $(RM) dic_head.c
|
|
213
|
|
214 dtoa.c: $(WNNJUTILSRC)/dtoa.c
|
|
215 $(RM) $@
|
|
216 $(LN) $? $@
|
|
217
|
|
218 includes:: dtoa.c
|
|
219
|
|
220 depend:: dtoa.c
|
|
221
|
|
222 clean::
|
|
223 $(RM) dtoa.c
|
|
224
|
|
225 sort.c: $(WNNJUTILSRC)/sort.c
|
|
226 $(RM) $@
|
|
227 $(LN) $? $@
|
|
228
|
|
229 includes:: sort.c
|
|
230
|
|
231 depend:: sort.c
|
|
232
|
|
233 clean::
|
|
234 $(RM) sort.c
|
|
235
|
|
236 ujisf.c: $(WNNJUTILSRC)/ujisf.c
|
|
237 $(RM) $@
|
|
238 $(LN) $? $@
|
|
239
|
|
240 includes:: ujisf.c
|
|
241
|
|
242 depend:: ujisf.c
|
|
243
|
|
244 clean::
|
|
245 $(RM) ujisf.c
|
|
246
|
|
247 utilbdic.c: $(WNNJUTILSRC)/utilbdic.c
|
|
248 $(RM) $@
|
|
249 $(LN) $? $@
|
|
250
|
|
251 includes:: utilbdic.c
|
|
252
|
|
253 depend:: utilbdic.c
|
|
254
|
|
255 clean::
|
|
256 $(RM) utilbdic.c
|
|
257
|
|
258 wddel.c: $(WNNJUTILSRC)/wddel.c
|
|
259 $(RM) $@
|
|
260 $(LN) $? $@
|
|
261
|
|
262 includes:: wddel.c
|
|
263
|
|
264 depend:: wddel.c
|
|
265
|
|
266 clean::
|
|
267 $(RM) wddel.c
|
|
268
|
|
269 wdreg.c: $(WNNJUTILSRC)/wdreg.c
|
|
270 $(RM) $@
|
|
271 $(LN) $? $@
|
|
272
|
|
273 includes:: wdreg.c
|
|
274
|
|
275 depend:: wdreg.c
|
|
276
|
|
277 clean::
|
|
278 $(RM) wdreg.c
|
|
279
|
|
280 wnnkill.c: $(WNNJUTILSRC)/wnnkill.c
|
|
281 $(RM) $@
|
|
282 $(LN) $? $@
|
|
283
|
|
284 includes:: wnnkill.c
|
|
285
|
|
286 depend:: wnnkill.c
|
|
287
|
|
288 clean::
|
|
289 $(RM) wnnkill.c
|
|
290
|
|
291 wnnstat.c: $(WNNJUTILSRC)/wnnstat.c
|
|
292 $(RM) $@
|
|
293 $(LN) $? $@
|
|
294
|
|
295 includes:: wnnstat.c
|
|
296
|
|
297 depend:: wnnstat.c
|
|
298
|
|
299 clean::
|
|
300 $(RM) wnnstat.c
|
|
301
|
|
302 wnntouch.c: $(WNNJUTILSRC)/wnntouch.c
|
|
303 $(RM) $@
|
|
304 $(LN) $? $@
|
|
305
|
|
306 includes:: wnntouch.c
|
|
307
|
|
308 depend:: wnntouch.c
|
|
309
|
|
310 clean::
|
|
311 $(RM) wnntouch.c
|
|
312
|
|
313 atof.c: $(WNNJUTILSRC)/atof.c
|
|
314 $(RM) $@
|
|
315 $(LN) $? $@
|
|
316
|
|
317 includes:: atof.c
|
|
318
|
|
319 depend:: atof.c
|
|
320
|
|
321 clean::
|
|
322 $(RM) atof.c
|
|
323
|
|
324 instclient:: install
|
|
325
|
|
326 install:: $(PROGRAMS)
|
|
327 @if [ -d $(DESTDIR)$(KWNNBINDIR) ]; then set +x; \
|
|
328 else (set -x; $(MKDIRHIER) $(DESTDIR)$(KWNNBINDIR)); fi
|
|
329 @for flag in ${MAKEFLAGS} ''; do \
|
|
330 case "$$flag" in *=*) ;; *[i]*) set +e;; esac; done; \
|
|
331 for i in $(PROGRAMS); do \
|
|
332 (set -x; $(LT_INSTALL) $(INSTBINFLAGS) $(INSTPGMFLAGS) $(LOCAL_INSTFLAGS) $$i $(DESTDIR)$(KWNNBINDIR)); \
|
|
333 done
|
|
334
|
|
335 $(OBJ1) : $(SRC1)
|
|
336 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
337
|
|
338 $(OBJ2) : $(SRC2)
|
|
339 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
340
|
|
341 $(OBJ3) : $(SRC3)
|
|
342 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
343
|
|
344 $(OBJ4) : $(SRC4)
|
|
345 $(CC) -c $(CFLAGS) $(HINSIDEFINE) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
346
|
|
347 $(OBJ5) : $(SRC5)
|
|
348 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
349
|
|
350 $(OBJ6) : $(SRC6)
|
|
351 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
352
|
|
353 $(OBJ7) : $(SRC7)
|
|
354 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
355
|
|
356 $(OBJ8) : $(SRC8)
|
|
357 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
358
|
|
359 $(OBJ9) : $(SRC9)
|
|
360 $(CC) -c $(CFLAGS) $(WNNLANGDEF) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
361
|
|
362 $(OBJ10) : $(SRC10)
|
|
363 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
364
|
|
365 $(OBJ11) : $(SRC11)
|
|
366 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
367
|
|
368 depend:: .depend
|
|
369
|
|
370 clean::
|
|
371 $(RM) $(LINKS)
|
|
372
|