# # $Id: Makefile.in,v 1.13 2004/09/12 16:56:55 aono Exp $ # # # FreeWnn is a network-extensible Kana-to-Kanji conversion system. # This file is part of FreeWnn. # # Copyright Kyoto University Research Institute for Mathematical Sciences # 1987, 1988, 1989, 1990, 1991, 1992 # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 # Copyright FreeWnn Project 1999, 2000, 2001, 2003 # # Maintainer: FreeWnn Project # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # include @top_builddir@/makerule.mk top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ VPATH = @srcdir@ WNNROMKANOBJ = $(top_builddir)/Wnn/romkan JLIBDEFINES = -DWRITE_CHECK INCLUDES = -I$(WNNINCLUDESRC) -I$(top_builddir) DEFINES = $(WNNDEFINES) $(ALLLANGDEF) $(JLIBDEFINES) LINTLIBS = INSTALL = @INSTALL@ $(INSTALLFLAGS) LT_INSTALL = $(LIBTOOL) --mode=install $(INSTALL) LT_CC = $(LIBTOOL) --mode=compile $(CC) SRC1= jl.c js.c wnnerrmsg.c OBJ1= jl.o js.o wnnerrmsg.o SRC3= $(WNNETCSRC)/msg.c OBJ3= msg.o SRC4= $(WNNETCSRC)/yincoding.c OBJ4= yincoding.o SRC5= $(WNNETCSRC)/py_table.c OBJ5= py_table.o SRC6= $(WNNETCSRC)/zy_table.c OBJ6= zy_table.o SRC7= $(WNNETCSRC)/strings.c OBJ7= strings.o SRC8= $(WNNETCSRC)/bcopy.c OBJ8= bcopy.o SRC9= $(WNNETCSRC)/mkdir.c OBJ9= mkdir.o SRC10= $(WNNETCSRC)/fake-rfc2553.c OBJ10= fake-rfc2553.o LOCAL_RKSRCS= $(WNNROMKANSRC)/rk_bltinfn.c $(WNNROMKANSRC)/rk_main.c $(WNNROMKANSRC)/rk_modread.c $(WNNROMKANSRC)/rk_read.c $(WNNROMKANSRC)/rk_vars.c LOCAL_RKOBJS= $(WNNROMKANOBJ)/rk_bltinfn.o $(WNNROMKANOBJ)/rk_main.o $(WNNROMKANOBJ)/rk_modread.o $(WNNROMKANOBJ)/rk_read.o $(WNNROMKANOBJ)/rk_vars.o LOCAL_ETCSRCS = $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRC8) $(SRC9) $(SRC10) LOCAL_ETCOBJS = $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJ8) $(OBJ9) $(OBJ10) SRCS= $(SRC1) $(LOCAL_ETCSRCS) OBJS= $(OBJ1) $(LOCAL_ETCOBJS) $(LOCAL_RKOBJS) all:: includes:: .c.o: $(RM) $@ $(LT_CC) -c $(CFLAGS) $(_NOOP_) $< clean:: $(RM) -r .libs $(RM) *.lo *.la all:: $(OBJS) libwnn.la js.o : js.c $(WNNETCSRC)/bdic.c $(WNNETCSRC)/pwd.c $(WNNETCSRC)/gethinsi.c lint: $(LINT) $(LINTFLAGS) $(FILE) $(LINTLIBS) kankana: kankana.o $(RM) $@ $(LIBTOOL) --mode=link $(CCLINK) -o $@ $(LDOPTIONS) kankana.o $(WNNJLIB) @LIBS@ clean:: $(RM) kankana all:: libwnn.la libwnn.la: $(OBJS) $(EXTRALIBRARYDEPS) $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS:.o=.lo) -rpath $(WNNLIBDIR) -version-info $(WNNJLIBVERSION) lintlib:: llib-lwnn.ln llib-lwnn.ln: $(SRCS) $(EXTRALIBRARYDEPS) $(RM) $@ $(LINT) $(LINTLIBFLAG)wnn $(LINTFLAGS) $(SRCS) instlib:: install install:: libwnn.la @if [ -d $(DESTDIR)$(WNNLIBDIR) ]; then set +x; \ else (set -x; $(MKDIRHIER) $(DESTDIR)$(WNNLIBDIR)); fi $(LT_INSTALL) $(INSTLIBFLAGS) libwnn.la $(DESTDIR)$(WNNLIBDIR) $(OBJ3) : $(SRC3) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(OBJ4) : $(SRC4) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(OBJ5) : $(SRC5) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(OBJ6) : $(SRC6) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(OBJ7) : $(SRC7) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(OBJ8) : $(SRC8) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(OBJ9) : $(SRC9) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(OBJ10) : $(SRC10) $(LT_CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c $(LOCAL_RKOBJS) : $(LOCAL_RKSRCS) @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ cd $(WNNROMKANOBJ); \ echo "making all in $(WNNROMKANOBJ)"; \ $(MAKE) $(MFLAGS) depend:: .depend