0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.11 2004/08/15 09:38:22 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, 2004
|
|
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 VPATH = @srcdir@
|
|
36
|
|
37 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
38 LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
39 LT_LD = $(LIBTOOL) --mode=link $(CCLINK)
|
|
40 LOCAL_INSTFLAGS = -o $(WNNOWNER)
|
|
41
|
|
42 INCLUDES = -I$(WNNINCLUDESRC) -I$(top_builddir)
|
|
43 DEFINES = $(WNNDEFINES) $(WNNLANGDEF)
|
|
44 HINSIDEFINE = -DHINSIDATA_FILE=\"/$(JWNNLANG)/hinsi.data\"
|
|
45
|
|
46 CLIENTPROGRAMS = wnnstat wnnkill wddel wdreg
|
|
47
|
|
48 DICUTIL2PROGRAMS = atod atof wnntouch
|
|
49
|
|
50 DICUTILPROGRAMS = oldatonewa dtoa
|
|
51
|
|
52 PROGRAMS = $(CLIENTPROGRAMS) $(DICUTILPROGRAMS) $(DICUTIL2PROGRAMS)
|
|
53
|
|
54 SRC1= $(WNNETCSRC)/bdic.c
|
|
55 OBJ1= bdic.o
|
|
56 SRC2= $(WNNETCSRC)/strings.c
|
|
57 OBJ2= strings.o
|
|
58 SRC3= $(WNNETCSRC)/sstrings.c
|
|
59 OBJ3= sstrings.o
|
|
60 SRC4= $(WNNETCSRC)/gethinsi.c
|
|
61 OBJ4= gethinsi.o
|
|
62 SRC5= $(WNNETCSRC)/revdic.c
|
|
63 OBJ5= revdic.o
|
|
64 SRC6= $(WNNETCSRC)/hindo.c
|
|
65 OBJ6= hindo.o
|
|
66 SRC7= $(WNNETCSRC)/pwd.c
|
|
67 OBJ7= pwd.o
|
|
68 SRC8= $(WNNETCSRC)/bcopy.c
|
|
69 OBJ8= bcopy.o
|
|
70 SRC9= $(WNNETCSRC)/dic_atojis.c
|
|
71 OBJ9= dic_atojis.o
|
|
72 SRC10= $(WNNETCSRC)/xutoj.c
|
|
73 OBJ10= xutoj.o
|
|
74 SRC11= $(WNNETCSRC)/server_env.c
|
|
75 OBJ11= server_env.o
|
|
76
|
|
77 LOCAL_ETCSRCS3= $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRC7) $(SRC8) $(SRC9) $(SRC10)
|
|
78
|
|
79 LOCAL_ETCOBJS3= $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJ10)
|
|
80
|
|
81 LOCAL_ETCSRCS2= $(LOCAL_ETCSRCS3) $(SRC6)
|
|
82 LOCAL_ETCOBJS2= $(LOCAL_ETCOBJS3) $(OBJ6)
|
|
83 LOCAL_ETCSRCS1= $(LOCAL_ETCSRCS2) $(SRC5)
|
|
84 LOCAL_ETCOBJS1= $(LOCAL_ETCOBJS2) $(OBJ5)
|
|
85
|
|
86 SRCATOD= atod.c ujisf.c dic_head.c atorev.c $(LOCAL_ETCSRCS1)
|
|
87 OBJATOD= atod.o ujisf.o dic_head.o atorev.o $(LOCAL_ETCOBJS1)
|
|
88 SRCATOF= atof.c $(LOCAL_ETCSRCS3)
|
|
89 OBJATOF= atof.o $(LOCAL_ETCOBJS3)
|
|
90 SRCTOUCH= wnntouch.c $(LOCAL_ETCSRCS3)
|
|
91 OBJTOUCH= wnntouch.o $(LOCAL_ETCOBJS3)
|
|
92
|
|
93 SRCDTOA= dtoa.c ujisf.c dic_head.c $(LOCAL_ETCSRCS1)
|
|
94 OBJDTOA= dtoa.o ujisf.o dic_head.o $(LOCAL_ETCOBJS1)
|
|
95 SRCOLDTONEW= oldatonewa.c $(LOCAL_ETCSRCS2)
|
|
96 OBJOLDTONEW= oldatonewa.o $(LOCAL_ETCOBJS2)
|
|
97
|
|
98 SRCSTAT= wnnstat.c $(SRC3) $(SRC8) $(SRC10) $(SRC11)
|
|
99 OBJSTAT= wnnstat.o $(OBJ3) $(OBJ8) $(OBJ10) $(OBJ11)
|
|
100 SRCKILL= wnnkill.c $(SRC3) $(SRC8) $(SRC10) $(SRC11)
|
|
101 OBJKILL= wnnkill.o $(OBJ3) $(OBJ8) $(OBJ10) $(OBJ11)
|
|
102 SRCSORT= sort.c ujisf.c $(LOCAL_ETCSRCS2)
|
|
103 OBJSORT= sort.o ujisf.o $(LOCAL_ETCOBJS2)
|
|
104 SRCWDDEL= wddel.c $(SRC3) $(SRC8) $(SRC10)
|
|
105 OBJWDDEL= wddel.o $(OBJ3) $(OBJ8) $(OBJ10)
|
|
106 SRCWDREG= wdreg.c ujisf.c $(SRC1) $(SRC3) $(SRC4) $(SRC7) $(SRC8) $(SRC9) $(SRC10)
|
|
107
|
|
108 OBJWDREG= wdreg.o ujisf.o $(OBJ1) $(OBJ3) $(OBJ4) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJ10)
|
|
109
|
|
110 SRCS= atod.c dic_head.c wddel.c wnnkill.c atof.c dtoa.c ujisf.c wdreg.c wnnstat.c atorev.c oldatonewa.c sort.c wnntouch.c $(SRC1) $(SRC2) $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC6) $(SRC7) $(SRC9) $(SRC10) $(SRC11)
|
|
111
|
|
112 OBJS= atod.o dic_head.o wddel.o wnnkill.o atof.o dtoa.o ujisf.o wdreg.o wnnstat.o atorev.o oldatonewa.o sort.o wnntouch.c $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ6) $(OBJ7) $(OBJ9) $(OBJ10) $(OBJ11)
|
|
113
|
|
114 all:: $(PROGRAMS)
|
|
115
|
|
116 clean::
|
|
117 $(RM) -r .libs
|
|
118 $(RM) *.lo *.la
|
|
119
|
|
120 atod: $(OBJATOD)
|
|
121 $(RM) $@
|
|
122 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJATOD) @LIBS@
|
|
123
|
|
124 clean::
|
|
125 $(RM) atod
|
|
126
|
|
127 atof: $(OBJATOF)
|
|
128 $(RM) $@
|
|
129 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJATOF) @LIBS@
|
|
130
|
|
131 clean::
|
|
132 $(RM) atof
|
|
133
|
|
134 wnntouch: $(OBJTOUCH)
|
|
135 $(RM) $@
|
|
136 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJTOUCH) @LIBS@
|
|
137
|
|
138 clean::
|
|
139 $(RM) wnntouch
|
|
140
|
|
141 dicsort: $(OBJSORT)
|
|
142 $(RM) $@
|
|
143 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJSORT)
|
|
144
|
|
145 clean::
|
|
146 $(RM) dicsort
|
|
147
|
|
148 oldatonewa: $(OBJOLDTONEW)
|
|
149 $(RM) $@
|
|
150 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJOLDTONEW) @LIBS@
|
|
151
|
|
152 clean::
|
|
153 $(RM) oldatonewa
|
|
154
|
|
155 dtoa: $(OBJDTOA)
|
|
156 $(RM) $@
|
|
157 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJDTOA) @LIBS@
|
|
158
|
|
159 clean::
|
|
160 $(RM) dtoa
|
|
161
|
|
162 wnnstat: $(OBJSTAT) @DEPWNNJLIB@
|
|
163 $(RM) $@
|
|
164 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJSTAT) $(WNNJLIB) @LIBS@
|
|
165
|
|
166 clean::
|
|
167 $(RM) wnnstat
|
|
168
|
|
169 wnnkill: $(OBJKILL) @DEPWNNJLIB@
|
|
170 $(RM) $@
|
|
171 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJKILL) $(WNNJLIB) @LIBS@
|
|
172
|
|
173 clean::
|
|
174 $(RM) wnnkill
|
|
175
|
|
176 wddel: $(OBJWDDEL) @DEPWNNJLIB@
|
|
177 $(RM) $@
|
|
178 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJWDDEL) $(WNNJLIB) @LIBS@
|
|
179
|
|
180 clean::
|
|
181 $(RM) wddel
|
|
182
|
|
183 wdreg: $(OBJWDREG) @DEPWNNJLIB@
|
|
184 $(RM) $@
|
|
185 $(LT_LD) -o $@ $(LDOPTIONS) $(OBJWDREG) $(WNNJLIB) @LIBS@
|
|
186
|
|
187 clean::
|
|
188 $(RM) wdreg
|
|
189
|
|
190 install:: $(PROGRAMS)
|
|
191 @if [ -d $(DESTDIR)$(JWNNBINDIR) ]; then set +x; \
|
|
192 else (set -x; $(MKDIRHIER) $(DESTDIR)$(JWNNBINDIR)); fi
|
|
193 @for flag in ${MAKEFLAGS} ''; do \
|
|
194 case "$$flag" in *=*) ;; *[i]*) set +e;; esac; done; \
|
|
195 for i in $(PROGRAMS); do \
|
|
196 (set -x; $(LT_INSTALL) $(INSTBINFLAGS) $(INSTPGMFLAGS) $(LOCAL_INSTFLAGS) $$i $(DESTDIR)$(JWNNBINDIR)); \
|
|
197 done
|
|
198
|
|
199 $(OBJ1) : $(SRC1)
|
|
200 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
201
|
|
202 $(OBJ2) : $(SRC2)
|
|
203 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
204
|
|
205 $(OBJ3) : $(SRC3)
|
|
206 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
207
|
|
208 $(OBJ4) : $(SRC4)
|
|
209 $(CC) -c $(CFLAGS) $(HINSIDEFINE) $(WNNETCSRC)/`basename $@ .o`.c
|
|
210
|
|
211 $(OBJ5) : $(SRC5)
|
|
212 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
213
|
|
214 $(OBJ6) : $(SRC6)
|
|
215 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
216
|
|
217 $(OBJ7) : $(SRC7)
|
|
218 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
219
|
|
220 $(OBJ8) : $(SRC8)
|
|
221 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
222
|
|
223 $(OBJ9) : $(SRC9)
|
|
224 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
225
|
|
226 $(OBJ10) : $(SRC10)
|
|
227 $(CC) -c $(CFLAGS) $(WNNLANGDEF) $(WNNETCSRC)/`basename $@ .o`.c
|
|
228
|
|
229 $(OBJ11) : $(SRC11)
|
|
230 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|