(lib_LTLIBRARIES): Include libm17n-gui.la and
[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 lib_LTLIBRARIES = \
23         libm17n-core.la \
24         libm17n.la \
25         libm17n-gui.la \
26         libm17n-X.la \
27         libm17n-gd.la
28
29 libm17n_core_la_SOURCES = \
30         character.h character.c \
31         chartab.h chartab.c \
32         internal.h \
33         plist.h plist.c \
34         m17n-core.h m17n-core.c \
35         m17n-misc.h \
36         mtext.h mtext.c \
37         symbol.h symbol.c \
38         textprop.h textprop.c
39
40 libm17n_core_la_LDFLAGS = @XML2_LD_FLAGS@
41
42 libm17n_la_SOURCES = \
43         charset.h charset.c \
44         coding.h coding.c \
45         database.h database.c \
46         input.h input.c \
47         language.h language.c \
48         mlocale.h locale.c \
49         m17n.h m17n.c
50 libm17n_la_LIBADD = libm17n-core.la -ldl
51
52 GUI_SOURCES = \
53         face.h face.c \
54         font.h font.c font-ft.c font-flt.c \
55         fontset.h fontset.c \
56         draw.c \
57         input-gui.c \
58         internal-gui.h \
59         m17n-gui.h m17n-gui.c
60
61 X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} -lX11 -lXt ${X_EXTRA_LIBS}
62 OPTIONAL_LD_FLAGS = \
63         @FREETYPE_LD_FLAGS@ \
64         @FRIBIDI_LD_FLAGS@ \
65         @OTF_LD_FLAGS@ \
66         @FONTCONFIG_LD_FLAGS@
67
68 libm17n_gui_la_SOURCES = ${GUI_SOURCES}
69 libm17n_gui_la_LIBADD = libm17n.la
70 libm17n_gui_la_LDFLAGS = ${X_LD_FLAGS} ${OPTIONAL_LD_FLAGS}
71
72 libm17n_X_la_SOURCES = m17n-X.h m17n-X.c
73 libm17n_X_la_LIBADD = libm17n-gui.la
74 libm17n_X_la_LDFLAGS = -module ${X_LD_FLAGS} @XFT2_LD_FLAGS@
75
76 libm17n_gd_la_SOURCES = m17n-gd.c
77 libm17n_gd_la_LIBADD = libm17n-gui.la
78 libm17n_gd_la_LDFLAGS = -module @GD_LD_FLAGS@
79
80 AM_CPPFLAGS = -DM17NDIR="\"$(datadir)/m17n\""
81
82
83 include_HEADERS = m17n-core.h m17n.h m17n-misc.h m17n-gui.h m17n-X.h
84
85 noinst_PROGRAMS = linkcore linkshell linkgui
86
87 linkcore_SOURCES = linkcore.c
88 linkcore_LDADD = libm17n-core.la
89 linkcore_LDFLAGS = -static
90
91 linkshell_SOURCES = linkshell.c
92 linkshell_LDADD = libm17n.la
93 linkshell_LDFLAGS = -static
94
95 linkgui_SOURCES = linkgui.c
96 linkgui_LDADD = libm17n-gui.la
97 linkgui_LDFLAGS = -static
98
99 SRC =   ${libm17n_core_la_SOURCES} \
100         ${libm17n_la_SOURCES} \
101         ${libm17n_gui_la_SOURCES} \
102         ${libm17n_X_la_SOURCES} \
103         ${libm17n_gd_la_SOURCES}
104
105 TAGS: ${SRC}
106         etags ${SRC}