1#
2#   $Id: Makefile.in,v 1.13 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, 2002, 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
33  top_srcdir = @top_srcdir@
34top_builddir = @top_builddir@
35       VPATH = @srcdir@
36
37INSTALL         = @INSTALL@ $(INSTALLFLAGS)
38LOCAL_INSTFLAGS = $(INSTUIDFLAGS) -o $(UUMOWNER)
39
40       UUMOWNER = root
41       INCLUDES = -I$(WNNINCLUDESRC) -I$(WNNROMKANSRC) -I$(top_builddir)
42        DEFINES = $(WNNDEFINES) $(WNNLANGDEF)
43LOCAL_LIBRARIES = $(WNNJLIB) $(WNNCONVLIB) @LIBS@
44
45SRC1= 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
46
47OBJ1= 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
48
49SRC2= $(WNNETCSRC)/bcopy.c
50OBJ2= bcopy.o
51SRC3= $(WNNETCSRC)/xutoj.c
52OBJ3= xutoj.o
53SRC4= $(WNNETCSRC)/server_env.c
54OBJ4= server_env.o
55SRC5= $(WNNETCSRC)/sstrings.c
56OBJ5= sstrings.o
57LOCAL_ETCSRCS= $(SRC2) $(SRC3) $(SRC4) $(SRC5)
58LOCAL_ETCOBJS= $(OBJ2) $(OBJ3) $(OBJ4) $(OBJ5)
59SRCS= $(SRC1) $(LOCAL_ETCSRCS)
60OBJS= $(OBJ1) $(LOCAL_ETCOBJS)
61
62all:: uum
63
64uum: $(OBJS) @DEPWNNJLIB@ $(WNNCONVLIB)
65	$(RM) $@
66	$(LIBTOOL) --mode=link $(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) $(LOCAL_LIBRARIES) $(WNNTERM_LIB)
67
68clean::
69	$(RM) -r .libs
70	$(RM) uum
71
72instclient:: install
73
74install:: uum
75	@if [ -d $(DESTDIR)$(JWNNBINDIR) ]; then set +x; \
76	else (set -x; $(MKDIRHIER) $(DESTDIR)$(JWNNBINDIR)); fi
77	$(LIBTOOL) --mode=install $(INSTALL) $(INSTALLFLAGS) $(INSTPGMFLAGS) $(LOCAL_INSTFLAGS) uum $(DESTDIR)$(JWNNBINDIR)/uum
78
79$(OBJ2) : $(SRC2)
80	$(CC) -c $(CFLAGS)  $(WNNETCSRC)/`basename $@ .o`.c
81
82$(OBJ3) : $(SRC3)
83	$(CC) -c $(CFLAGS)  $(WNNETCSRC)/`basename $@ .o`.c
84
85$(OBJ4) : $(SRC4)
86	$(CC) -c $(CFLAGS)  $(WNNETCSRC)/`basename $@ .o`.c
87
88$(OBJ5) : $(SRC5)
89	$(CC) -c $(CFLAGS)  $(WNNETCSRC)/`basename $@ .o`.c
90
91depend:: .depend
92
93