0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.12 2004/09/12 16:56:55 aono 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
|
|
14 #
|
|
15 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
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 LINKS = jl.c js.c wnnerrmsg.c
|
|
37 JLIBDEFINES = -DWRITE_CHECK
|
|
38 INCLUDES = -I$(CWNNINCLUDESRC) -I$(top_builddir)
|
|
39 DEFINES = $(CWNNDEFINES) $(CWNNLANGDEF) $(JLIBDEFINES)
|
|
40 LINTLIBS =
|
|
41 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
42 LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
43 LT_CC = $(LIBTOOL) --mode=compile $(CC)
|
|
44
|
|
45 SRC1= jl.c js.c wnnerrmsg.c
|
|
46 OBJ1= jl.o js.o wnnerrmsg.o
|
|
47
|
|
48 SRC3= $(CWNNETCSRC)/msg.c
|
|
49 OBJ3= msg.o
|
|
50 SRC4= $(CWNNETCSRC)/yincoding.c
|
|
51 OBJ4= yincoding.o
|
|
52 SRC5= $(CWNNETCSRC)/py_table.c
|
|
53 OBJ5= py_table.o
|
|
54 SRC6= $(CWNNETCSRC)/zy_table.c
|
|
55 OBJ6= zy_table.o
|
|
56 SRC7= $(CWNNETCSRC)/strings.c
|
|
57 OBJ7= strings.o
|
|
58 SRC8= $(CWNNETCSRC)/bcopy.c
|
|
59 OBJ8= bcopy.o
|
|
60
|
|
61 LOCAL_RKSRCS= $(CWNNROMKANSRC)/rk_bltinfn.c $(CWNNROMKANSRC)/rk_main.c $(CWNNROMKANSRC)/rk_modread.c $(CWNNROMKANSRC)/rk_read.c $(CWNNROMKANSRC)/rk_vars.c
|
|
62
|
|
63 LOCAL_RKOBJS= $(CWNNROMKANSRC)/rk_bltinfn.o $(CWNNROMKANSRC)/rk_main.o $(CWNNROMKANSRC)/rk_modread.o $(CWNNROMKANSRC)/rk_read.o $(CWNNROMKANSRC)/rk_vars.o
|
|
64
|
|
65 LOCAL_ETCSRCS = $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8)
|
|
66 LOCAL_ETCOBJS = $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8)
|
|
67 OTHER_SRCS = $(WNNETCSRC)/mkdir.c
|
|
68 OTHER_OBJS = mkdir.o
|
|
69 SRCS= $(SRC1) $(SRC3) $(LOCAL_ETCSRCS) $(OTHER_SRCS)
|
|
70 OBJS= $(OBJ1) $(OBJ3) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS) $(mkdir.o)
|
|
71
|
|
72 all::
|
|
73
|
|
74 includes::
|
|
75
|
|
76 .c.o:
|
|
77 $(RM) $@
|
|
78 $(LT_CC) -c $(CFLAGS) $(_NOOP_) $*.c
|
|
79
|
|
80 clean::
|
|
81 $(RM) -r .libs
|
|
82 $(RM) *.lo *.la
|
|
83
|
|
84 all:: $(LINKS) $(OBJS) libcwnn.la
|
|
85
|
|
86 includes:: $(LINKS)
|
|
87
|
|
88 jl.c: $(WNNJLIBSRC)/jl.c
|
|
89 $(RM) $@
|
|
90 $(LN) $? $@
|
|
91
|
|
92 includes:: jl.c
|
|
93
|
|
94 depend:: jl.c
|
|
95
|
|
96 js.c: $(WNNJLIBSRC)/js.c
|
|
97 $(RM) $@
|
|
98 $(LN) $? $@
|
|
99
|
|
100 includes:: js.c
|
|
101
|
|
102 depend:: js.c
|
|
103
|
|
104 wnnerrmsg.c: $(WNNJLIBSRC)/wnnerrmsg.c
|
|
105 $(RM) $@
|
|
106 $(LN) $? $@
|
|
107
|
|
108 includes:: wnnerrmsg.c
|
|
109
|
|
110 depend:: wnnerrmsg.c
|
|
111
|
|
112 js.o : js.c $(CWNNETCSRC)/bdic.c $(CWNNETCSRC)/pwd.c $(CWNNETCSRC)/gethinsi.c
|
|
113
|
|
114 lint:
|
|
115 $(LINT) $(LINTFLAGS) $(SRC2) $(LINTLIBS)
|
|
116 lint1:
|
|
117 $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
|
|
118
|
|
119 all:: libcwnn.la
|
|
120
|
|
121 libcwnn.la: $(OBJS) $(EXTRALIBRARYDEPS)
|
|
122 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(CWNNJLIBVERSION)
|
|
123
|
|
124 lintlib:: llib-lcwnn.ln
|
|
125
|
|
126 llib-lcwnn.ln: $(SRCS) $(EXTRALIBRARYDEPS)
|
|
127 $(RM) $@
|
|
128 $(LINT) $(LINTLIBFLAG)cwnn $(LINTFLAGS) $(SRCS)
|
|
129
|
|
130 instlib:: install
|
|
131
|
|
132 install:: libcwnn.la
|
|
133 @if [ -d $(DESTDIR)$(WNNLIBDIR) ]; then set +x; \
|
|
134 else (set -x; $(MKDIRHIER) $(DESTDIR)$(WNNLIBDIR)); fi
|
|
135 $(LT_INSTALL) $(INSTLIBFLAGS) libcwnn.la $(DESTDIR)$(WNNLIBDIR)
|
|
136
|
|
137 $(OBJ3) : $(SRC3)
|
|
138 $(LT_CC) -c $(CFLAGS) $(CWNNETCSRC)/`basename $@ .o`.c
|
|
139
|
|
140 $(OBJ4) : $(SRC4)
|
|
141 $(LT_CC) -c $(CFLAGS) $(CWNNETCSRC)/`basename $@ .o`.c
|
|
142
|
|
143 $(OBJ5) : $(SRC5)
|
|
144 $(LT_CC) -c $(CFLAGS) $(CWNNETCSRC)/`basename $@ .o`.c
|
|
145
|
|
146 $(OBJ6) : $(SRC6)
|
|
147 $(LT_CC) -c $(CFLAGS) $(CWNNETCSRC)/`basename $@ .o`.c
|
|
148
|
|
149 $(OBJ7) : $(SRC7)
|
|
150 $(LT_CC) -c $(CFLAGS) $(CWNNETCSRC)/`basename $@ .o`.c
|
|
151
|
|
152 $(OBJ8) : $(SRC8)
|
|
153 $(LT_CC) -c $(CFLAGS) $(CWNNETCSRC)/`basename $@ .o`.c
|
|
154
|
|
155 mkdir.o : $(WNNETCSRC)/mkdir.c
|
|
156 $(LT_CC) -c $(CFLAGS) $@
|
|
157
|
|
158 $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
|
|
159 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
|
|
160 cd $(CWNNROMKANSRC); \
|
|
161 echo "making all in $(CWNNROMKANSRC)"; \
|
|
162 $(MAKE) $(MFLAGS)
|
|
163
|
|
164 depend:: .depend
|
|
165
|
|
166 clean::
|
|
167 -$(RM) $(LINKS)
|