summaryrefslogtreecommitdiff
path: root/modules/indic/Makefile.am
blob: 0afe6ba9c844aa6102478d3df35afd5e8a42b33d (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
## Process this file with automake to create Makefile.in.

sources =		 	\
	myanmar-x.c             \
	gurmukhi-x.c            \
	bengali-x.c             \
	gujarati-x.c            \
	devanagari-x.c		\
	pango-indic-script.h

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_X

if INCLUDE_MYANMAR_X
myanmar_x_noinst=libpango-myanmar-x.la
myanmar_x_cflags=-DMYANMAR_X_MODULE_PREFIX
else
myanmar_x_inst=pango-myanmar-x.la
myanmar_x_libadd=$(pangoxlibs)
endif

if INCLUDE_GURMUKHI_X
gurmukhi_x_noinst=libpango-gurmukhi-x.la
gurmukhi_x_cflags=-DGURMUKHI_X_MODULE_PREFIX
else
gurmukhi_x_inst=pango-gurmukhi-x.la
gurmukhi_x_libadd=$(pangoxlibs)
endif

if INCLUDE_BENGALI_X
bengali_x_noinst=libpango-bengali-x.la
bengali_x_cflags=-DBENGALI_X_MODULE_PREFIX
else
bengali_x_inst=pango-bengali-x.la
bengali_x_libadd=$(pangoxlibs)
endif

if INCLUDE_DEVANAGARI_X
devanagari_x_noinst=libpango-devanagari-x.la
devanagari_x_cflags=-DDEVANAGARI_X_MODULE_PREFIX
else
devanagari_x_inst=pango-devanagari-x.la
devanagari_x_libadd=$(pangoxlibs)
endif

if INCLUDE_GUJARATI_X
gujarati_x_noinst=libpango-gujarati-x.la
gujarati_x_cflags=-DGUJARATI_X_MODULE_PREFIX
else
gujarati_x_inst=pango-gujarati-x.la
gujarati_x_libadd=$(pangoxlibs)
endif

noinst_LTLIBRARIES = $(myanmar_x_noinst) $(gurmukhi_x_noinst) $(bengali_x_noinst) $(devanagari_x_noinst) $(gujarati_x_noinst)

moduledir = $(libdir)/pango/modules
module_LTLIBRARIES = $(myanmar_x_inst) $(gurmukhi_x_inst) $(bengali_x_inst) $(devanagari_x_inst) $(gujarati_x_inst)

endif

INCLUDES = -DPANGO_ENABLE_ENGINE -DG_DISABLE_DEPRECATED -I$(top_srcdir) -I$(top_srcdir)/pango/ $(X_CFLAGS) $(myanmar_x_cflags) $(gurmukhi_x_cflags) $(bengali_x_cflags) $(devanagari_x_cflags) $(gujarati_x_cflags)

EXTRA_DIST = \
	pango-indic-script.h

pango_devanagari_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_devanagari_x_la_LIBADD = $(devanagari_x_libadd)
if INCLUDE_DEVANAGARI_X
libpango_devanagari_x_la_SOURCES = devanagari-x.c
else
pango_devanagari_x_la_SOURCES = devanagari-x.c
endif

pango_myanmar_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_myanmar_x_la_LIBADD = $(myanmar_x_libadd)
if INCLUDE_MYANMAR_X
libpango_myanmar_x_la_SOURCES = myanmar-x.c
else
pango_myanmar_x_la_SOURCES = myanmar-x.c
endif

pango_gurmukhi_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_gurmukhi_x_la_LIBADD = $(gurmukhi_x_libadd)
if INCLUDE_GURMUKHI_X
libpango_gurmukhi_x_la_SOURCES = gurmukhi-x.c
else
pango_gurmukhi_x_la_SOURCES = gurmukhi-x.c
endif

pango_bengali_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_bengali_x_la_LIBADD = $(bengali_x_libadd)
if INCLUDE_BENGALI_X
libpango_bengali_x_la_SOURCES = bengali-x.c
else
pango_bengali_x_la_SOURCES = bengali-x.c
endif

pango_gujarati_x_la_LDFLAGS = -export-dynamic -avoid-version -module
pango_gujarati_x_la_LIBADD = $(gujarati_x_libadd)
if INCLUDE_GUJARATI_X
libpango_gujarati_x_la_SOURCES = gujarati-x.c
else
pango_gujarati_x_la_SOURCES = gujarati-x.c
endif

included-modules: $(noinst_LTLIBRARIES)

.PHONY: included-modules