0
|
1 # FreeWnn is a network-extensible Kana-to-Kanji conversion system.
|
|
2 # This file is part of FreeWnn.
|
|
3 #
|
|
4 # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
|
|
5 # Copyright 1991, 1992 by Massachusetts Institute of Technology
|
|
6 # Copyright FreeWnn Project 2001
|
|
7 #
|
|
8 # Author: OMRON SOFTWARE Co., Ltd. <freewnn@rd.kyoto.omronsoft.co.jp>
|
|
9 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
10 #
|
|
11 # This program is free software; you can redistribute it and/or modify
|
|
12 # it under the terms of the GNU General Public License as published by
|
|
13 # the Free Software Foundation; either version 2, or (at your option)
|
|
14 # any later version.
|
|
15 #
|
|
16 # This program is distributed in the hope that it will be useful,
|
|
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19 # GNU General Public License for more details.
|
|
20 #
|
|
21 # You should have received a copy of the GNU General Public License
|
|
22 # along with GNU Emacs; see the file COPYING. If not, write to the
|
|
23 # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
24
|
|
25 include @top_srcdir@/makerule.mk
|
|
26 top_builddir = ../..
|
|
27
|
|
28 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
29 LOCAL_INSTFLAGS = -o $(WNNOWNER)
|
|
30
|
|
31 INCLUDES = -I. $(XWNMOINCLUDES) -I$(XWNMOSRC)
|
|
32
|
|
33 DEPLIBS = $(XWNMOJLIB)
|
|
34
|
|
35 LOCAL_DEFINES = -DXJUTIL
|
|
36 DEFINES = $(WNNDEFINE) $(ALLLANGDEF) $(LOCAL_DEFINES) $(XWNMODEF)
|
|
37 LOCAL_LIBRARIES = $(XWNMOJLIB) $(XLIB)
|
|
38 LOCALMAN = man.en
|
|
39
|
|
40 LINKS = xjutil.man
|
|
41
|
|
42 SRCS1 = display.c hinsi.c init_w.c jhlp.c jutil.c kensaku.c keyin.c message.c prologue.c touroku.c uif.c xheader.c xichiran.c xselectele.c xw_touroku.c
|
|
43
|
|
44 OBJS1 = display.o hinsi.o init_w.o jhlp.o jutil.o kensaku.o keyin.o message.o prologue.o touroku.o uif.o xheader.o xichiran.o xselectele.o xw_touroku.o
|
|
45
|
|
46 SRC2 = $(XWNMOSRC)/w_string.c
|
|
47 SRC3 = $(XWNMOSRC)/printf.c
|
|
48 SRC4 = $(XWNMOSRC)/termio.c
|
|
49 SRC5 = $(XWNMOSRC)/screen.c
|
|
50 SRC6 = $(XWNMOSRC)/cursor.c
|
|
51 SRC7 = $(XWNMOSRC)/localalloc.c
|
|
52 SRC8 = $(XWNMOSRC)/xcvtkey.c
|
|
53 SRC9 = $(XWNMOSRC)/box.c
|
|
54 SRC10 = $(XWNMOSRC)/basic_op.c
|
|
55 SRC11 = $(XWNMOSRC)/key_bind.c
|
|
56 SRC12 = $(XWNMOSRC)/xlc_util.c
|
|
57 SRC13 = $(XWNMOSRC)/functions.c
|
|
58 SRC14 = $(XWNMOSRC)/ichiran.c
|
|
59 SRC15 = $(XWNMOSRC)/jis_in.c
|
|
60 SRC16 = $(XWNMOSRC)/kuten.c
|
|
61 SRC17 = $(XWNMOSRC)/select_ele.c
|
|
62 ETC_SRC1 = $(WNNETCSRC)/xutoj.c
|
|
63 ETC_SRC2 = $(WNNETCSRC)/sstrings.c
|
|
64
|
|
65 OBJ2 = w_string.o
|
|
66 OBJ3 = printf.o
|
|
67 OBJ4 = termio.o
|
|
68 OBJ5 = screen.o
|
|
69 OBJ6 = cursor.o
|
|
70 OBJ7 = localalloc.o
|
|
71 OBJ8 = xcvtkey.o
|
|
72 OBJ9 = box.o
|
|
73 OBJ10 = basic_op.o
|
|
74 OBJ11 = key_bind.o
|
|
75 OBJ12 = xlc_util.o
|
|
76 OBJ13 = functions.o
|
|
77 OBJ14 = ichiran.o
|
|
78 OBJ15 = jis_in.o
|
|
79 OBJ16 = kuten.o
|
|
80 OBJ17 = select_ele.o
|
|
81 ETC_OBJ1 = xutoj.o
|
|
82 ETC_OBJ2 = sstrings.o
|
|
83
|
|
84 LOCAL_XWNMOSRCS= $(SRC2) $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8) $(SRC9) $(SRC10) $(SRC11) $(SRC12) $(SRC13) $(SRC14) $(SRC15) $(SRC16) $(SRC17)
|
|
85
|
|
86 LOCAL_XWNMOOBJS= $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJ10) $(OBJ11) $(OBJ12) $(OBJ13) $(OBJ14) $(OBJ15) $(OBJ16) $(OBJ17)
|
|
87
|
|
88 LOCAL_ETCSRCS= $(ETC_SRC1) $(ETC_SRC2)
|
|
89 LOCAL_ETCOBJS= $(ETC_OBJ1) $(ETC_OBJ2)
|
|
90 SRCS= $(SRCS1) $(LOCAL_XWNMOSRCS) $(LOCAL_ETCSRCS)
|
|
91 OBJS= $(OBJS1) $(LOCAL_XWNMOOBJS) $(LOCAL_ETCOBJS)
|
|
92
|
|
93 all:: xjutil
|
|
94
|
|
95 xjutil: $(OBJS) $(DEPLIBS)
|
|
96 $(RM) $@
|
|
97 $(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) @LIBS@ $(SYSLIBS)
|
|
98
|
|
99 clean::
|
|
100 $(RM) xjutil
|
|
101
|
|
102 includes:: $(LINKS)
|
|
103
|
|
104 xjutil.man: $(LOCALMAN)/xjutil.man
|
|
105 $(RM) $@
|
|
106 $(LN) $? $@
|
|
107
|
|
108 includes:: xjutil.man
|
|
109
|
|
110 depend:: xjutil.man
|
|
111
|
|
112 clean::
|
|
113 $(RM) xjutil.man
|
|
114
|
|
115 install:: xjutil
|
|
116 @if [ -d $(DESTDIR)$(BINDIR) ]; then set +x; \
|
|
117 else (set -x; $(MKDIRHIER) $(DESTDIR)$(BINDIR)); fi
|
|
118 $(INSTALL) $(INSTPGMFLAGS) $(INSTBINFLAGS) $(LOCAL_INSTFLAGS) xjutil $(DESTDIR)$(BINDIR)/xjutil
|
|
119
|
|
120 install.man:: xjutil.man
|
|
121 @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
|
|
122 else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
|
|
123 $(RM) $(DESTDIR)$(MANDIR)/xjutil.$(MANSUFFIX)*
|
|
124 $(INSTALL) $(INSTMANFLAGS) xjutil.man \
|
|
125 $(DESTDIR)$(MANDIR)/xjutil.$(MANSUFFIX)
|
|
126 -$(COMPRESSMANCMD) $(DESTDIR)$(MANDIR)/xjutil.$(MANSUFFIX)
|
|
127
|
|
128 $(OBJ2) : $(SRC2)
|
|
129 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
130
|
|
131 $(OBJ3) : $(SRC3)
|
|
132 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
133
|
|
134 $(OBJ4) : $(SRC4)
|
|
135 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
136
|
|
137 $(OBJ5) : $(SRC5)
|
|
138 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
139
|
|
140 $(OBJ6) : $(SRC6)
|
|
141 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
142
|
|
143 $(OBJ7) : $(SRC7)
|
|
144 $(CC) -c $(CFLAGS) $(ALLOCDEBUGFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
145
|
|
146 $(OBJ8) : $(SRC8)
|
|
147 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
148
|
|
149 $(OBJ9) : $(SRC9)
|
|
150 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
151
|
|
152 $(OBJ10) : $(SRC10)
|
|
153 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
154
|
|
155 $(OBJ11) : $(SRC11)
|
|
156 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
157
|
|
158 $(OBJ12) : $(SRC12)
|
|
159 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
160
|
|
161 $(OBJ13) : $(SRC13)
|
|
162 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
163
|
|
164 $(OBJ14) : $(SRC14)
|
|
165 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
166
|
|
167 $(OBJ15) : $(SRC15)
|
|
168 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
169
|
|
170 $(OBJ16) : $(SRC16)
|
|
171 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
172
|
|
173 $(OBJ17) : $(SRC17)
|
|
174 $(CC) -c $(CFLAGS) $(XWNMOSRC)/`basename $@ .o`.c
|
|
175
|
|
176 $(ETC_OBJ1) : $(ETC_SRC1)
|
|
177 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
178
|
|
179 $(ETC_OBJ2) : $(ETC_SRC2)
|
|
180 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
181
|
|
182 depend:: .depend
|
|
183
|
|
184 clean::
|
|
185 $(RM) $(LINKS)
|