1 # Copyright (C) 2003, 2004, 2005, 2006
2 # National Institute of Advanced Industrial Science and Technology (AIST)
3 # Registration Number H15PRO112
5 # This file is part of the m17n library.
7 # The m17n library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public License
9 # as published by the Free Software Foundation; either version 2.1 of
10 # the License, or (at your option) any later version.
12 # The m17n library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with the m17n library; if not, write to the Free
19 # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
22 VINFO = -version-info @API_VERSION@
24 BASIC_BUILD_LIBS = libm17n-core.la libm17n.la
26 BUILD_LIBS = $(BASIC_BUILD_LIBS) libm17n-gui.la libm17n-X.la libm17n-gd.la
28 BUILD_LIBS = $(BASIC_BUILD_LIBS)
31 lib_LTLIBRARIES = $(BUILD_LIBS)
33 libm17n_core_la_SOURCES = \
34 character.h character.c \
38 m17n-core.h m17n-core.c \
42 textprop.h textprop.c \
43 mtext-lbrk.c mtext-wseg.c
45 libm17n_core_la_LIBADD = @XML2_LD_FLAGS@ @THAI_WORDSEG_LD_FLAGS@
46 libm17n_core_la_LDFLAGS = -export-dynamic ${VINFO}
48 libm17n_la_SOURCES = \
51 database.h database.c \
53 language.h language.c \
56 libm17n_la_LIBADD = ${top_srcdir}/src/libm17n-core.la -ldl
57 libm17n_la_LDFLAGS = -export-dynamic ${VINFO}
61 font.h font.c font-ft.c font-flt.c \
74 libm17n_gui_la_SOURCES = ${GUI_SOURCES}
75 libm17n_gui_la_LIBADD = ${OPTIONAL_LD_FLAGS} ${top_srcdir}/src/libm17n.la
76 libm17n_gui_la_LDFLAGS = -export-dynamic ${VINFO}
78 X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} @X11_LD_FLAGS@ ${X_EXTRA_LIBS}
80 libm17n_X_la_SOURCES = m17n-X.h m17n-X.c
81 libm17n_X_la_LIBADD = ${X_LD_FLAGS} @XFT2_LD_FLAGS@ ${top_srcdir}/src/libm17n-gui.la
82 libm17n_X_la_LDFLAGS = -module ${VINFO}
84 libm17n_gd_la_SOURCES = m17n-gd.c
85 libm17n_gd_la_LIBADD = @GD_LD_FLAGS@ ${top_srcdir}/src/libm17n-gui.la
86 libm17n_gd_la_LDFLAGS = -module ${VINFO}
88 AM_CPPFLAGS = -DM17NDIR="\"@M17NDIR@\""
91 include_HEADERS = m17n-core.h m17n.h m17n-misc.h
93 include_HEADERS += m17n-gui.h m17n-X.h
96 SRC = ${libm17n_core_la_SOURCES} \
97 ${libm17n_la_SOURCES} \
98 ${libm17n_gui_la_SOURCES} \
99 ${libm17n_X_la_SOURCES} \
100 ${libm17n_gd_la_SOURCES}
106 noinst_PROGRAMS = linkcore linkshell linkgui
108 linkcore_SOURCES = linkcore.c
109 linkcore_LDADD = ${top_srcdir}/src/libm17n-core.la
110 linkcore_LDFLAGS = -static
112 linkshell_SOURCES = linkshell.c
113 linkshell_LDADD = ${top_srcdir}/src/libm17n.la
114 linkshell_LDFLAGS = -static
116 linkgui_SOURCES = linkgui.c
117 linkgui_LDADD = ${top_srcdir}/src/libm17n-gui.la
118 linkgui_LDFLAGS = -static