*** empty log message ***
[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 = libm17n-core.la libm17n.la libm17n-X.la
23
24 libm17n_core_la_SOURCES = \
25         character.h character.c \
26         chartab.h chartab.c \
27         internal.h \
28         plist.h plist.c \
29         m17n-core.h m17n-core.c \
30         m17n-misc.h \
31         mtext.h mtext.c \
32         symbol.h symbol.c \
33         textprop.h textprop.c
34
35 libm17n_core_la_LDFLAGS = @XML2_LD_FLAGS@
36
37 libm17n_la_SOURCES = \
38         charset.h charset.c \
39         coding.h coding.c \
40         database.h database.c \
41         input.h input.c \
42         language.h language.c \
43         mlocale.h locale.c \
44         m17n.h m17n.c
45 libm17n_la_LIBADD = libm17n-core.la
46 libm17n_la_LDFLAGS = -ldl
47
48 GUI_SOURCES = \
49         face.h face.c \
50         font.h font.c font-ft.c font-flt.c \
51         fontset.h fontset.c \
52         draw.c \
53         input-gui.c \
54         internal-gui.h \
55         m17n-gui.h m17n-gui.c
56
57 X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} -lX11 -lXt ${X_EXTRA_LIBS}
58 OPTIONAL_LD_FLAGS = @FRIBIDI_LD_FLAGS@ @FREETYPE_LD_FLAGS@ @OTF_LD_FLAGS@
59
60 libm17n_X_la_SOURCES = ${GUI_SOURCES} m17n-X.h m17n-X.c
61 libm17n_X_la_LIBADD = libm17n.la
62 libm17n_X_la_LDFLAGS = ${X_LD_FLAGS} ${OPTIONAL_LD_FLAGS}
63
64 include_HEADERS = m17n-core.h m17n.h m17n-misc.h m17n-gui.h m17n-X.h
65
66 AM_CPPFLAGS = -DM17NDIR="\"$(datadir)/m17n\""
67
68 bin_PROGRAMS = linkcore linkshell linkgui
69
70 linkcore_SOURCES = linkcore.c
71 linkcore_LDADD = libm17n-core.la
72 linkcore_LDFLAGS = -static
73
74 linkshell_SOURCES = linkshell.c
75 linkshell_LDADD = libm17n.la
76 linkshell_LDFLAGS = -static
77
78 linkgui_SOURCES = linkgui.c
79 linkgui_LDADD = libm17n-X.la
80 #linkgui_LDFLAGS = -static
81
82 # We should not install the above test programs.
83 install-binPROGRAMS:
84 uninstall-binPROGRAMS:
85
86 SRC = ${libm17n_core_la_SOURCES} ${libm17n_la_SOURCES} ${libm17n_X_la_SOURCES}
87
88 TAGS: ${SRC}
89         etags ${SRC}