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