0
|
1 # FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
2 # This file is part of FreeWnn.
|
|
3 #
|
|
4 # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
5 # Copyright 1991, 1992 by Massachusetts Institute of Technology
|
|
6 # Copyright FreeWnn Project 2001
|
|
7 #
|
|
8 # Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
9 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
10 #
|
|
11 # This program is free software; you can redistribute it and/or modify
|
|
12 # it under the terms of the GNU General Public License as published by
|
|
13 # the Free Software Foundation; either version 2, or (at your option)
|
|
14 # any later version.
|
|
15 #
|
|
16 # This program is distributed in the hope that it will be useful,
|
|
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 # GNU General Public License for more details.
|
|
20 #
|
|
21 # You should have received a copy of the GNU General Public License
|
|
22 # along with GNU Emacs; see the file COPYING. If not, write to the
|
|
23 # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
24
|
|
25 include @top_srcdir@/makerule.mk
|
|
26 top_builddir = ../..
|
|
27
|
|
28 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
29 LOCAL_INSTFLAGS = -o $(WNNOWNER)
|
|
30
|
|
31 INCLUDES = $(XWNMOINCLUDES)
|
|
32
|
|
33 DEPLIBS = $(XWNMOJLIB)
|
|
34
|
|
35 XAPPLOADDIR = $(LIBDIR)/app-defaults
|
|
36
|
|
37 LOCAL_DEFINES = -DUSING_XJUTIL -DXML -DCALLBACKS -DSPOT -DXJPLIB -DXJPLIB_DIRECT $(XWNMODEF)
|
|
38
|
|
39 DEFINES = $(WNNDEFINES) $(ALLLANGDEF) -DTCPCONN -DUNIXCONN $(LOCAL_DEFINES)
|
|
40 LOCAL_LIBRARIES = $(XWNMOJLIB) -lXmu -L/usr/X11R6/lib -lXt -lX11 -lXt -lSM -lICE
|
|
41 XJUTILBINDIR = -DXJUTILBINDIR=\"$(BINDIR)\"
|
|
42 # NOTFORKFLAGS = -DNOTFORK
|
|
43 # XJUTILNOTFORKFLAGS = -DNOTFORK_XJUTIL
|
|
44 # ALLOCDEBUGFLAGS = -DALLOC_DEBUG
|
|
45 XJUTILFLAGS = $(XJUTILBINDIR) $(XJUTILNOTFORKFLAGS)
|
|
46 LOCALMAN = man.en
|
|
47
|
|
48 LINKS = cvtfun.man cvtmt.man ximrc.man xwnmo.man killxw.man ximconf.man cvtxim.man
|
|
49
|
|
50 SRCS1 = basic_op.c box.c byte_swap.c callback.c change.c client.c cursor.c display.c do_socket.c evdispatch.c functions.c header.c history.c ichiran.c init.c init_w.c inspect.c jikouho.c jis_in.c jutil.c key_bind.c keyin.c kuten.c message.c multi_lang.c printf.c prologue.c readximrc.c screen.c select_ele.c termio.c touroku.c uif.c uif1.c util.c w_string.c wnnrc_op.c write.c xcvtkey.c xlc_util.c ximdispt.c
|
|
51
|
|
52 OBJS1 = basic_op.o box.o byte_swap.o callback.o change.o client.o cursor.o display.o do_socket.o evdispatch.o functions.o header.o history.o ichiran.o init.o init_w.o inspect.o jikouho.o jis_in.o jutil.o key_bind.o keyin.o kuten.o message.o multi_lang.o printf.o prologue.o readximrc.o screen.o select_ele.o termio.o touroku.o uif.o uif1.o util.o w_string.o wnnrc_op.o write.o xcvtkey.o xlc_util.o ximdispt.o
|
|
53
|
|
54 SRCS2 = do_xjutil.c
|
|
55 OBJS2 = do_xjutil.o
|
|
56 SRCS3 = do_xjplib.c
|
|
57 OBJS3 = do_xjplib.o
|
|
58 SRCS4 = do_xjpdrct.c
|
|
59 OBJS4 = do_xjpdrct.o
|
|
60 SRCS5 = jhlp.c
|
|
61 OBJS5 = jhlp.o
|
|
62 SRCS6 = localalloc.c
|
|
63 OBJS6 = localalloc.o
|
|
64
|
|
65 ETC_SRCS1 = $(WNNETCSRC)/server_env.c
|
|
66 ETC_SRCS2 = $(WNNETCSRC)/xutoj.c
|
|
67 ETC_SRCS3 = $(WNNETCSRC)/sstrings.c
|
|
68 ETC_OBJS1 = server_env.o
|
|
69 ETC_OBJS2 = xutoj.o
|
|
70 ETC_OBJS3 = sstrings.o
|
|
71
|
|
72 SPOTLIBSRC = spotlib.c
|
|
73 SPOTLIBOBJ = spotlib.o
|
|
74
|
|
75 KILLXWNMOSRC = killxwnmo.c
|
|
76 KILLXWNMOOBJ = killxwnmo.o
|
|
77
|
|
78 LOCAL_ETCSRCS= $(ETC_SRCS1) $(ETC_SRCS2) $(ETC_SRCS3)
|
|
79 LOCAL_ETCOBJS= $(ETC_OBJS1) $(ETC_OBJS2) $(ETC_OBJS3)
|
|
80 SRCS= $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4) $(SRCS5) $(SRCS6) $(LOCAL_ETCSRCS)
|
|
81 OBJS= $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5) $(OBJS6) $(LOCAL_ETCOBJS)
|
|
82
|
|
83 PROGRAMS = xwnmo $(SPOTLIBOBJ) killxwnmo
|
|
84 PROGRAMS = xwnmo killxwnmo
|
|
85
|
|
86 all:: $(PROGRAMS)
|
|
87
|
|
88 xwnmo: $(OBJS) $(DEPLIBS)
|
|
89 $(RM) $@
|
|
90 $(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) @LIBS@ $(SYSLIBS)
|
|
91
|
|
92 clean::
|
|
93 $(RM) xwnmo
|
|
94
|
|
95 killxwnmo: $(KILLXWNMOOBJ)
|
|
96 $(RM) $@
|
|
97 $(CCLINK) -o $@ $(LDOPTIONS) $(KILLXWNMOOBJ) @LIBS@ $(XLIB) $(SYSLIBS)
|
|
98
|
|
99 clean::
|
|
100 $(RM) killxwnmo
|
|
101
|
|
102 includes:: $(LINKS)
|
|
103
|
|
104 xwnmo.man: $(LOCALMAN)/xwnmo.man
|
|
105 $(RM) $@
|
|
106 $(LN) $? $@
|
|
107
|
|
108 includes:: xwnmo.man
|
|
109
|
|
110 depend:: xwnmo.man
|
|
111
|
|
112 clean::
|
|
113 $(RM) xwnmo.man
|
|
114
|
|
115 ximrc.man: $(LOCALMAN)/ximrc.man
|
|
116 $(RM) $@
|
|
117 $(LN) $? $@
|
|
118
|
|
119 includes:: ximrc.man
|
|
120
|
|
121 depend:: ximrc.man
|
|
122
|
|
123 clean::
|
|
124 $(RM) ximrc.man
|
|
125
|
|
126 cvtfun.man: $(LOCALMAN)/cvtfun.man
|
|
127 $(RM) $@
|
|
128 $(LN) $? $@
|
|
129
|
|
130 includes:: cvtfun.man
|
|
131
|
|
132 depend:: cvtfun.man
|
|
133
|
|
134 clean::
|
|
135 $(RM) cvtfun.man
|
|
136
|
|
137 cvtmt.man: $(LOCALMAN)/cvtmt.man
|
|
138 $(RM) $@
|
|
139 $(LN) $? $@
|
|
140
|
|
141 includes:: cvtmt.man
|
|
142
|
|
143 depend:: cvtmt.man
|
|
144
|
|
145 clean::
|
|
146 $(RM) cvtmt.man
|
|
147
|
|
148 killxw.man: $(LOCALMAN)/killxw.man
|
|
149 $(RM) $@
|
|
150 $(LN) $? $@
|
|
151
|
|
152 includes:: killxw.man
|
|
153
|
|
154 depend:: killxw.man
|
|
155
|
|
156 clean::
|
|
157 $(RM) killxw.man
|
|
158
|
|
159 ximconf.man: $(LOCALMAN)/ximconf.man
|
|
160 $(RM) $@
|
|
161 $(LN) $? $@
|
|
162
|
|
163 includes:: ximconf.man
|
|
164
|
|
165 depend:: ximconf.man
|
|
166
|
|
167 clean::
|
|
168 $(RM) ximconf.man
|
|
169
|
|
170 cvtxim.man: $(LOCALMAN)/cvtxim.man
|
|
171 $(RM) $@
|
|
172 $(LN) $? $@
|
|
173
|
|
174 includes:: cvtxim.man
|
|
175
|
|
176 depend:: cvtxim.man
|
|
177
|
|
178 clean::
|
|
179 $(RM) cvtxim.man
|
|
180
|
|
181 install:: xwnmo
|
|
182 @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
|
|
183 else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
|
|
184 $(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) $(LOCAL_INSTFLAGS) xwnmo $(DESTDIR)$(BINDIR)/xwnmo
|
|
185
|
|
186 install:: killxwnmo
|
|
187 @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
|
|
188 else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
|
|
189 $(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) $(LOCAL_INSTFLAGS) killxwnmo $(DESTDIR)$(BINDIR)/killxwnmo
|
|
190
|
|
191 install:: Xwnmo.ad
|
|
192 @if [ -d $(DESTDIR)$(XAPPLOADDIR) ]; then set +x; \
|
|
193 else (set -x; $(MKDIRHIER) $(DESTDIR)$(XAPPLOADDIR)); fi
|
|
194 $(INSTALL) $(INSTDATFLAGS) Xwnmo.ad $(DESTDIR)$(XAPPLOADDIR)/Xwnmo
|
|
195
|
|
196 install.man:: xwnmo.man
|
|
197 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
198 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
199 $(RM) $(DESTDIR)$(MANDIR)/xwnmo.$(MANSUFFIX)*
|
|
200 $(INSTALL) $(INSTMANFLAGS) xwnmo.man \
|
|
201 $(DESTDIR)$(MANDIR)/xwnmo.$(MANSUFFIX)
|
|
202 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/xwnmo.$(MANSUFFIX)
|
|
203
|
|
204 install.man:: ximrc.man
|
|
205 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
206 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
207 $(RM) $(DESTDIR)$(MANDIR)/ximrc.$(MANSUFFIX)*
|
|
208 $(INSTALL) $(INSTMANFLAGS) ximrc.man \
|
|
209 $(DESTDIR)$(MANDIR)/ximrc.$(MANSUFFIX)
|
|
210 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/ximrc.$(MANSUFFIX)
|
|
211
|
|
212 install.man:: ximconf.man
|
|
213 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
214 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
215 $(RM) $(DESTDIR)$(MANDIR)/ximconf.$(MANSUFFIX)*
|
|
216 $(INSTALL) $(INSTMANFLAGS) ximconf.man \
|
|
217 $(DESTDIR)$(MANDIR)/ximconf.$(MANSUFFIX)
|
|
218 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/ximconf.$(MANSUFFIX)
|
|
219
|
|
220 install.man:: cvtfun.man
|
|
221 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
222 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
223 $(RM) $(DESTDIR)$(MANDIR)/cvt_fun_tbl.$(MANSUFFIX)*
|
|
224 $(INSTALL) $(INSTMANFLAGS) cvtfun.man \
|
|
225 $(DESTDIR)$(MANDIR)/cvt_fun_tbl.$(MANSUFFIX)
|
|
226 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/cvt_fun_tbl.$(MANSUFFIX)
|
|
227
|
|
228 install.man:: cvtmt.man
|
|
229 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
230 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
231 $(RM) $(DESTDIR)$(MANDIR)/cvt_meta_tbl.$(MANSUFFIX)*
|
|
232 $(INSTALL) $(INSTMANFLAGS) cvtmt.man \
|
|
233 $(DESTDIR)$(MANDIR)/cvt_meta_tbl.$(MANSUFFIX)
|
|
234 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/cvt_meta_tbl.$(MANSUFFIX)
|
|
235
|
|
236 install.man:: killxw.man
|
|
237 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
238 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
239 $(RM) $(DESTDIR)$(MANDIR)/killxwnmo.$(MANSUFFIX)*
|
|
240 $(INSTALL) $(INSTMANFLAGS) killxw.man \
|
|
241 $(DESTDIR)$(MANDIR)/killxwnmo.$(MANSUFFIX)
|
|
242 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/killxwnmo.$(MANSUFFIX)
|
|
243
|
|
244 install.man:: cvtxim.man
|
|
245 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
246 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
247 $(RM) $(DESTDIR)$(MANDIR)/cvt_xim_tbl.$(MANSUFFIX)*
|
|
248 $(INSTALL) $(INSTMANFLAGS) cvtxim.man \
|
|
249 $(DESTDIR)$(MANDIR)/cvt_xim_tbl.$(MANSUFFIX)
|
|
250 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/cvt_xim_tbl.$(MANSUFFIX)
|
|
251
|
|
252 lint:
|
|
253 $(LINT) $(LINTFLAGS) *.c $(LINTLIBS)
|
|
254 lint1:
|
|
255 $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
|
|
256
|
|
257 depend:: .depend
|
|
258
|
|
259 clean::
|
|
260 $(RM) $(LINKS)
|
|
261
|
|
262 $(OBJS2) : $(SRCS2)
|
|
263 $(CC) -c $(CFLAGS) $(XJUTILFLAGS) ./`basename $@ .o`.c
|
|
264
|
|
265 $(OBJS5) : $(SRCS5)
|
|
266 $(CC) -c $(CFLAGS) $(NOTFORKFLAGS) ./`basename $@ .o`.c
|
|
267
|
|
268 $(OBJS6) : $(SRCS6)
|
|
269 $(CC) -c $(CFLAGS) $(ALLOCDEBUGFLAGS) ./`basename $@ .o`.c
|
|
270
|
|
271 $(ETC_OBJS1) : $(ETC_SRCS1)
|
|
272 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
273
|
|
274 $(ETC_OBJS2) : $(ETC_SRCS2)
|
|
275 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
276
|
|
277 $(ETC_OBJS3) : $(ETC_SRCS3)
|
|
278 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
279
|