0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.13 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 VPATH = @srcdir@
|
|
36
|
|
37 WNNROMKANOBJ = $(top_builddir)/Wnn/romkan
|
|
38
|
|
39 JLIBDEFINES = -DWRITE_CHECK
|
|
40 INCLUDES = -I$(WNNINCLUDESRC) -I$(top_builddir)
|
|
41 DEFINES = $(WNNDEFINES) $(ALLLANGDEF) $(JLIBDEFINES)
|
|
42 LINTLIBS =
|
|
43
|
|
44 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
45 LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL)
|
|
46 LT_CC = $(LIBTOOL) --mode=compile $(CC)
|
|
47
|
|
48 SRC1= jl.c js.c wnnerrmsg.c
|
|
49 OBJ1= jl.o js.o wnnerrmsg.o
|
|
50
|
|
51 SRC3= $(WNNETCSRC)/msg.c
|
|
52 OBJ3= msg.o
|
|
53 SRC4= $(WNNETCSRC)/yincoding.c
|
|
54 OBJ4= yincoding.o
|
|
55 SRC5= $(WNNETCSRC)/py_table.c
|
|
56 OBJ5= py_table.o
|
|
57 SRC6= $(WNNETCSRC)/zy_table.c
|
|
58 OBJ6= zy_table.o
|
|
59 SRC7= $(WNNETCSRC)/strings.c
|
|
60 OBJ7= strings.o
|
|
61 SRC8= $(WNNETCSRC)/bcopy.c
|
|
62 OBJ8= bcopy.o
|
|
63 SRC9= $(WNNETCSRC)/mkdir.c
|
|
64 OBJ9= mkdir.o
|
|
65
|
|
66 LOCAL_RKSRCS= $(WNNROMKANSRC)/rk_bltinfn.c $(WNNROMKANSRC)/rk_main.c $(WNNROMKANSRC)/rk_modread.c $(WNNROMKANSRC)/rk_read.c $(WNNROMKANSRC)/rk_vars.c
|
|
67
|
|
68 LOCAL_RKOBJS= $(WNNROMKANOBJ)/rk_bltinfn.o $(WNNROMKANOBJ)/rk_main.o $(WNNROMKANOBJ)/rk_modread.o $(WNNROMKANOBJ)/rk_read.o $(WNNROMKANOBJ)/rk_vars.o
|
|
69
|
|
70 LOCAL_ETCSRCS = $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8) $(SRC9)
|
|
71 LOCAL_ETCOBJS = $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9)
|
|
72 SRCS= $(SRC1) $(LOCAL_ETCSRCS)
|
|
73 OBJS= $(OBJ1) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS)
|
|
74
|
|
75 all::
|
|
76
|
|
77 includes::
|
|
78
|
|
79 .c.o:
|
|
80 $(RM) $@
|
|
81 $(LT_CC) -c $(CFLAGS) $(_NOOP_) $<
|
|
82
|
|
83 clean::
|
|
84 $(RM) -r .libs
|
|
85 $(RM) *.lo *.la
|
|
86
|
|
87 all:: $(OBJS) libwnn.la
|
|
88
|
|
89 js.o : js.c $(WNNETCSRC)/bdic.c $(WNNETCSRC)/pwd.c $(WNNETCSRC)/gethinsi.c
|
|
90
|
|
91 lint:
|
|
92 $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS)
|
|
93
|
|
94 kankana: kankana.o
|
|
95 $(RM) $@
|
|
96 $(LIBTOOL) --mode=link $(CCLINK) -o $@ $(LDOPTIONS) kankana.o $(WNNJLIB) @LIBS@
|
|
97
|
|
98 clean::
|
|
99 $(RM) kankana
|
|
100
|
|
101 all:: libwnn.la
|
|
102
|
|
103 libwnn.la: $(OBJS) $(EXTRALIBRARYDEPS)
|
|
104 $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION)
|
|
105
|
|
106 lintlib:: llib-lwnn.ln
|
|
107
|
|
108 llib-lwnn.ln: $(SRCS) $(EXTRALIBRARYDEPS)
|
|
109 $(RM) $@
|
|
110 $(LINT) $(LINTLIBFLAG)wnn $(LINTFLAGS) $(SRCS)
|
|
111
|
|
112 instlib:: install
|
|
113
|
|
114 install:: libwnn.la
|
|
115 @if [ -d $(DESTDIR)$(WNNLIBDIR) ]; then set +x; \
|
|
116 else (set -x; $(MKDIRHIER) $(DESTDIR)$(WNNLIBDIR)); fi
|
|
117 $(LT_INSTALL) $(INSTLIBFLAGS) libwnn.la $(DESTDIR)$(WNNLIBDIR)
|
|
118
|
|
119 $(OBJ3) : $(SRC3)
|
|
120 $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
121
|
|
122 $(OBJ4) : $(SRC4)
|
|
123 $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
124
|
|
125 $(OBJ5) : $(SRC5)
|
|
126 $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
127
|
|
128 $(OBJ6) : $(SRC6)
|
|
129 $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
130
|
|
131 $(OBJ7) : $(SRC7)
|
|
132 $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
133
|
|
134 $(OBJ8) : $(SRC8)
|
|
135 $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
136
|
|
137 $(OBJ9) : $(SRC9)
|
|
138 $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
139
|
|
140 $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
|
|
141 @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
|
|
142 cd $(WNNROMKANOBJ); \
|
|
143 echo "making all in $(WNNROMKANOBJ)"; \
|
|
144 $(MAKE) $(MFLAGS)
|
|
145
|
|
146 depend:: .depend
|
|
147
|