0
|
1 #
|
|
2 # $Id: Makefile.in,v 1.18 2004/05/21 16:39:32 aono 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, 2003, 2004
|
|
14 #
|
|
15 # Maintainer: FreeWnn Project <freewnn@tomo.gr.jp>
|
|
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
|
|
32 include @top_builddir@/makerule.mk
|
|
33 top_srcdir = @top_srcdir@
|
|
34 srcdir = @srcdir@
|
|
35 VPATH = @srcdir@
|
|
36 top_builddir = @top_builddir@
|
|
37
|
|
38 INSTALL = @INSTALL@ $(INSTALLFLAGS)
|
|
39 LOCAL_INSTFLAGS = -o $(WNNOWNER)
|
|
40
|
|
41 JSERVERDEFINES = -DJSERVER -DWRITE_CHECK
|
|
42 INCLUDES = -I$(WNNINCLUDESRC) -I$(top_builddir) -I$(srcdir)
|
|
43 DEFINES = $(WNNDEFINES) $(JSERVERDEFINES) $(WNNTERM)
|
|
44 SERVERINITDEF = -DSERVER_INIT_FILE=\"/$(JWNNLANG)/jserverrc\"
|
|
45 HINSIDEFINES = -DHINSIDATA_FILE=\"/$(JWNNLANG)/hinsi.data\"
|
|
46 WRAPLIB = @WRAPLIB@
|
|
47
|
|
48 SRC0= de.c
|
|
49 SRC1= dispatch.c do_dic_env.c do_dic_no.c do_filecom.c error.c jbiki.c jbiki_b.c jishoop.c rd_jishoop.c readfile.c b_index.c jishosub.c jmt0.c mknode0.c mknode1.c mknode2.c renbn_kai.c bnsetu_kai.c daibn_kai.c jikouho.c jikouho_d.c fzk.c atojis.c get_kaiarea.c snd_rcv.c do_henkan.c do_henkan1.c do_env.c do_hindo_s.c initjserv.c hinsi_list.c sisheng.c w_string.c
|
|
50
|
|
51 OBJ0= de.o
|
|
52 OBJ1= dispatch.o do_dic_env.o do_dic_no.o do_filecom.o error.o jbiki.o jbiki_b.o jishoop.o rd_jishoop.o readfile.o b_index.o jishosub.o jmt0.o mknode0.o mknode1.o mknode2.o renbn_kai.o bnsetu_kai.o daibn_kai.o jikouho.o jikouho_d.o fzk.o atojis.o get_kaiarea.o snd_rcv.o do_henkan.o do_henkan1.o do_env.o do_hindo_s.o initjserv.o hinsi_list.o sisheng.o w_string.o
|
|
53
|
|
54 SRC3= $(WNNJLIBSRC)/wnnerrmsg.c
|
|
55 OBJ3= wnnerrmsg.o
|
|
56
|
|
57 SRC4= $(WNNETCSRC)/strings.c
|
|
58 OBJ4= strings.o
|
|
59 SRC5= $(WNNETCSRC)/sstrings.c
|
|
60 OBJ5= sstrings.o
|
|
61 SRC6= $(WNNETCSRC)/bdic.c
|
|
62 OBJ6= bdic.o
|
|
63 SRC7= $(WNNETCSRC)/dic_atojis.c
|
|
64 OBJ7= dic_atojis.o
|
|
65 SRCGETHINSI= $(WNNETCSRC)/gethinsi.c
|
|
66 OBJGETHINSI= gethinsi.o
|
|
67 SRC9= $(WNNETCSRC)/revdic.c
|
|
68 OBJ9= revdic.o
|
|
69 SRC10= $(WNNETCSRC)/hindo.c
|
|
70 OBJ10= hindo.o
|
|
71 SRC11= $(WNNETCSRC)/pwd.c
|
|
72 OBJ11= pwd.o
|
|
73 SRC12= $(WNNETCSRC)/bcopy.c
|
|
74 OBJ12= bcopy.o
|
|
75 SRC13= $(WNNETCSRC)/msg.c
|
|
76 OBJ13= msg.o
|
|
77 SRC14= $(WNNETCSRC)/xutoj.c
|
|
78 OBJ14= xutoj.o
|
|
79 SRC20= $(WNNETCSRC)/getopt.c
|
|
80 OBJ20= getopt.o
|
|
81 SRC21= $(WNNETCSRC)/getopt1.c
|
|
82 OBJ21= getopt1.o
|
|
83 OBJSUPPORT = @JS_SUPPORTOBJS@
|
|
84 SRCS= $(SRC0) $(SRC1) $(SRC3) $(SRC4) $(SRC5) $(SRC6) $(SRC7) $(SRCGETHINSI) \
|
|
85 $(SRC9) $(SRC10) $(SRC11) $(SRC12) $(SRC13) $(SRC14) $(SRC20) $(SRC21)
|
|
86
|
|
87 OBJS= $(OBJ0) $(OBJ1) $(OBJ3) $(OBJ4) $(OBJ5) $(OBJ6) $(OBJ7) $(OBJGETHINSI) \
|
|
88 $(OBJ9) $(OBJ10) $(OBJ11) $(OBJ12) $(OBJ13) $(OBJ14) $(OBJSUPPORT) \
|
|
89 $(OBJ20) $(OBJ21)
|
|
90
|
|
91 all:: jserver
|
|
92
|
|
93 jserver: $(OBJS)
|
|
94 $(RM) $@
|
|
95 $(LIBTOOL) --mode=link $(CCLINK) -o $@ $(LDOPTIONS) $(OBJS) @LIBS@ $(WRAPLIB)
|
|
96
|
|
97 clean::
|
|
98 $(RM) jserver
|
|
99 $(RM) -r .libs
|
|
100 $(RM) *.lo *.la
|
|
101
|
|
102 instserver:: install
|
|
103
|
|
104 install:: jserver
|
|
105 @if [ -d $(DESTDIR)$(JWNNBINDIR) ]; then set +x; \
|
|
106 else (set -x; $(MKDIRHIER) $(DESTDIR)$(JWNNBINDIR)); fi
|
|
107 $(LIBTOOL) --mode=install $(INSTALL) $(INSTPGMFLAGS) $(INSTUIDFLAGS) $(LOCAL_INSTFLAGS) jserver $(DESTDIR)$(JWNNBINDIR)/jserver
|
|
108
|
|
109 $(OBJ0) : $(SRC0)
|
|
110 $(CC) -c $(CFLAGS) $(SERVERINITDEF) $(SOLINGERDEFS) $(srcdir)/`basename $@ .o`.c
|
|
111
|
|
112 $(OBJ3) : $(SRC3)
|
|
113 $(CC) -c $(CFLAGS) $(WNNJLIBSRC)/`basename $@ .o`.c
|
|
114
|
|
115 $(OBJ4) : $(SRC4)
|
|
116 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
117
|
|
118 $(OBJ5) : $(SRC5)
|
|
119 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
120
|
|
121 $(OBJ6) : $(SRC6)
|
|
122 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
123
|
|
124 $(OBJ7) : $(SRC7)
|
|
125 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
126
|
|
127 $(OBJGETHINSI) : $(SRCGETHINSI)
|
|
128 $(CC) -c $(CFLAGS) $(HINSIDEFINES) $(WNNETCSRC)/`basename $@ .o`.c
|
|
129
|
|
130 $(OBJ9) : $(SRC9)
|
|
131 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
132
|
|
133 $(OBJ10) : $(SRC10)
|
|
134 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
135
|
|
136 $(OBJ11) : $(SRC11)
|
|
137 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
138
|
|
139 $(OBJ12) : $(SRC12)
|
|
140 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
141
|
|
142 $(OBJ13) : $(SRC13)
|
|
143 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
144
|
|
145 $(OBJ14) : $(SRC14)
|
|
146 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
147
|
|
148 $(OBJ20) : $(SRC20) $(WNNINCLUDESRC)/getopt.h
|
|
149 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
150
|
|
151 $(OBJ21) : $(SRC21) $(WNNINCLUDESRC)/getopt.h
|
|
152 $(CC) -c $(CFLAGS) $(WNNETCSRC)/`basename $@ .o`.c
|
|
153
|
|
154 vasprintf.o : $(WNNETCSRC)/vasprintf.c
|
|
155 $(CC) -c $(CFLAGS) $?
|
|
156
|
|
157 mkdir.o : $(WNNETCSRC)/mkdir.c
|
|
158 $(CC) -c $(CFLAGS) $?
|