(medit_LDFLAGS): Include X_PRE_LIBS, XLIBS,
[m17n/m17n-lib.git] / example / Makefile.am
1 # Makefile.am -- example level Makefile for the m17n library.
2 # Copyright (C) 2003, 2004
3 #   National Institute of Advanced Industrial Science and Technology (AIST)
4 #   Registration Number H15PRO112
5
6 # This file is part of the m17n library.
7
8 # The m17n library is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU Lesser General Public License
10 # as published by the Free Software Foundation; either version 2.1 of
11 # the License, or (at your option) any later version.
12
13 # The m17n library is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 # Lesser General Public License for more details.
17
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with the m17n library; if not, write to the Free
20 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 # 02111-1307, USA.
22
23 ## Process this file with Automake to create Makefile.in
24
25 bin_PROGRAMS = mconv mview mdate mdump medit
26
27 common_ldflags = ${top_srcdir}/src/libm17n-core.la ${top_srcdir}/src/libm17n.la
28 common_ldflags_X = ${top_srcdir}/src/libm17n-X.la
29
30 mdate_SOURCES = mdate.c
31 mdate_LDADD = ${common_ldflags}
32
33 mconv_SOURCES = mconv.c
34 mconv_LDADD = ${common_ldflags}
35
36 medit_SOURCES = medit.c linebreak.c
37 medit_LDADD = ${common_ldflags_X}
38 medit_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXaw -lXmu ${X_EXTRA_LIBS} @WORDCUT_LD_FLAGS@
39
40 mview_SOURCES = mview.c
41 mview_LDADD = ${common_ldflags_X}
42 mview_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXaw -lXmu ${X_EXTRA_LIBS}
43
44 mdump_SOURCES = mdump.c linebreak.c
45 mdump_LDADD = ${common_ldflags_X} @WORDCUT_LD_FLAGS@
46
47 # Input method data files.
48
49 pkgdatadir=$(datadir)/m17n
50
51 EXTRA_DIST = \
52         .gdbinit .gdb.util \
53         HELLO.utf8 HELLO.xml HELLO-ja.utf8 HELLO-ja.xml MEdit.ja
54
55 # External modules used by the above input methods.
56
57 lib_LTLIBRARIES = libmimx-ispell.la libmimx-anthy.la
58
59 libmimx_ispell_la_SOURCES = mimx-ispell.c
60 libmimx_ispell_la_LIBADD = ${common_ldflags_X}
61
62 libmimx_anthy_la_SOURCES = mimx-anthy.c
63 libmimx_anthy_la_LIBADD = ${common_ldflags}
64 libmimx_anthy_la_LDFLAGS = @ANTHY_LD_FLAGS@ 
65
66 # Special targets to test the m17n library with Purify.  They are for
67 # the maintainers only.
68
69 PURIFY=/usr/local/rational/releases/purify.sol.2002.05.00/purify
70
71 purify_medit: medit ../src/.libs/libm17n-core.so ../src/.libs/libm17n.so ../src/.libs/libm17n-X.so linebreak.c
72         ${PURIFY} gcc -g medit.o linebreak.o -lXaw -lXmu -L/usr/X11R6/lib -R/usr/X11R6/lib -lSM -lICE -lX11 -lXt -L../src/.libs -lm17n-core -lm17n -lm17n-X -ldl
73
74 purify_mdate: mdate.o ../src/.libs/libm17n.so ../src/.libs/libm17n-X.so
75         ${PURIFY} gcc -g mdate.o -lXaw -lXmu -L/usr/X11R6/lib -R/usr/X11R6/lib -lSM -lICE -lX11 -lXt -L../src/.libs -lm17n -lm17n-X -ldl
76