diff options
Diffstat (limited to 'modules/hebrew/Makefile.am')
-rw-r--r-- | modules/hebrew/Makefile.am | 119 |
1 files changed, 49 insertions, 70 deletions
diff --git a/modules/hebrew/Makefile.am b/modules/hebrew/Makefile.am index bbf346f2..8cc7fa7c 100644 --- a/modules/hebrew/Makefile.am +++ b/modules/hebrew/Makefile.am @@ -1,99 +1,78 @@ ## Process this file with automake to create Makefile.in. -common_sources = hebrew-shaper.c hebrew-shaper.h -hebrew_x_sources = $(common_sources) hebrew-x.c -hebrew_xft_sources = $(common_sources) hebrew-xft.c -hebrew_ft2_sources = $(common_sources) hebrew-ft2.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_BASIC_XFT -XFT_INCLUDED=libpango-hebrew-xft.la -XFT_MODULES= -XFT_PREFIX=-DXFT_MODULE_PREFIX +INCLUDES = \ + -DPANGO_ENABLE_ENGINE \ + -DG_DISABLE_DEPRECATED \ + $(PANGO_DEBUG_FLAGS) \ + -I$(top_srcdir) \ + -I$(top_srcdir)/pango/ \ + $(GLIB_CFLAGS) + +moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules +module_LTLIBRARIES = +noinst_LTLIBRARIES = + +common_sources = hebrew-shaper.c hebrew-shaper.h + +if HAVE_X +INCLUDES += $(X_CFLAGS) +if INCLUDE_HEBREW_X +noinst_LTLIBRARIES += libpango-hebrew-x.la +INCLUDES += -DX_MODULE_PREFIX else -XFT_INCLUDED= -XFT_MODULES=pango-hebrew-xft.la -XFT_PREFIX= -hebrew_xft_libadd=$(pangoxlibs) $(pangoxftlibs) +module_LTLIBRARIES += pango-hebrew-x.la endif -else -XFT_MODULES= -XFT_INCLUDED= -XFT_PREFIX= endif -if HAVE_X -if INCLUDE_BASIC_X -X_INCLUDED=libpango-hebrew-x.la -X_MODULES= -X_PREFIX=-DX_MODULE_PREFIX +hebrew_x_sources = $(common_sources) hebrew-x.c + +pango_hebrew_x_la_LDFLAGS = -export-dynamic -avoid-version -module +pango_hebrew_x_la_LIBADD = $(pangoxlibs) +pango_hebrew_x_la_SOURCES = $(hebrew_x_sources) +libpango_hebrew_x_la_SOURCES = $(hebrew_x_sources) + + +if HAVE_XFT +INCLUDES += $(XFT_CFLAGS) +if INCLUDE_HEBREW_XFT +noinst_LTLIBRARIES += libpango-hebrew-xft.la +INCLUDES += -DXFT_MODULE_PREFIX else -X_INCLUDED= -X_MODULES=pango-hebrew-x.la -X_PREFIX= -hebrew_x_libadd=$(pangoxlibs) +module_LTLIBRARIES += pango-hebrew-xft.la endif -else -X_INCLUDED= -X_MODULES= -X_PREFIX= endif +hebrew_xft_sources = $(common_sources) hebrew-xft.c + +pango_hebrew_xft_la_LDFLAGS = -export-dynamic -avoid-version -module +pango_hebrew_xft_la_LIBADD = $(pangoxftlibs) +pango_hebrew_xft_la_SOURCES = $(hebrew_xft_sources) +libpango_hebrew_xft_la_SOURCES = $(hebrew_xft_sources) + + if HAVE_FREETYPE -if INCLUDE_BASIC_FT2 -FT2_INCLUDED=libpango-hebrew-ft2.la -FT2_MODULES= -FT2_PREFIX=-DFT2_MODULE_PREFIX +INCLUDES += $(FREETYPE_CFLAGS) +if INCLUDE_HEBREW_FT2 +noinst_LTLIBRARIES += libpango-hebrew-ft2.la +INCLUDES += -DFT2_MODULE_PREFIX else -FT2_INCLUDED= -FT2_MODULES=pango-hebrew-ft2.la -FT2_PREFIX= -hebrew_ft2_libadd=$(pangoft2libs) +module_LTLIBRARIES += pango-hebrew-ft2.la endif -else -FT2_MODULES= -FT2_INCLUDED= -FT2_PREFIX= endif if PLATFORM_WIN32 no_undefined = -no-undefined endif -noinst_LTLIBRARIES = $(X_INCLUDED) $(FT2_INCLUDED) $(XFT_INCLUDED) -module_LTLIBRARIES = $(X_MODULES) $(FT2_MODULES) $(XFT_MODULES) -moddefine = $(X_PREFIX) $(FT2_PREFIX) $(XFT_PREFIX) -moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules - -INCLUDES = \ - -DPANGO_ENABLE_ENGINE \ - -DG_DISABLE_DEPRECATED \ - $(PANGO_DEBUG_FLAGS) \ - -I$(top_srcdir) \ - -I$(top_srcdir)/pango/ \ - $(GLIB_CFLAGS) \ - $(XFT_CFLAGS) \ - $(FREETYPE_CFLAGS) \ - $(X_CFLAGS) \ - $(moddefine) - -pango_hebrew_x_la_LDFLAGS = -export-dynamic -avoid-version -module -pango_hebrew_x_la_LIBADD = $(hebrew_x_libadd) -pango_hebrew_x_la_SOURCES = $(hebrew_x_sources) -libpango_hebrew_x_la_SOURCES = $(hebrew_x_sources) - -pango_hebrew_xft_la_LDFLAGS = -export-dynamic -avoid-version -module -pango_hebrew_xft_la_LIBADD = $(hebrew_xft_libadd) -pango_hebrew_xft_la_SOURCES = $(hebrew_xft_sources) -libpango_hebrew_xft_la_SOURCES = $(hebrew_xft_sources) +hebrew_ft2_sources = $(common_sources) hebrew-ft2.c pango_hebrew_ft2_la_LDFLAGS = -export-dynamic -avoid-version -module $(no_undefined) -pango_hebrew_ft2_la_LIBADD = $(hebrew_ft2_libadd) +pango_hebrew_ft2_la_LIBADD = $(pangoft2libs) pango_hebrew_ft2_la_SOURCES = $(hebrew_ft2_sources) libpango_hebrew_ft2_la_SOURCES = $(hebrew_ft2_sources) |