(libm17n_core_la_LIBADD): Add THAI_WORDSEG_LD_FLAGS,
[m17n/m17n-lib.git] / src / Makefile.am
1 # Copyright (C) 2003, 2004
2 #   National Institute of Advanced Industrial Science and Technology (AIST)
3 #   Registration Number H15PRO112
4
5 # This file is part of the m17n library.
6
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.
11
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.
16
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
20 # 02111-1307, USA.
21
22 VINFO = -version-info @API_VERSION@
23
24 lib_LTLIBRARIES = \
25         libm17n-core.la \
26         libm17n.la \
27         libm17n-gui.la \
28         libm17n-X.la \
29         libm17n-gd.la
30
31 libm17n_core_la_SOURCES = \
32         character.h character.c \
33         chartab.h chartab.c \
34         internal.h \
35         plist.h plist.c \
36         m17n-core.h m17n-core.c \
37         m17n-misc.h \
38         mtext.h mtext.c \
39         symbol.h symbol.c \
40         textprop.h textprop.c \
41         word-thai.h word-thai.c
42
43 libm17n_core_la_LIBADD = @XML2_LD_FLAGS@ @THAI_WORDSEG_LD_FLAGS@
44 libm17n_core_la_LDFLAGS = -export-dynamic ${VINFO}
45
46 libm17n_la_SOURCES = \
47         charset.h charset.c \
48         coding.h coding.c \
49         database.h database.c \
50         input.h input.c \
51         language.h language.c \
52         mlocale.h locale.c \
53         m17n.h m17n.c
54 libm17n_la_LIBADD = ${top_srcdir}/src/libm17n-core.la -ldl
55 libm17n_la_LDFLAGS = -export-dynamic ${VINFO}
56
57 GUI_SOURCES = \
58         face.h face.c \
59         font.h font.c font-ft.c font-flt.c \
60         fontset.h fontset.c \
61         draw.c \
62         input-gui.c \
63         internal-gui.h \
64         m17n-gui.h m17n-gui.c
65
66 OPTIONAL_LD_FLAGS = \
67         @FREETYPE_LD_FLAGS@ \
68         @FRIBIDI_LD_FLAGS@ \
69         @OTF_LD_FLAGS@ \
70         @FONTCONFIG_LD_FLAGS@
71
72 libm17n_gui_la_SOURCES = ${GUI_SOURCES}
73 libm17n_gui_la_LIBADD = ${OPTIONAL_LD_FLAGS} ${top_srcdir}/src/libm17n.la
74 libm17n_gui_la_LDFLAGS = -export-dynamic ${VINFO}
75
76 X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXt -lX11 ${X_EXTRA_LIBS}
77
78 libm17n_X_la_SOURCES = m17n-X.h m17n-X.c
79 libm17n_X_la_LIBADD = ${X_LD_FLAGS} @XFT2_LD_FLAGS@ ${top_srcdir}/src/libm17n-gui.la
80 libm17n_X_la_LDFLAGS = -module ${VINFO}
81
82 libm17n_gd_la_SOURCES = m17n-gd.c
83 libm17n_gd_la_LIBADD = @GD_LD_FLAGS@ ${top_srcdir}/src/libm17n-gui.la
84 libm17n_gd_la_LDFLAGS = -module ${VINFO}
85
86 AM_CPPFLAGS = -DM17NDIR="\"@M17NDIR@\""
87
88
89 include_HEADERS = m17n-core.h m17n.h m17n-misc.h m17n-gui.h m17n-X.h
90
91 noinst_PROGRAMS = linkcore linkshell linkgui
92
93 linkcore_SOURCES = linkcore.c
94 linkcore_LDADD = ${top_srcdir}/src/libm17n-core.la
95 linkcore_LDFLAGS = -static
96
97 linkshell_SOURCES = linkshell.c
98 linkshell_LDADD = ${top_srcdir}/src/libm17n.la
99 linkshell_LDFLAGS = -static
100
101 linkgui_SOURCES = linkgui.c
102 linkgui_LDADD = ${top_srcdir}/src/libm17n-gui.la
103 linkgui_LDFLAGS = -static
104
105 SRC =   ${libm17n_core_la_SOURCES} \
106         ${libm17n_la_SOURCES} \
107         ${libm17n_gui_la_SOURCES} \
108         ${libm17n_X_la_SOURCES} \
109         ${libm17n_gd_la_SOURCES}
110
111 TAGS: ${SRC}
112         etags ${SRC}