summaryrefslogtreecommitdiff
path: root/modules/thai/Makefile.am
blob: 84d49a65253236118c50f59895b10188be22a262 (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
## Process this file with automake to create Makefile.in.

common_sources = thai-shaper.c thai-shaper.h
thai_x_sources = $(common_sources) thai-x.c 
thai_xft_sources = $(common_sources) thai-xft.c 

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)

if HAVE_XFT
if INCLUDE_THAI_XFT
XFT_MODULES=
XFT_INCLUDED=libpango-thai-xft.la
XFT_PREFIX=-DXFT_MODULE_PREFIX
else
XFT_MODULES=pango-thai-xft.la
XFT_INCLUDED=
XFT_PREFIX=
thai_xft_libadd=$(pangoxftlibs)
endif
else
XFT_MODULES=
XFT_INCLUDED=
XFT_PREFIX=
endif

if HAVE_X
if INCLUDE_THAI_X
X_MODULES=
X_INCLUDED=libpango-thai-x.la
X_PREFIX=-DX_MODULE_PREFIX
else
X_MODULES=pango-thai-x.la
X_INCLUDED=
X_PREFIX=
thai_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_thai_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_thai_x_la_LIBADD = $(thai_x_libadd)
pango_thai_x_la_SOURCES = $(thai_x_sources)

libpango_thai_x_la_SOURCES = $(thai_x_sources)

pango_thai_xft_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_thai_xft_la_LIBADD = $(thai_xft_libadd)
pango_thai_xft_la_SOURCES = $(thai_xft_sources)

libpango_thai_xft_la_SOURCES = $(thai_xft_sources)

included-modules: $(noinst_LTLIBRARIES)

.PHONY: included-modules