Develop and Download Open Source Software

Browse CVS Repository

Annotation of /freewnn/FreeWnn/makerule.mk.in

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.17 - (hide annotations) (download)
Sun May 15 17:03:53 2011 UTC (12 years, 11 months ago) by aonoto
Branch: MAIN
Changes since 1.16: +11 -3 lines
Recent Libtool (2.4.x, we are not using yet) use some optimization
of selected SHELL, so honor configure selected SHELL on makerule.mk.in .
Workaround for Debian Bug #621928.

This change may harm build for your environment, so I also added
fallback entry (you have to uncomment some lines).
See makefule.mk.in for details.

1 ura 1.1 #
2 aonoto 1.17 # $Id: makerule.mk.in,v 1.16 2010/07/11 10:18:16 aonoto Exp $
3 ura 1.1 #
4    
5 ura 1.6 #
6 ura 1.1 # FreeWnn is a network-extensible Kana-to-Kanji conversion system.
7     # This file is part of FreeWnn.
8 ura 1.6 #
9 ura 1.1 # 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 aonoto 1.17 # Copyright FreeWnn Project 1999, 2000, 2001, 2003, 2006, 2007, 2010, 2011
14 ura 1.6 #
15 aonoto 1.12 # Maintainer: FreeWnn Project
16 ura 1.6 #
17 ura 1.1 # 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 ura 1.6 # the Free Software Foundation; either version 2 of the License, or
20     # (at your option) any later version.
21     #
22 ura 1.1 # 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 ura 1.6 #
27 ura 1.1 # You should have received a copy of the GNU General Public License
28 ura 1.6 # 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 ura 1.1 #
31    
32     all::
33    
34 aonoto 1.17 SHELL = @SHELL@
35     # To developers: Please use common syntax / function of Bourne Shell
36     # (i.e. don't use extention of specific SHELL (bash, ksh, ...))
37     # on Makefile.in .
38 ura 1.1
39 hiroo 1.10 TOP = $(top_builddir)
40 ura 1.3 CURRENT_DIR = `pwd`
41 ura 1.1
42 ura 1.3 DEPEND = gccmakedep
43     MKDIRHIER = mkdir -p
44 ura 1.1
45 ura 1.8 # for libtool (AM_PROG_LIBTOOL)
46 hiroo 1.10 # top_builddir = @abs_top_srcdir@
47 ura 1.1
48 ura 1.3 MANDIR = @mandir@/man$(MANSUFFIX)
49     LIBMANDIR = @mandir@/man$(LIBMANSUFFIX)
50 ura 1.1
51 ura 1.3 MANSUFFIX = 1
52     LIBMANSUFFIX = 3
53 ura 1.1
54 ura 1.3 COMPRESSMANCMD = :
55 ura 1.1
56    
57 ura 1.7 AR = ar cq
58 ura 1.1 AS = as
59    
60 hiroo 1.11 CPP = @CPP@
61     CC = @CC@
62     CCLINK = $(CC)
63 ura 1.1
64 aonoto 1.15 # Split fuzoku-go preprocessor (for text processing) from CPP.
65     FZK_PP = @FZK_PP@
66    
67 hiroo 1.9 INSTALLFLAGS =
68 ura 1.1 LD = ld
69     LINT = lint
70     LINTLIBFLAG = -C
71     LINTOPTS = -axz
72     LN = @LN_S@
73 aonoto 1.12 # ������������������make (ex. ����������make��GNU make)��������������
74     # ($MAKE������������make������) $MAKE��������������
75     # If you like to use specific make, uncomment and modify following line ...
76     # MAKE = make
77     @SET_MAKE@
78 ura 1.1 MV = mv -f
79     CP = cp
80    
81     RANLIB = @RANLIB@
82     RANLIBINSTFLAGS =
83    
84 ura 1.8 LIBTOOL = @LIBTOOL@
85 aonoto 1.17 # Notice: If you have trouble on building, please use following lines
86     # (explicitly use preferred shell by configure / Libtool).
87     # SHELL = /bin/sh
88     # LIBTOOL = @LIBTOOL_MOD@
89    
90 aonoto 1.12 # LT_* : shortcut for Makefile.in
91     LT_CC = $(LIBTOOL) --mode=compile $(CC)
92     LT_LD = $(LIBTOOL) --mode=link $(CCLINK)
93     LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)
94 ura 1.8
95 ura 1.1 RM = rm -f
96     TBL = tbl
97 ura 1.3
98 ura 1.1 TAGS = ctags
99    
100     PARALLELMFLAGS =
101    
102    
103 hiroo 1.10 INSTPGMFLAGS = @INSTPGMFLAGS@
104 ura 1.1 INSTBINFLAGS = -m 0755
105     INSTUIDFLAGS = -m 4711
106     INSTLIBFLAGS = -m 0644
107     INSTINCFLAGS = -m 0444
108     INSTMANFLAGS = -m 0444
109     INSTDATFLAGS = -m 0444
110 aonoto 1.14 INSTUUMFLAGS = @INSTUUMFLAGS@
111 ura 1.1
112 aonoto 1.16 transform = @program_transform_name@
113    
114 hiroo 1.11 CCOPTIONS = @CCOPTIONS@
115     ALLDEFINES = $(INCLUDES) $(DEFINES)
116     CFLAGS = @CFLAGS@ @CDEBUGFLAGS@ $(CCOPTIONS) @ipv6@ @DEFS@ $(ALLDEFINES)
117     LIBS = @LIBS@
118 ura 1.3 LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES) $(DEPEND_DEFINES)
119 hiroo 1.11 LDOPTIONS = @CDEBUGFLAGS@ $(CCOPTIONS)
120 ura 1.1
121    
122     #
123 hiroo 1.10 # OMRON INPUT METHOD MAKE ENV
124 ura 1.1 #
125    
126     WNNOWNER = wnn
127 aonoto 1.14 UUMOWNER = @UUMOWNER@
128     UUMGROUP = @UUMGROUP@
129 ura 1.1
130     IMTOP = $(TOP)
131    
132     prefix = @prefix@
133     exec_prefix = @exec_prefix@
134 aonoto 1.16 bindir = @bindir@
135     sbindir = @sbindir@
136     WNNWNNDIR = $(exec_prefix)/lib/wnn
137     WNNBINDIR = $(bindir)
138     WNNSBINDIR = @WNNSBINDIR@
139 ura 1.1 WNNINCDIR = @includedir@
140     WNNLIBDIR = @libdir@
141    
142 aonoto 1.16 # sub directory for binaries:
143     # if --enable-sub-bindir specified:
144     @if_enable_sub_bindir@ JWNNSUBBINDIR = /Wnn4
145     @if_enable_sub_bindir@ CWNNSUBBINDIR = /cWnn4
146     @if_enable_sub_bindir@ KWNNSUBBINDIR = /kWnn4
147     # else:
148     @if_disable_sub_bindir@ JWNNSUBBINDIR =
149     @if_disable_sub_bindir@ CWNNSUBBINDIR =
150     @if_disable_sub_bindir@ KWNNSUBBINDIR =
151     # end if
152    
153 ura 1.4 PUBDICPLUSSRC = $(IMTOP)/PubdicPlus
154 ura 1.1 WNNCONSDICSRC = $(IMTOP)/Wnn-consortium/dic
155    
156     WNNTOP = $(IMTOP)/Wnn
157     JWNNLANG = ja_JP
158     JWNNWNNDIR = $(WNNWNNDIR)/$(JWNNLANG)
159 aonoto 1.16 JWNNBINDIR = $(WNNBINDIR)$(JWNNSUBBINDIR)
160     JWNNSBINDIR = $(WNNSBINDIR)$(JWNNSUBBINDIR)
161 ura 1.1 JWNNINCDIR = $(WNNINCDIR)/wnn
162     JWNNDICDIR = $(JWNNWNNDIR)/dic
163     JWNNPUBDICDIR = $(JWNNDICDIR)/pubdic
164     JWNNWNNCONSDICDIR = $(JWNNDICDIR)/wnncons
165     JWNNFZKSRCDIR = $(JWNNDICDIR)/src
166     WNNCONVSRC = $(WNNTOP)/conv
167     WNNETCSRC = $(WNNTOP)/etc
168     WNNINCLUDESRC = $(WNNTOP)/include
169     WNNJDSRC = $(WNNTOP)/jd
170     WNNJLIBSRC = $(WNNTOP)/jlib
171     WNNJLIBV3SRC = $(WNNTOP)/jlib.V3
172     WNNJSERVERSRC = $(WNNTOP)/jserver
173     WNNJUTILSRC = $(WNNTOP)/jutil
174     WNNLDSRC = $(WNNTOP)/ld
175 ura 1.5 WNNPUBDICPLUSSRC = $(WNNTOP)/pubdicplus
176 ura 1.1 WNNWNNCONSSRC = $(WNNTOP)/wnncons
177     WNNWNNCONSDICSRC = $(WNNWNNCONSSRC)/dic
178     WNNROMKANSRC = $(WNNTOP)/romkan
179     WNNUUMSRC = $(WNNTOP)/uum
180 aonoto 1.13 WNNCNVFILEDIR = $(WNNJDSRC)/@CNVFILE_SUBDIR@
181 ura 1.1 WNNINCLUDES = -I$(WNNINCLUDESRC) -I$(WNNROMKANMSRC)
182     WNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
183 ura 1.8 WNNJLIB = @WNNJLIB@
184     WNNJLIBVERSION = 0:0
185 ura 1.1 WNNCONVLIB = $(WNNCONVSRC)/libconvkey.a
186    
187     CWNNTOP = $(IMTOP)/cWnn
188     CWNNLANG = zh_CN
189     CWNNWNNDIR = $(WNNWNNDIR)/$(CWNNLANG)
190     CWNNINCDIR = $(WNNINCDIR)/cwnn
191 aonoto 1.16 CWNNBINDIR = $(WNNBINDIR)$(CWNNSUBBINDIR)
192     CWNNSBINDIR = $(WNNSBINDIR)$(CWNNSUBBINDIR)
193 ura 1.1 CWNNDICDIR = $(CWNNWNNDIR)/dic
194     CWNNSYSDICDIR = $(CWNNDICDIR)/sys
195     CWNNCDSRC = $(CWNNTOP)/cd
196     CWNNCDICSRC = $(CWNNTOP)/cdic
197     CWNNCONVSRC = $(CWNNTOP)/conv
198     CWNNETCSRC = $(CWNNTOP)/etc
199     CWNNINCLUDESRC = $(CWNNTOP)/include
200     CWNNJLIBSRC = $(CWNNTOP)/jlib
201     CWNNJSERVERSRC = $(CWNNTOP)/jserver
202     CWNNJUTILSRC = $(CWNNTOP)/jutil
203     CWNNROMKANSRC = $(CWNNTOP)/romkan
204     CWNNUUMSRC = $(CWNNTOP)/uum
205     CWNNINCLUDES = -I$(CWNNINCLUDESRC) -I$(CWNNROMKANMSRC)
206     CWNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
207 ura 1.8 CWNNJLIB = @CWNNJLIB@
208     CWNNJLIBVERSION = 0:0
209 ura 1.1 CWNNCONVLIB = $(CWNNCONVSRC)/libconvkey.a
210    
211     KWNNTOP = $(IMTOP)/kWnn
212     KWNNLANG = ko_KR
213     KWNNWNNDIR = $(WNNWNNDIR)/$(KWNNLANG)
214     KWNNINCDIR = $(WNNINCDIR)/kwnn
215 aonoto 1.16 KWNNBINDIR = $(WNNBINDIR)$(KWNNSUBBINDIR)
216     KWNNSBINDIR = $(WNNSBINDIR)$(KWNNSUBBINDIR)
217 ura 1.1 KWNNDICDIR = $(KWNNWNNDIR)/dic
218     KWNNSYSDICDIR = $(KWNNDICDIR)/sys
219     KWNNKDSRC = $(KWNNTOP)/kd
220     KWNNKDICSRC = $(KWNNTOP)/kdic
221     KWNNCONVSRC = $(KWNNTOP)/conv
222     KWNNETCSRC = $(KWNNTOP)/etc
223     KWNNINCLUDESRC = $(KWNNTOP)/include
224     KWNNJLIBSRC = $(KWNNTOP)/jlib
225     KWNNJSERVERSRC = $(KWNNTOP)/jserver
226     KWNNJUTILSRC = $(KWNNTOP)/jutil
227     KWNNROMKANSRC = $(KWNNTOP)/romkan
228     KWNNUUMSRC = $(KWNNTOP)/uum
229     KWNNINCLUDES = -I$(KWNNINCLUDESRC) -I$(KWNNROMKANMSRC)
230     KWNNDEFINES = -DLIBDIR=\"$(WNNWNNDIR)\"
231 ura 1.8 KWNNJLIB = @KWNNJLIB@
232     KWNNJLIBVERSION = 0:0
233 ura 1.1 KWNNCONVLIB = $(KWNNCONVSRC)/libconvkey.a
234    
235     TWNNLANG = zh_TW
236     TWNNWNNDIR = $(WNNWNNDIR)/$(TWNNLANG)
237     TWNNDICDIR = $(TWNNWNNDIR)/dic
238     TWNNSYSDICDIR = $(TWNNDICDIR)/sys
239     TWNNTDSRC = $(CWNNTOP)/td
240     TWNNTDICSRC = $(CWNNTOP)/tdic
241    
242     LWNNLANG = lt_LN
243     LWNNWNNDIR = $(WNNWNNDIR)/$(LWNNLANG)
244    
245     WNNLANGDEF = -DJAPANESE
246     CWNNLANGDEF = -DCHINESE
247     TWNNLANGDEF = -DTAIWANESE
248     KWNNLANGDEF = -DKOREAN
249     LWNNLANGDEF = -DLATIN
250     ALLLANGDEF = $(WNNLANGDEF) $(CWNNLANGDEF) $(KWNNLANGDEF) $(LWNNLANGDEF)
251    
252     XWNMOTOP = $(IMTOP)/Xwnmo
253     XWNMOSRC = $(XWNMOTOP)/xwnmo
254     XJUTILSRC = $(XWNMOTOP)/xjutil
255     XWNMOROMKANSRC = $(XWNMOTOP)/romkan
256     XWNMOJLIBSRC = $(XWNMOTOP)/jlib
257     XWNMOJDSRC = $(XWNMOTOP)/jd
258     XWNMOROMKANMSRC = $(XWNMOTOP)/romkan_m
259    
260     XWNMOXLIBINC = -I$(XWNMOTOP)/X11R6/include
261    
262     XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC) $(XWNMOXLIBINC)
263     XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a
264     XWNMOLIBRARIES = $(XWNMOJLIB)
265    
266     XWNMODEF = -DBC_X11R5
267    
268    
269    
270    
271     # ----------------------------------------------------------------------
272    
273     all::
274     @cont=0; \
275     for flag in ${MAKEFLAGS} ''; do \
276     case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
277 ura 1.2 SUBDIRS="$(SUBDIRS)" ;\
278     for i in $$SUBDIRS ;\
279 ura 1.1 do \
280     echo "making" all "in $(CURRENT_DIR)/$$i..."; \
281 hiroo 1.11 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) all) \
282 ura 1.1 || if [ $$cont -eq 0 ]; then exit 1; fi; \
283     done
284    
285 ura 1.8 includes::
286     @cont=0; \
287     for flag in ${MAKEFLAGS} ''; do \
288     case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
289     SUBDIRS="$(ALL_SUBDIRS)" ;\
290     for i in $$SUBDIRS ;\
291     do \
292     echo "making" all "in $(CURRENT_DIR)/$$i..."; \
293 hiroo 1.11 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) includes) \
294 ura 1.8 || if [ $$cont -eq 0 ]; then exit 1; fi; \
295     done
296    
297 ura 1.1 install::
298     @cont=0; \
299     for flag in ${MAKEFLAGS} ''; do \
300     case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
301 ura 1.2 SUBDIRS="$(SUBDIRS)" ;\
302     for i in $$SUBDIRS ;\
303 ura 1.1 do \
304     echo "installing" all "in $(CURRENT_DIR)/$$i..."; \
305 hiroo 1.11 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) install) \
306 ura 1.1 || if [ $$cont -eq 0 ]; then exit 1; fi; \
307     done
308    
309 ura 1.3 install.man::
310     @cont=0; \
311     for flag in ${MAKEFLAGS} ''; do \
312     case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
313     SUBDIRS="$(SUBDIRS)" ;\
314     for i in $$SUBDIRS ;\
315     do \
316     echo "installing man pages" "in $(CURRENT_DIR)/$$i..."; \
317 hiroo 1.11 (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) install.man) \
318 ura 1.3 || if [ $$cont -eq 0 ]; then exit 1; fi; \
319     done
320    
321 ura 1.1 depend::
322     @cont=0; \
323     @for flag in ${MAKEFLAGS} ''; do \
324     case "$$flag" in *=*) ;; *[ik]*) cont=1;; esac; done; \
325 ura 1.2 SUBDIRS="$(SUBDIRS)" ;\
326     for i in $$SUBDIRS ;\
327 ura 1.1 do \
328     echo "depending" "in $(CURRENT_DIR)/$$i..."; \
329     (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \
330     depend) \
331     || if [ $$cont -eq 0 ]; then exit 1; fi; \
332     done
333    
334     clean::
335 ura 1.2 SUBDIRS="$(SUBDIRS)" ;\
336     for i in $$SUBDIRS ;\
337 ura 1.1 do \
338     echo "cleaning" "in $(CURRENT_DIR)/$$i..."; \
339     (cd $$i && $(MAKE) $(MFLAGS) $(PARALLELMFLAGS) \
340     clean) \
341     done
342    
343     depend:: .depend
344    
345     .depend::
346     $(RM) $@
347 ura 1.3 $(DEPEND) -f- -- $(ALLDEFINES) $(DEPEND_DEFINES) -- $(SRCS) > $@
348 ura 1.1
349     # ----------------------------------------------------------------------
350     # common rules for all Makefiles - do not edit
351    
352    
353     emptyrule::
354    
355     clean::
356     $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *.core "#"*
357    
358    
359     tags::
360     $(TAGS) -w *.[ch]
361     $(TAGS) -xw *.[ch] > TAGS
362    
363     man_keywords::
364    
365     # ----------------------------------------------------------------------
366     # empty rules for directories that do not have SUBDIRS - do not edit
367    
368     install::
369     @echo "install in $(CURRENT_DIR) done"
370    
371     install.man::
372     @echo "install.man in $(CURRENT_DIR) done"
373    
374     install.linkkit::
375     @echo "install.linkkit in $(CURRENT_DIR) done"
376    
377     Makefiles::
378    
379     depend::
380    
381     # ----------------------------------------------------------------------
382     # dependencies generated by makedepend
383    
384     # dependencies are in .depend
385    

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26