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.16 - (hide annotations) (download)
Sun Jul 11 10:18:16 2010 UTC (13 years, 9 months ago) by aonoto
Branch: MAIN
Changes since 1.15: +25 -7 lines
Added (first step of) support for new installation path layout. Maybe
useful for package managers.  Please note that new layout is disabled
by default. You need to specify following configure parameter if you
try this.

- Added --enable-traditional-layout (default: yes) parameter to
  configure. If disabled, we install jserver / wnnstat / wnnkill to
  sbindir. Currently this will take effect on program path only.
- Also added --enable-sub-bindir (default: yes if
  --enable-traditional-layout, no otherwise). If disabled, we install
  programs to bindir (/ sbindir) directly (i.e. we don't mkdir Wnn4
  (, cWnn4 and kWnn4) sub directory to bindir (/ sbindir)) .
- Enable --program-transform-name and its family to programs
  (ex. jserver, uum, wnnkill, atod) and corresponding manpages.
- Update INSTALL documentation (Japanese version). English version
  will come later ...
- Strip old mail address (as usual).
- Merged part of my code to build correctly if builddir != srcdir (as
  usual).

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

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