0
|
1 #
|
|
2 # $Id: makerule.mk.in,v 1.13 2006/03/07 17:15:33 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, 2003, 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 all::
|
|
33
|
|
34 SHELL = /bin/sh
|
|
35
|
|
36 TOP = $(top_builddir)
|
|
37 CURRENT_DIR = `pwd`
|
|
38
|
|
39 DEPEND = gccmakedep
|
|
40 MKDIRHIER = mkdir -p
|
|
41
|
|
42 # for libtool (AM_PROG_LIBTOOL)
|
|
43 # top_builddir = @abs_top_srcdir@
|
|
44
|
|
45 MANDIR = @mandir@/man$(MANSUFFIX)
|
|
46 LIBMANDIR = @mandir@/man$(LIBMANSUFFIX)
|
|
47
|
|
48 MANSUFFIX = 1
|
|
49 LIBMANSUFFIX = 3
|
|
50
|
|
51 COMPRESSMANCMD = :
|
|
52
|
|
53
|
|
54 AR = ar cq
|
|
55 AS = as
|
|
56
|
|
57 CPP = @CPP@
|
|
58 CC = @CC@
|
|
59 CCLINK = $(CC)
|
|
60
|
|
61 INSTALLFLAGS =
|
|
62 LD = ld
|
|
63 LINT = lint
|
|
64 LINTLIBFLAG = -C
|
|
65 LINTOPTS = -axz
|
|
66 LN = @LN_S@
|
|
67 # コンパイル時に違うmake (ex. システムのmakeとGNU make)を使えるよう、
|
|
68 # ($MAKEが定義されるmakeならば) $MAKEは定義しない。
|
|
69 # If you like to use specific make, uncomment and modify following line ...
|
|
70 # MAKE = make
|
|
71 @SET_MAKE@
|
|
72 MV = mv -f
|
|
73 CP = cp
|
|
74
|
|
75 RANLIB = @RANLIB@
|
|
76 RANLIBINSTFLAGS =
|
|
77
|
|
78 LIBTOOL = @LIBTOOL@
|
|
79 # LT_* : shortcut for Makefile.in
|
|
80 LT_CC = $(LIBTOOL) --mode=compile $(CC)
|
|
81 LT_LD = $(LIBTOOL) --mode=link $(CCLINK)
|
|
82 LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
83
|
|
84 RM = rm -f
|
|
85 TBL = tbl
|
|
86
|
|
87 TAGS = ctags
|
|
88
|
|
89 PARALLELMFLAGS =
|
|
90
|
|
91
|
|
92 INSTPGMFLAGS = @INSTPGMFLAGS@
|
|
93 INSTBINFLAGS = -m 0755
|
|
94 INSTUIDFLAGS = -m 4711
|
|
95 INSTLIBFLAGS = -m 0644
|
|
96 INSTINCFLAGS = -m 0444
|
|
97 INSTMANFLAGS = -m 0444
|
|
98 INSTDATFLAGS = -m 0444
|
|
99
|
|
100 CCOPTIONS = @CCOPTIONS@
|
|
101 ALLDEFINES = $(INCLUDES) $(DEFINES)
|
|
102 CFLAGS = @CFLAGS@ @CDEBUGFLAGS@ $(CCOPTIONS) @ipv6@ @DEFS@ $(ALLDEFINES)
|
|
103 LIBS = @LIBS@
|
|
104 LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
|
|
105 LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS)
|
|
106
|
|
107
|
|
108 #
|
|
109 # OMRON INPUT METHOD MAKE ENV
|
|
110 #
|
|
111
|
|
112 WNNOWNER = wnn
|
|
113
|
|
114 IMTOP = $(TOP)
|
|
115
|
|
116 prefix = @prefix@
|
|
117 exec_prefix = @exec_prefix@
|
|
118 PREFIX = @prefix@
|
|
119 WNNWNNDIR = ${PREFIX}/lib/wnn
|
|
120 WNNBINDIR = ${PREFIX}/bin
|
|
121 WNNINCDIR = @includedir@
|
|
122 WNNLIBDIR = @libdir@
|
|
123
|
|
124 PUBDICPLUSSRC = $(IMTOP)/PubdicPlus
|
|
125 WNNCONSDICSRC = $(IMTOP)/Wnn-consortium/dic
|
|
126
|
|
127 WNNTOP = $(IMTOP)/Wnn
|
|
128 JWNNLANG = ja_JP
|
|
129 JWNNWNNDIR = $(WNNWNNDIR)/$(JWNNLANG)
|
|
130 JWNNBINDIR = $(WNNBINDIR)/Wnn4
|
|
131 JWNNINCDIR = $(WNNINCDIR)/wnn
|
|
132 JWNNDICDIR = $(JWNNWNNDIR)/dic
|
|
133 JWNNPUBDICDIR = $(JWNNDICDIR)/pubdic
|
|
134 JWNNWNNCONSDICDIR = $(JWNNDICDIR)/wnncons
|
|
135 JWNNFZKSRCDIR = $(JWNNDICDIR)/src
|
|
136 WNNCONVSRC = $(WNNTOP)/conv
|
|
137 WNNETCSRC = $(WNNTOP)/etc
|
|
138 WNNINCLUDESRC = $(WNNTOP)/include
|
|
139 WNNJDSRC = $(WNNTOP)/jd
|
|
140 WNNJLIBSRC = $(WNNTOP)/jlib
|
|
141 WNNJLIBV3SRC = $(WNNTOP)/jlib.V3
|
|
142 WNNJSERVERSRC = $(WNNTOP)/jserver
|
|
143 WNNJUTILSRC = $(WNNTOP)/jutil
|
|
144 WNNLDSRC = $(WNNTOP)/ld
|
|
145 WNNPUBDICPLUSSRC = $(WNNTOP)/pubdicplus
|
|
146 WNNWNNCONSSRC = $(WNNTOP)/wnncons
|
|
147 WNNWNNCONSDICSRC = $(WNNWNNCONSSRC)/dic
|
|
148 WNNROMKANSRC = $(WNNTOP)/romkan
|
|
149 WNNUUMSRC = $(WNNTOP)/uum
|
|
150 WNNCNVFILEDIR = $(WNNJDSRC)/@CNVFILE_SUBDIR@
|
|
151 WNNINCLUDES = -I$(WNNINCLUDESRC) -I$(WNNROMKANMSRC)
|
|
152 WNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
|
|
153 WNNJLIB = @WNNJLIB@
|
|
154 WNNJLIBVERSION = 0:0
|
|
155 WNNCONVLIB = $(WNNCONVSRC)/libconvkey.a
|
|
156
|
|
157 CWNNTOP = $(IMTOP)/cWnn
|
|
158 CWNNLANG = zh_CN
|
|
159 CWNNWNNDIR = $(WNNWNNDIR)/$(CWNNLANG)
|
|
160 CWNNINCDIR = $(WNNINCDIR)/cwnn
|
|
161 CWNNBINDIR = $(WNNBINDIR)/cWnn4
|
|
162 CWNNDICDIR = $(CWNNWNNDIR)/dic
|
|
163 CWNNSYSDICDIR = $(CWNNDICDIR)/sys
|
|
164 CWNNCDSRC = $(CWNNTOP)/cd
|
|
165 CWNNCDICSRC = $(CWNNTOP)/cdic
|
|
166 CWNNCONVSRC = $(CWNNTOP)/conv
|
|
167 CWNNETCSRC = $(CWNNTOP)/etc
|
|
168 CWNNINCLUDESRC = $(CWNNTOP)/include
|
|
169 CWNNJLIBSRC = $(CWNNTOP)/jlib
|
|
170 CWNNJSERVERSRC = $(CWNNTOP)/jserver
|
|
171 CWNNJUTILSRC = $(CWNNTOP)/jutil
|
|
172 CWNNROMKANSRC = $(CWNNTOP)/romkan
|
|
173 CWNNUUMSRC = $(CWNNTOP)/uum
|
|
174 CWNNINCLUDES = -I$(CWNNINCLUDESRC) -I$(CWNNROMKANMSRC)
|
|
175 CWNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
|
|
176 CWNNJLIB = @CWNNJLIB@
|
|
177 CWNNJLIBVERSION = 0:0
|
|
178 CWNNCONVLIB = $(CWNNCONVSRC)/libconvkey.a
|
|
179
|
|
180 KWNNTOP = $(IMTOP)/kWnn
|
|
181 KWNNLANG = ko_KR
|
|
182 KWNNWNNDIR = $(WNNWNNDIR)/$(KWNNLANG)
|
|
183 KWNNINCDIR = $(WNNINCDIR)/kwnn
|
|
184 KWNNBINDIR = $(WNNBINDIR)/kWnn4
|
|
185 KWNNDICDIR = $(KWNNWNNDIR)/dic
|
|
186 KWNNSYSDICDIR = $(KWNNDICDIR)/sys
|
|
187 KWNNKDSRC = $(KWNNTOP)/kd
|
|
188 KWNNKDICSRC = $(KWNNTOP)/kdic
|
|
189 KWNNCONVSRC = $(KWNNTOP)/conv
|
|
190 KWNNETCSRC = $(KWNNTOP)/etc
|
|
191 KWNNINCLUDESRC = $(KWNNTOP)/include
|
|
192 KWNNJLIBSRC = $(KWNNTOP)/jlib
|
|
193 KWNNJSERVERSRC = $(KWNNTOP)/jserver
|
|
194 KWNNJUTILSRC = $(KWNNTOP)/jutil
|
|
195 KWNNROMKANSRC = $(KWNNTOP)/romkan
|
|
196 KWNNUUMSRC = $(KWNNTOP)/uum
|
|
197 KWNNINCLUDES = -I$(KWNNINCLUDESRC) -I$(KWNNROMKANMSRC)
|
|
198 KWNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
|
|
199 KWNNJLIB = @KWNNJLIB@
|
|
200 KWNNJLIBVERSION = 0:0
|
|
201 KWNNCONVLIB = $(KWNNCONVSRC)/libconvkey.a
|
|
202
|
|
203 TWNNLANG = zh_TW
|
|
204 TWNNWNNDIR = $(WNNWNNDIR)/$(TWNNLANG)
|
|
205 TWNNDICDIR = $(TWNNWNNDIR)/dic
|
|
206 TWNNSYSDICDIR = $(TWNNDICDIR)/sys
|
|
207 TWNNTDSRC = $(CWNNTOP)/td
|
|
208 TWNNTDICSRC = $(CWNNTOP)/tdic
|
|
209
|
|
210 LWNNLANG = lt_LN
|
|
211 LWNNWNNDIR = $(WNNWNNDIR)/$(LWNNLANG)
|
|
212
|
|
213 WNNLANGDEF = -DJAPANESE
|
|
214 CWNNLANGDEF = -DCHINESE
|
|
215 TWNNLANGDEF = -DTAIWANESE
|
|
216 KWNNLANGDEF = -DKOREAN
|
|
217 LWNNLANGDEF = -DLATIN
|
|
218 ALLLANGDEF = $(WNNLANGDEF) $(CWNNLANGDEF) $(KWNNLANGDEF) $(LWNNLANGDEF)
|
|
219
|
|
220 XWNMOTOP = $(IMTOP)/Xwnmo
|
|
221 XWNMOSRC = $(XWNMOTOP)/xwnmo
|
|
222 XJUTILSRC = $(XWNMOTOP)/xjutil
|
|
223 XWNMOROMKANSRC = $(XWNMOTOP)/romkan
|
|
224 XWNMOJLIBSRC = $(XWNMOTOP)/jlib
|
|
225 XWNMOJDSRC = $(XWNMOTOP)/jd
|
|
226 XWNMOROMKANMSRC = $(XWNMOTOP)/romkan_m
|
|
227
|
|
228 XWNMOXLIBINC = -I$(XWNMOTOP)/X11R6/include
|
|
229
|
|
230 XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC) $(XWNMOXLIBINC)
|
|
231 XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a
|
|
232 XWNMOLIBRARIES = $(XWNMOJLIB)
|
|
233
|
|
234 XWNMODEF = -DBC_X11R5
|
|
235
|
|
236
|
|
237
|
|
238
|
|
239 # ----------------------------------------------------------------------
|
|
240
|
|
241 all::
|
|
242 @cont=0; \
|
|
243 for flag in ${MAKEFLAGS} ''; do \
|
|
244 case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
|
|
245 SUBDIRS="$(SUBDIRS)" ;\
|
|
246 for i in $$SUBDIRS ;\
|
|
247 do \
|
|
248 echo "making" all "in $(CURRENT_DIR)/$$i..."; \
|
|
249 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) all) \
|
|
250 || if [ $$cont -eq 0 ]; then exit 1; fi; \
|
|
251 done
|
|
252
|
|
253 includes::
|
|
254 @cont=0; \
|
|
255 for flag in ${MAKEFLAGS} ''; do \
|
|
256 case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
|
|
257 SUBDIRS="$(ALL_SUBDIRS)" ;\
|
|
258 for i in $$SUBDIRS ;\
|
|
259 do \
|
|
260 echo "making" all "in $(CURRENT_DIR)/$$i..."; \
|
|
261 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) includes) \
|
|
262 || if [ $$cont -eq 0 ]; then exit 1; fi; \
|
|
263 done
|
|
264
|
|
265 install::
|
|
266 @cont=0; \
|
|
267 for flag in ${MAKEFLAGS} ''; do \
|
|
268 case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
|
|
269 SUBDIRS="$(SUBDIRS)" ;\
|
|
270 for i in $$SUBDIRS ;\
|
|
271 do \
|
|
272 echo "installing" all "in $(CURRENT_DIR)/$$i..."; \
|
|
273 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) install) \
|
|
274 || if [ $$cont -eq 0 ]; then exit 1; fi; \
|
|
275 done
|
|
276
|
|
277 install.man::
|
|
278 @cont=0; \
|
|
279 for flag in ${MAKEFLAGS} ''; do \
|
|
280 case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
|
|
281 SUBDIRS="$(SUBDIRS)" ;\
|
|
282 for i in $$SUBDIRS ;\
|
|
283 do \
|
|
284 echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
|
|
285 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) install.man) \
|
|
286 || if [ $$cont -eq 0 ]; then exit 1; fi; \
|
|
287 done
|
|
288
|
|
289 depend::
|
|
290 @cont=0; \
|
|
291 @for flag in ${MAKEFLAGS} ''; do \
|
|
292 case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
|
|
293 SUBDIRS="$(SUBDIRS)" ;\
|
|
294 for i in $$SUBDIRS ;\
|
|
295 do \
|
|
296 echo "depending" "in $(CURRENT_DIR)/$$i..."; \
|
|
297 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \
|
|
298 depend) \
|
|
299 || if [ $$cont -eq 0 ]; then exit 1; fi; \
|
|
300 done
|
|
301
|
|
302 clean::
|
|
303 SUBDIRS="$(SUBDIRS)" ;\
|
|
304 for i in $$SUBDIRS ;\
|
|
305 do \
|
|
306 echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
|
|
307 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \
|
|
308 clean) \
|
|
309 done
|
|
310
|
|
311 depend:: .depend
|
|
312
|
|
313 .depend::
|
|
314 $(RM) $@
|
|
315 $(DEPEND) -f- -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS) > $@
|
|
316
|
|
317 # ----------------------------------------------------------------------
|
|
318 # common rules for all Makefiles - do not edit
|
|
319
|
|
320
|
|
321 emptyrule::
|
|
322
|
|
323 clean::
|
|
324 $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *.core "#"*
|
|
325
|
|
326
|
|
327 tags::
|
|
328 $(TAGS) -w *.[ch]
|
|
329 $(TAGS) -xw *.[ch] > TAGS
|
|
330
|
|
331 man_keywords::
|
|
332
|
|
333 # ----------------------------------------------------------------------
|
|
334 # empty rules for directories that do not have SUBDIRS - do not edit
|
|
335
|
|
336 install::
|
|
337 @echo "install in $(CURRENT_DIR) done"
|
|
338
|
|
339 install.man::
|
|
340 @echo "install.man in $(CURRENT_DIR) done"
|
|
341
|
|
342 install.linkkit::
|
|
343 @echo "install.linkkit in $(CURRENT_DIR) done"
|
|
344
|
|
345 Makefiles::
|
|
346
|
|
347 depend::
|
|
348
|
|
349 # ----------------------------------------------------------------------
|
|
350 # dependencies generated by makedepend
|
|
351
|
|
352 # dependencies are in .depend
|
|
353
|