summaryrefslogtreecommitdiff
path: root/modules/hangul/Makefile.am
blob: 37d8e04a2e8c38d49fe51a004e6930fdd2eea86d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
## Process this file with automake to create Makefile.in.

pangolibs = $(top_builddir)/pango/libpango-$(PANGO_API_VERSION).la $(FRIBIDI_LIBS) $(GLIB_LIBS)
pangoxlibs = $(top_builddir)/pango/libpangox-$(PANGO_API_VERSION).la $(X_LIBS) $(pangolibs)
pangoxftlibs = $(top_builddir)/pango/libpangoxft-$(PANGO_API_VERSION).la $(XFT_LIBS) $(pangolibs)
pangoft2libs = $(top_builddir)/pango/libpangoft2-$(PANGO_API_VERSION).la $(FREETYPE_LIBS) $(pangolibs)

x_sources = hangul-x.c hangul-defs.h
xft_sources = hangul-xft.c hangul-defs.h

if HAVE_XFT
if INCLUDE_HANGUL_XFT
XFT_INCLUDED=libpango-hangul-xft.la
XFT_MODULES=
XFT_PREFIX=-DXFT_MODULE_PREFIX
else
XFT_MODULES=pango-hangul-xft.la
XFT_INCLUDED=
XFT_PREFIX=
hangul_xft_libadd=$(pangoxftlibs)
endif
else
XFT_MODULES=
XFT_INCLUDED=
XFT_PREFIX=
endif

if HAVE_X
if INCLUDE_HANGUL_X
X_MODULES=
X_INCLUDED=libpango-hangul-x.la
X_PREFIX=-DX_MODULE_PREFIX
else
X_MODULES=pango-hangul-x.la
X_INCLUDED=
X_PREFIX=
hangul_x_libadd=$(pangoxlibs)
endif
else
X_MODULES=
X_INCLUDED=
X_PREFIX=
endif

noinst_LTLIBRARIES = $(X_INCLUDED) $(XFT_INCLUDED)
module_LTLIBRARIES = $(X_MODULES) $(XFT_MODULES)
moddefine = $(X_PREFIX) $(XFT_PREFIX)
moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules

INCLUDES = 				\
	-DPANGO_ENABLE_ENGINE		\
	-DG_DISABLE_DEPRECATED		\
	-I$(top_srcdir)			\
	-I$(top_srcdir)/pango/		\
	$(moddefine)			\
	$(GLIB_CFLAGS)			\
	$(XFT_CFLAGS)			\
	$(FREETYPE_CFLAGS)		\
	$(X_CFLAGS)

pango_hangul_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_hangul_x_la_SOURCES = $(x_sources)
pango_hangul_x_la_LIBADD = $(hangul_x_libadd)

libpango_hangul_x_la_SOURCES = $(x_sources)

pango_hangul_xft_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_hangul_xft_la_LIBADD = $(hangul_xft_libadd)
pango_hangul_xft_la_SOURCES = $(xft_sources)

libpango_hangul_xft_la_SOURCES = $(xft_sources)

EXTRA_DIST =			\
	tables-ksc5601.i	\
	tables-johabfont.i	\
	tables-jamos.i

included-modules: $(noinst_LTLIBRARIES)

.PHONY: included-modules