0
|
1 # FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
2 # This file is part of FreeWnn.
|
|
3 #
|
|
4 # Copyright Kyoto University Research Institute for Mathematical Sciences
|
|
5 # 1987, 1988, 1989, 1990, 1991, 1992
|
|
6 # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
7 # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992
|
|
8 # Copyright FreeWnn Project 2001
|
|
9 #
|
|
10 # Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
11 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
12 #
|
|
13 # This program is free software; you can redistribute it and/or modify
|
|
14 # it under the terms of the GNU General Public License as published by
|
|
15 # the Free Software Foundation; either version 2, or (at your option)
|
|
16 # any later version.
|
|
17 #
|
|
18 # This program is distributed in the hope that it will be useful,
|
|
19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
21 # GNU General Public License for more details.
|
|
22 #
|
|
23 # You should have received a copy of the GNU General Public License
|
|
24 # along with GNU Emacs; see the file COPYING. If not, write to the
|
|
25 # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
26
|
|
27 include @top_srcdir@/makerule.mk
|
|
28 top_builddir = ../..
|
|
29
|
|
30 LIB_MT_DEFINES = LibraryMTDefines
|
|
31
|
|
32 # DEBUG -DDEBUG , -DJL_DEBBUG
|
|
33
|
|
34 JLIBDEFINES = -DWRITE_CHECK
|
|
35 INCLUDES = -I$(WNNINCLUDESRC) -I$(TOP)
|
|
36 DEFINES = $(WNNDEFINES) $(ALLLANGDEF) $(JLIBDEFINES)
|
|
37 LINTLIBS =
|
|
38
|
|
39 SRC1= js.c wnnerrmsg.c jl.c
|
|
40
|
|
41 OBJ1= js.o wnnerrmsg.o jl.o
|
|
42
|
|
43 SRC2= $(WNNETCSRC)/msg.c
|
|
44 OBJ2= msg.o
|
|
45 SRC3= $(WNNETCSRC)/yincoding.c
|
|
46 OBJ3= yincoding.o
|
|
47 SRC4= $(WNNETCSRC)/py_table.c
|
|
48 OBJ4= py_table.o
|
|
49 SRC5= $(WNNETCSRC)/zy_table.c
|
|
50 OBJ5= zy_table.o
|
|
51 SRC6= $(WNNETCSRC)/strings.c
|
|
52 OBJ6= strings.o
|
|
53 SRC7= $(WNNETCSRC)/bcopy.c
|
|
54 OBJ7= bcopy.o
|
|
55 LOCAL_RKSRCS= $(XWNMOROMKANMSRC)/rk_bltinfn.c $(XWNMOROMKANMSRC)/rk_main.c $(XWNMOROMKANMSRC)/rk_modread.c $(XWNMOROMKANMSRC)/rk_read.c $(XWNMOROMKANMSRC)/rk_vars.c $(XWNMOROMKANMSRC)/rk_alloc.c
|
|
56
|
|
57 LOCAL_RKOBJS= $(XWNMOROMKANMSRC)/rk_bltinfn.o $(XWNMOROMKANMSRC)/rk_main.o $(XWNMOROMKANMSRC)/rk_modread.o $(XWNMOROMKANMSRC)/rk_read.o $(XWNMOROMKANMSRC)/rk_vars.o $(XWNMOROMKANMSRC)/rk_alloc.o
|
|
58
|
|
59 LOCAL_ETCSRCS = $(SRC2) $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC7)
|
|
60 LOCAL_ETCOBJS = $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7)
|
|
61 SRCS= $(SRC1) $(LOCAL_ETCSRCS)
|
|
62 OBJS= $(OBJ1) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS)
|
|
63
|
|
64 all::
|
|
65
|
|
66 includes::
|
|
67
|
|
68 .c.o:
|
|
69 $(RM) $@
|
|
70 $(CC) -c $(CFLAGS) $(_NOOP_) $*.c
|
|
71
|
|
72 clean::
|
|
73
|
|
74 all:: $(OBJS) libwnn_m.a
|
|
75
|
|
76 includes:: $(SRC1)
|
|
77
|
|
78 js.c: $(WNNJLIBSRC)/js.c
|
|
79 $(RM) $@
|
|
80 $(LN) $? $@
|
|
81
|
|
82 includes:: js.c
|
|
83
|
|
84 depend:: js.c
|
|
85
|
|
86 clean::
|
|
87 $(RM) js.c
|
|
88
|
|
89 wnnerrmsg.c: $(WNNJLIBSRC)/wnnerrmsg.c
|
|
90 $(RM) $@
|
|
91 $(LN) $? $@
|
|
92
|
|
93 includes:: wnnerrmsg.c
|
|
94
|
|
95 depend:: wnnerrmsg.c
|
|
96
|
|
97 clean::
|
|
98 $(RM) wnnerrmsg.c
|
|
99
|
|
100 jl.c: $(WNNJLIBSRC)/jl.c
|
|
101 $(RM) $@
|
|
102 $(LN) $? $@
|
|
103
|
|
104 includes:: jl.c
|
|
105
|
|
106 depend:: jl.c
|
|
107
|
|
108 clean::
|
|
109 $(RM) jl.c
|
|
110
|
|
111 js.o : js.c $(WNNETCSRC)/bdic.c $(WNNETCSRC)/pwd.c $(WNNETCSRC)/gethinsi.c
|
|
112
|
|
113 all:: libwnn_m.a
|
|
114
|
|
115 libwnn_m.a: $(OBJS) $(EXTRALIBRARYDEPS)
|
|
116 $(RM) $@
|
|
117 $(AR) $@ $(OBJS)
|
|
118 $(RANLIB) $@
|
|
119
|
|
120 lintlib:: llib-lwnn_m.ln
|
|
121
|
|
122 llib-lwnn_m.ln: $(SRCS) $(EXTRALIBRARYDEPS)
|
|
123 $(RM) $@
|
|
124 $(LINT) $(LINTLIBFLAG)wnn_m $(LINTFLAGS) $(SRCS)
|
|
125
|
|
126 $(OBJ2) : $(SRC2)
|
|
127 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
128
|
|
129 $(OBJ3) : $(SRC3)
|
|
130 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
131
|
|
132 $(OBJ4) : $(SRC4)
|
|
133 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
134
|
|
135 $(OBJ5) : $(SRC5)
|
|
136 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
137
|
|
138 $(OBJ6) : $(SRC6)
|
|
139 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
140
|
|
141 $(OBJ7) : $(SRC7)
|
|
142 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
143
|
|
144 $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS)
|
|
145 @case '${MFLAGS}' in *[ik]*) set +e;; esac; cd $(XWNMOROMKANMSRC); echo "making all in $(XWNMOROMKANMSRC)"; $(MAKE) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' $(MFLAGS)
|
|
146
|
|
147 depend:: .depend
|
|
148
|
|
149 clean::
|
|
150 $(RM) $(SRC1)
|