0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.12 2006/03/04 19:01:46 aonoto 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, 2005, 2006
|
|
14 #
|
|
15 # Maintainer: FreeWnn Project
|
|
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@
|
|
37
|
|
38 UUMOWNER = root
|
|
39 INCLUDES = -I$(KWNNINCLUDESRC) -I$(KWNNROMKANSRC) -I$(top_builddir)
|
|
40 DEFINES = $(KWNNDEFINES) $(KWNNLANGDEF)
|
|
41 LOCAL_INSTFLAGS = $(INSTUIDFLAGS) -o $(UUMOWNER)
|
|
42 LOCAL_LIBRARIES = $(KWNNJLIB) $(KWNNCONVLIB) @LIBS@
|
|
43 # FIXME: libspt: need configure support ...
|
|
44 # LIBSPT_CFLAGS = @LIBSPT_CFLAGS@
|
|
45 # LIBSPT_LIBS = @LIBSPT_LIBS@
|
|
46
|
|
47 HDRS= buffer.h cvtcode.h sdefine.h sheader.h
|
|
48 SRC1= epilogue.c header.c kensaku.c kuten.c jis_in.c prologue.c touroku.c jikouho.c jutil.c w_string.c printf.c termio.c hinsi.c termcap.c ttyfdslot.c setutmp.c redraw.c history.c key_bind.c screen.c basic_op.c uif.c cursor.c jhlp.c select_ele.c inspect.c wnnrc_op.c functions.c
|
|
49
|
|
50 OBJ1= epilogue.o header.o kensaku.o kuten.o jis_in.o prologue.o touroku.o jikouho.o jutil.o w_string.o printf.o termio.o hinsi.o termcap.o ttyfdslot.o setutmp.o redraw.o history.o key_bind.o screen.o basic_op.o uif.o cursor.o jhlp.o select_ele.o inspect.o wnnrc_op.o functions.o
|
|
51
|
|
52 SRC2= $(KWNNETCSRC)/bcopy.c
|
|
53 OBJ2= bcopy.o
|
|
54 SRC3= $(KWNNETCSRC)/xutoj.c
|
|
55 OBJ3= xutoj.o
|
|
56 SRC4= $(KWNNETCSRC)/server_env.c
|
|
57 OBJ4= server_env.o
|
|
58 SRC5= $(WNNETCSRC)/sstrings.c
|
|
59 OBJ5= sstrings.o
|
|
60 LOCAL_ETCSRCS= $(SRC2) $(SRC3) $(SRC4) $(SRC5)
|
|
61 LOCAL_ETCOBJS= $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5)
|
|
62 SRCS= $(SRC1) $(LOCAL_ETCSRCS)
|
|
63 OBJS= $(OBJ1) $(LOCAL_ETCOBJS)
|
|
64
|
|
65 all:: $(HDRS) $(SRC1) kuum
|
|
66
|
|
67 kuum: $(OBJS) @DEPKWNNJLIB@ $(KWNNCONVLIB)
|
|
68 $(RM) $@
|
|
69 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) $(LIBSPT_LIBS) @TERMLIB@
|
|
70
|
|
71 clean::
|
|
72 $(RM) -r .libs
|
|
73 $(RM) kuum
|
|
74
|
|
75 includes:: $(HDRS) $(SRC1)
|
|
76
|
|
77 buffer.h: $(WNNUUMSRC)/buffer.h
|
|
78 $(RM) $@
|
|
79 $(LN) $? $@
|
|
80
|
|
81 includes:: buffer.h
|
|
82
|
|
83 depend:: buffer.h
|
|
84
|
|
85 clean::
|
|
86 $(RM) buffer.h
|
|
87
|
|
88 cvtcode.h: $(WNNUUMSRC)/cvtcode.h
|
|
89 $(RM) $@
|
|
90 $(LN) $? $@
|
|
91
|
|
92 includes:: cvtcode.h
|
|
93
|
|
94 depend:: cvtcode.h
|
|
95
|
|
96 clean::
|
|
97 $(RM) cvtcode.h
|
|
98
|
|
99 sdefine.h: $(WNNUUMSRC)/sdefine.h
|
|
100 $(RM) $@
|
|
101 $(LN) $? $@
|
|
102
|
|
103 includes:: sdefine.h
|
|
104
|
|
105 depend:: sdefine.h
|
|
106
|
|
107 clean::
|
|
108 $(RM) sdefine.h
|
|
109
|
|
110 sheader.h: $(WNNUUMSRC)/sheader.h
|
|
111 $(RM) $@
|
|
112 $(LN) $? $@
|
|
113
|
|
114 includes:: sheader.h
|
|
115
|
|
116 depend:: sheader.h
|
|
117
|
|
118 clean::
|
|
119 $(RM) sheader.h
|
|
120
|
|
121 epilogue.c: $(WNNUUMSRC)/epilogue.c
|
|
122 $(RM) $@
|
|
123 $(LN) $? $@
|
|
124
|
|
125 includes:: epilogue.c
|
|
126
|
|
127 depend:: epilogue.c
|
|
128
|
|
129 clean::
|
|
130 $(RM) epilogue.c
|
|
131
|
|
132 header.c: $(WNNUUMSRC)/header.c
|
|
133 $(RM) $@
|
|
134 $(LN) $? $@
|
|
135
|
|
136 includes:: header.c
|
|
137
|
|
138 depend:: header.c
|
|
139
|
|
140 clean::
|
|
141 $(RM) header.c
|
|
142
|
|
143 kensaku.c: $(WNNUUMSRC)/kensaku.c
|
|
144 $(RM) $@
|
|
145 $(LN) $? $@
|
|
146
|
|
147 includes:: kensaku.c
|
|
148
|
|
149 depend:: kensaku.c
|
|
150
|
|
151 clean::
|
|
152 $(RM) kensaku.c
|
|
153
|
|
154 kuten.c: $(WNNUUMSRC)/kuten.c
|
|
155 $(RM) $@
|
|
156 $(LN) $? $@
|
|
157
|
|
158 includes:: kuten.c
|
|
159
|
|
160 depend:: kuten.c
|
|
161
|
|
162 clean::
|
|
163 $(RM) kuten.c
|
|
164
|
|
165 jis_in.c: $(WNNUUMSRC)/jis_in.c
|
|
166 $(RM) $@
|
|
167 $(LN) $? $@
|
|
168
|
|
169 includes:: jis_in.c
|
|
170
|
|
171 depend:: jis_in.c
|
|
172
|
|
173 clean::
|
|
174 $(RM) jis_in.c
|
|
175
|
|
176 prologue.c: $(WNNUUMSRC)/prologue.c
|
|
177 $(RM) $@
|
|
178 $(LN) $? $@
|
|
179
|
|
180 includes:: prologue.c
|
|
181
|
|
182 depend:: prologue.c
|
|
183
|
|
184 clean::
|
|
185 $(RM) prologue.c
|
|
186
|
|
187 touroku.c: $(WNNUUMSRC)/touroku.c
|
|
188 $(RM) $@
|
|
189 $(LN) $? $@
|
|
190
|
|
191 includes:: touroku.c
|
|
192
|
|
193 depend:: touroku.c
|
|
194
|
|
195 clean::
|
|
196 $(RM) touroku.c
|
|
197
|
|
198 jikouho.c: $(WNNUUMSRC)/jikouho.c
|
|
199 $(RM) $@
|
|
200 $(LN) $? $@
|
|
201
|
|
202 includes:: jikouho.c
|
|
203
|
|
204 depend:: jikouho.c
|
|
205
|
|
206 clean::
|
|
207 $(RM) jikouho.c
|
|
208
|
|
209 jutil.c: $(WNNUUMSRC)/jutil.c
|
|
210 $(RM) $@
|
|
211 $(LN) $? $@
|
|
212
|
|
213 includes:: jutil.c
|
|
214
|
|
215 depend:: jutil.c
|
|
216
|
|
217 clean::
|
|
218 $(RM) jutil.c
|
|
219
|
|
220 w_string.c: $(WNNUUMSRC)/w_string.c
|
|
221 $(RM) $@
|
|
222 $(LN) $? $@
|
|
223
|
|
224 includes:: w_string.c
|
|
225
|
|
226 depend:: w_string.c
|
|
227
|
|
228 clean::
|
|
229 $(RM) w_string.c
|
|
230
|
|
231 printf.c: $(WNNUUMSRC)/printf.c
|
|
232 $(RM) $@
|
|
233 $(LN) $? $@
|
|
234
|
|
235 includes:: printf.c
|
|
236
|
|
237 depend:: printf.c
|
|
238
|
|
239 clean::
|
|
240 $(RM) printf.c
|
|
241
|
|
242 termio.c: $(WNNUUMSRC)/termio.c
|
|
243 $(RM) $@
|
|
244 $(LN) $? $@
|
|
245
|
|
246 includes:: termio.c
|
|
247
|
|
248 depend:: termio.c
|
|
249
|
|
250 clean::
|
|
251 $(RM) termio.c
|
|
252
|
|
253 hinsi.c: $(WNNUUMSRC)/hinsi.c
|
|
254 $(RM) $@
|
|
255 $(LN) $? $@
|
|
256
|
|
257 includes:: hinsi.c
|
|
258
|
|
259 depend:: hinsi.c
|
|
260
|
|
261 clean::
|
|
262 $(RM) hinsi.c
|
|
263
|
|
264 termcap.c: $(WNNUUMSRC)/termcap.c
|
|
265 $(RM) $@
|
|
266 $(LN) $? $@
|
|
267
|
|
268 includes:: termcap.c
|
|
269
|
|
270 depend:: termcap.c
|
|
271
|
|
272 clean::
|
|
273 $(RM) termcap.c
|
|
274
|
|
275 ttyfdslot.c: $(WNNUUMSRC)/ttyfdslot.c
|
|
276 $(RM) $@
|
|
277 $(LN) $? $@
|
|
278
|
|
279 includes:: ttyfdslot.c
|
|
280
|
|
281 depend:: ttyfdslot.c
|
|
282
|
|
283 clean::
|
|
284 $(RM) ttyfdslot.c
|
|
285
|
|
286 setutmp.c: $(WNNUUMSRC)/setutmp.c
|
|
287 $(RM) $@
|
|
288 $(LN) $? $@
|
|
289
|
|
290 includes:: setutmp.c
|
|
291
|
|
292 depend:: setutmp.c
|
|
293
|
|
294 clean::
|
|
295 $(RM) setutmp.c
|
|
296
|
|
297 redraw.c: $(WNNUUMSRC)/redraw.c
|
|
298 $(RM) $@
|
|
299 $(LN) $? $@
|
|
300
|
|
301 includes:: redraw.c
|
|
302
|
|
303 depend:: redraw.c
|
|
304
|
|
305 clean::
|
|
306 $(RM) redraw.c
|
|
307
|
|
308 history.c: $(WNNUUMSRC)/history.c
|
|
309 $(RM) $@
|
|
310 $(LN) $? $@
|
|
311
|
|
312 includes:: history.c
|
|
313
|
|
314 depend:: history.c
|
|
315
|
|
316 clean::
|
|
317 $(RM) history.c
|
|
318
|
|
319 key_bind.c: $(WNNUUMSRC)/key_bind.c
|
|
320 $(RM) $@
|
|
321 $(LN) $? $@
|
|
322
|
|
323 includes:: key_bind.c
|
|
324
|
|
325 depend:: key_bind.c
|
|
326
|
|
327 clean::
|
|
328 $(RM) key_bind.c
|
|
329
|
|
330 screen.c: $(WNNUUMSRC)/screen.c
|
|
331 $(RM) $@
|
|
332 $(LN) $? $@
|
|
333
|
|
334 includes:: screen.c
|
|
335
|
|
336 depend:: screen.c
|
|
337
|
|
338 clean::
|
|
339 $(RM) screen.c
|
|
340
|
|
341 basic_op.c: $(WNNUUMSRC)/basic_op.c
|
|
342 $(RM) $@
|
|
343 $(LN) $? $@
|
|
344
|
|
345 includes:: basic_op.c
|
|
346
|
|
347 depend:: basic_op.c
|
|
348
|
|
349 clean::
|
|
350 $(RM) basic_op.c
|
|
351
|
|
352 uif.c: $(WNNUUMSRC)/uif.c
|
|
353 $(RM) $@
|
|
354 $(LN) $? $@
|
|
355
|
|
356 includes:: uif.c
|
|
357
|
|
358 depend:: uif.c
|
|
359
|
|
360 clean::
|
|
361 $(RM) uif.c
|
|
362
|
|
363 cursor.c: $(WNNUUMSRC)/cursor.c
|
|
364 $(RM) $@
|
|
365 $(LN) $? $@
|
|
366
|
|
367 includes:: cursor.c
|
|
368
|
|
369 depend:: cursor.c
|
|
370
|
|
371 clean::
|
|
372 $(RM) cursor.c
|
|
373
|
|
374 jhlp.c: $(WNNUUMSRC)/jhlp.c
|
|
375 $(RM) $@
|
|
376 $(LN) $? $@
|
|
377
|
|
378 includes:: jhlp.c
|
|
379
|
|
380 depend:: jhlp.c
|
|
381
|
|
382 clean::
|
|
383 $(RM) jhlp.c
|
|
384
|
|
385 select_ele.c: $(WNNUUMSRC)/select_ele.c
|
|
386 $(RM) $@
|
|
387 $(LN) $? $@
|
|
388
|
|
389 includes:: select_ele.c
|
|
390
|
|
391 depend:: select_ele.c
|
|
392
|
|
393 clean::
|
|
394 $(RM) select_ele.c
|
|
395
|
|
396 inspect.c: $(WNNUUMSRC)/inspect.c
|
|
397 $(RM) $@
|
|
398 $(LN) $? $@
|
|
399
|
|
400 includes:: inspect.c
|
|
401
|
|
402 depend:: inspect.c
|
|
403
|
|
404 clean::
|
|
405 $(RM) inspect.c
|
|
406
|
|
407 wnnrc_op.c: $(WNNUUMSRC)/wnnrc_op.c
|
|
408 $(RM) $@
|
|
409 $(LN) $? $@
|
|
410
|
|
411 includes:: wnnrc_op.c
|
|
412
|
|
413 depend:: wnnrc_op.c
|
|
414
|
|
415 clean::
|
|
416 $(RM) wnnrc_op.c
|
|
417
|
|
418 functions.c: $(WNNUUMSRC)/functions.c
|
|
419 $(RM) $@
|
|
420 $(LN) $? $@
|
|
421
|
|
422 includes:: functions.c
|
|
423
|
|
424 depend:: functions.c
|
|
425
|
|
426 clean::
|
|
427 $(RM) functions.c
|
|
428
|
|
429 instclient:: install
|
|
430
|
|
431 install:: kuum
|
|
432 @if [ -d $(DESTDIR)$(KWNNBINDIR) ]; then set +x; \
|
|
433 else (set -x; $(MKDIRHIER) $(DESTDIR)$(KWNNBINDIR)); fi
|
|
434 $(LT_INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS) $(LOCAL_INSTFLAGS) kuum $(DESTDIR)$(KWNNBINDIR)/kuum
|
|
435
|
|
436 $(OBJ2) : $(SRC2)
|
|
437 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
438
|
|
439 $(OBJ3) : $(SRC3)
|
|
440 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
441
|
|
442 $(OBJ4) : $(SRC4)
|
|
443 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
444
|
|
445 $(OBJ5) : $(SRC5)
|
|
446 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c
|
|
447
|
|
448 depend:: .depend
|
|
449
|
|
450
|
|
451 clean::
|
|
452 $(RM) $(HDRS) $(SRC1)
|