1# 2# $Id: Makefile.in,v 1.11 2005/11/20 16:10:28 aonoto 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, 2005 14# 15# Maintainer: FreeWnn Project 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 32include @top_builddir@/makerule.mk 33top_builddir = @top_builddir@ 34 35INSTALL = @INSTALL@ 36 37 UUMOWNER = root 38 INCLUDES = -I$(KWNNINCLUDESRC) -I$(KWNNROMKANSRC) -I$(top_builddir) 39 DEFINES = $(KWNNDEFINES) $(KWNNLANGDEF) 40LOCAL_INSTFLAGS = $(INSTUIDFLAGS) -o $(UUMOWNER) 41LOCAL_LIBRARIES = $(KWNNJLIB) $(KWNNCONVLIB) @LIBS@ 42 43HDRS= buffer.h cvtcode.h sdefine.h sheader.h 44SRC1= epilogue.c header.c kensaku.c kuten.c jis_in.c prologue.c touroku.c jikouho.c jutil.c w_string.c printf.c termio.c hinsi.c termcap.c ttyfdslot.c setutmp.c redraw.c history.c key_bind.c screen.c basic_op.c uif.c cursor.c jhlp.c select_ele.c inspect.c wnnrc_op.c functions.c 45 46OBJ1= epilogue.o header.o kensaku.o kuten.o jis_in.o prologue.o touroku.o jikouho.o jutil.o w_string.o printf.o termio.o hinsi.o termcap.o ttyfdslot.o setutmp.o redraw.o history.o key_bind.o screen.o basic_op.o uif.o cursor.o jhlp.o select_ele.o inspect.o wnnrc_op.o functions.o 47 48SRC2= $(KWNNETCSRC)/bcopy.c 49OBJ2= bcopy.o 50SRC3= $(KWNNETCSRC)/xutoj.c 51OBJ3= xutoj.o 52SRC4= $(KWNNETCSRC)/server_env.c 53OBJ4= server_env.o 54SRC5= $(WNNETCSRC)/sstrings.c 55OBJ5= sstrings.o 56LOCAL_ETCSRCS= $(SRC2) $(SRC3) $(SRC4) $(SRC5) 57LOCAL_ETCOBJS= $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5) 58SRCS= $(SRC1) $(LOCAL_ETCSRCS) 59OBJS= $(OBJ1) $(LOCAL_ETCOBJS) 60 61all:: $(HDRS) $(SRC1) kuum 62 63kuum: $(OBJS) @DEPKWNNJLIB@ $(KWNNCONVLIB) 64 $(RM) $@ 65 $(LIBTOOL) --mode=link $(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) $(WNNTERM_LIB) 66 67clean:: 68 $(RM) -r .libs 69 $(RM) kuum 70 71includes:: $(HDRS) $(SRC1) 72 73buffer.h: $(WNNUUMSRC)/buffer.h 74 $(RM) $@ 75 $(LN) $? $@ 76 77includes:: buffer.h 78 79depend:: buffer.h 80 81clean:: 82 $(RM) buffer.h 83 84cvtcode.h: $(WNNUUMSRC)/cvtcode.h 85 $(RM) $@ 86 $(LN) $? $@ 87 88includes:: cvtcode.h 89 90depend:: cvtcode.h 91 92clean:: 93 $(RM) cvtcode.h 94 95sdefine.h: $(WNNUUMSRC)/sdefine.h 96 $(RM) $@ 97 $(LN) $? $@ 98 99includes:: sdefine.h 100 101depend:: sdefine.h 102 103clean:: 104 $(RM) sdefine.h 105 106sheader.h: $(WNNUUMSRC)/sheader.h 107 $(RM) $@ 108 $(LN) $? $@ 109 110includes:: sheader.h 111 112depend:: sheader.h 113 114clean:: 115 $(RM) sheader.h 116 117epilogue.c: $(WNNUUMSRC)/epilogue.c 118 $(RM) $@ 119 $(LN) $? $@ 120 121includes:: epilogue.c 122 123depend:: epilogue.c 124 125clean:: 126 $(RM) epilogue.c 127 128header.c: $(WNNUUMSRC)/header.c 129 $(RM) $@ 130 $(LN) $? $@ 131 132includes:: header.c 133 134depend:: header.c 135 136clean:: 137 $(RM) header.c 138 139kensaku.c: $(WNNUUMSRC)/kensaku.c 140 $(RM) $@ 141 $(LN) $? $@ 142 143includes:: kensaku.c 144 145depend:: kensaku.c 146 147clean:: 148 $(RM) kensaku.c 149 150kuten.c: $(WNNUUMSRC)/kuten.c 151 $(RM) $@ 152 $(LN) $? $@ 153 154includes:: kuten.c 155 156depend:: kuten.c 157 158clean:: 159 $(RM) kuten.c 160 161jis_in.c: $(WNNUUMSRC)/jis_in.c 162 $(RM) $@ 163 $(LN) $? $@ 164 165includes:: jis_in.c 166 167depend:: jis_in.c 168 169clean:: 170 $(RM) jis_in.c 171 172prologue.c: $(WNNUUMSRC)/prologue.c 173 $(RM) $@ 174 $(LN) $? $@ 175 176includes:: prologue.c 177 178depend:: prologue.c 179 180clean:: 181 $(RM) prologue.c 182 183touroku.c: $(WNNUUMSRC)/touroku.c 184 $(RM) $@ 185 $(LN) $? $@ 186 187includes:: touroku.c 188 189depend:: touroku.c 190 191clean:: 192 $(RM) touroku.c 193 194jikouho.c: $(WNNUUMSRC)/jikouho.c 195 $(RM) $@ 196 $(LN) $? $@ 197 198includes:: jikouho.c 199 200depend:: jikouho.c 201 202clean:: 203 $(RM) jikouho.c 204 205jutil.c: $(WNNUUMSRC)/jutil.c 206 $(RM) $@ 207 $(LN) $? $@ 208 209includes:: jutil.c 210 211depend:: jutil.c 212 213clean:: 214 $(RM) jutil.c 215 216w_string.c: $(WNNUUMSRC)/w_string.c 217 $(RM) $@ 218 $(LN) $? $@ 219 220includes:: w_string.c 221 222depend:: w_string.c 223 224clean:: 225 $(RM) w_string.c 226 227printf.c: $(WNNUUMSRC)/printf.c 228 $(RM) $@ 229 $(LN) $? $@ 230 231includes:: printf.c 232 233depend:: printf.c 234 235clean:: 236 $(RM) printf.c 237 238termio.c: $(WNNUUMSRC)/termio.c 239 $(RM) $@ 240 $(LN) $? $@ 241 242includes:: termio.c 243 244depend:: termio.c 245 246clean:: 247 $(RM) termio.c 248 249hinsi.c: $(WNNUUMSRC)/hinsi.c 250 $(RM) $@ 251 $(LN) $? $@ 252 253includes:: hinsi.c 254 255depend:: hinsi.c 256 257clean:: 258 $(RM) hinsi.c 259 260termcap.c: $(WNNUUMSRC)/termcap.c 261 $(RM) $@ 262 $(LN) $? $@ 263 264includes:: termcap.c 265 266depend:: termcap.c 267 268clean:: 269 $(RM) termcap.c 270 271ttyfdslot.c: $(WNNUUMSRC)/ttyfdslot.c 272 $(RM) $@ 273 $(LN) $? $@ 274 275includes:: ttyfdslot.c 276 277depend:: ttyfdslot.c 278 279clean:: 280 $(RM) ttyfdslot.c 281 282setutmp.c: $(WNNUUMSRC)/setutmp.c 283 $(RM) $@ 284 $(LN) $? $@ 285 286includes:: setutmp.c 287 288depend:: setutmp.c 289 290clean:: 291 $(RM) setutmp.c 292 293redraw.c: $(WNNUUMSRC)/redraw.c 294 $(RM) $@ 295 $(LN) $? $@ 296 297includes:: redraw.c 298 299depend:: redraw.c 300 301clean:: 302 $(RM) redraw.c 303 304history.c: $(WNNUUMSRC)/history.c 305 $(RM) $@ 306 $(LN) $? $@ 307 308includes:: history.c 309 310depend:: history.c 311 312clean:: 313 $(RM) history.c 314 315key_bind.c: $(WNNUUMSRC)/key_bind.c 316 $(RM) $@ 317 $(LN) $? $@ 318 319includes:: key_bind.c 320 321depend:: key_bind.c 322 323clean:: 324 $(RM) key_bind.c 325 326screen.c: $(WNNUUMSRC)/screen.c 327 $(RM) $@ 328 $(LN) $? $@ 329 330includes:: screen.c 331 332depend:: screen.c 333 334clean:: 335 $(RM) screen.c 336 337basic_op.c: $(WNNUUMSRC)/basic_op.c 338 $(RM) $@ 339 $(LN) $? $@ 340 341includes:: basic_op.c 342 343depend:: basic_op.c 344 345clean:: 346 $(RM) basic_op.c 347 348uif.c: $(WNNUUMSRC)/uif.c 349 $(RM) $@ 350 $(LN) $? $@ 351 352includes:: uif.c 353 354depend:: uif.c 355 356clean:: 357 $(RM) uif.c 358 359cursor.c: $(WNNUUMSRC)/cursor.c 360 $(RM) $@ 361 $(LN) $? $@ 362 363includes:: cursor.c 364 365depend:: cursor.c 366 367clean:: 368 $(RM) cursor.c 369 370jhlp.c: $(WNNUUMSRC)/jhlp.c 371 $(RM) $@ 372 $(LN) $? $@ 373 374includes:: jhlp.c 375 376depend:: jhlp.c 377 378clean:: 379 $(RM) jhlp.c 380 381select_ele.c: $(WNNUUMSRC)/select_ele.c 382 $(RM) $@ 383 $(LN) $? $@ 384 385includes:: select_ele.c 386 387depend:: select_ele.c 388 389clean:: 390 $(RM) select_ele.c 391 392inspect.c: $(WNNUUMSRC)/inspect.c 393 $(RM) $@ 394 $(LN) $? $@ 395 396includes:: inspect.c 397 398depend:: inspect.c 399 400clean:: 401 $(RM) inspect.c 402 403wnnrc_op.c: $(WNNUUMSRC)/wnnrc_op.c 404 $(RM) $@ 405 $(LN) $? $@ 406 407includes:: wnnrc_op.c 408 409depend:: wnnrc_op.c 410 411clean:: 412 $(RM) wnnrc_op.c 413 414functions.c: $(WNNUUMSRC)/functions.c 415 $(RM) $@ 416 $(LN) $? $@ 417 418includes:: functions.c 419 420depend:: functions.c 421 422clean:: 423 $(RM) functions.c 424 425instclient:: install 426 427install:: kuum 428 @if [ -d $(DESTDIR)$(KWNNBINDIR) ]; then set +x; \ 429 else (set -x; $(MKDIRHIER) $(DESTDIR)$(KWNNBINDIR)); fi 430 $(LIBTOOL) --mode=install $(INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS) $(LOCAL_INSTFLAGS) kuum $(DESTDIR)$(KWNNBINDIR)/kuum 431 432$(OBJ2) : $(SRC2) 433 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c 434 435$(OBJ3) : $(SRC3) 436 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c 437 438$(OBJ4) : $(SRC4) 439 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c 440 441$(OBJ5) : $(SRC5) 442 $(CC) -c $(CFLAGS) $(KWNNETCSRC)/`basename $@ .o`.c 443 444depend:: .depend 445 446 447clean:: 448 $(RM) $(HDRS) $(SRC1) 449