## Process this file with automake to create Makefile.in. # We set GPATH here; this gives us semantics for GNU make # which are more like other make's VPATH. GPATH = $(srcdir) if HAVE_FREETYPE OPENTYPE_SUBDIR=opentype endif FRIBIDI_SUBDIR=mini-fribidi SUBDIRS = $(OPENTYPE_SUBDIR) $(FRIBIDI_SUBDIR) DIST_SUBDIRS = mini-fribidi opentype INCLUDES = \ -DG_LOG_DOMAIN=\"Pango\" \ -DPANGO_ENABLE_BACKEND \ -DPANGO_ENABLE_ENGINE \ -DSYSCONFDIR=\"$(sysconfdir)\" \ -DLIBDIR=\"$(libdir)\" \ -DMODULE_VERSION=\"$(PANGO_MODULE_VERSION)\" \ -I$(top_srcdir) \ $(PANGO_DEBUG_FLAGS) \ $(GLIB_CFLAGS) \ $(XFT_CFLAGS) \ $(CAIRO_CFLAGS) \ $(FREETYPE_CFLAGS) \ $(X_CFLAGS) BUILT_SOURCES = pango-enum-types.h pango-enum-types.c pangoincludedir=$(includedir)/pango-1.0/pango if OS_WIN32 else libm = -lm endif # ------------------- libpango ------------------- lib_LTLIBRARIES = libpango-1.0.la libpango_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) libpango_1_0_la_LIBADD = $(GLIB_LIBS) $(libm) libpango_1_0_la_DEPENDENCIES = libpango_1_0_la_LIBADD += mini-fribidi/libmini-fribidi.la libpango_1_0_la_DEPENDENCIES += mini-fribidi/libmini-fribidi.la if OS_WIN32 libpango_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pango.def -Wl,pango-win32-res.o libpango_1_0_la_DEPENDENCIES += pango-win32-res.o pango.def endif pango-win32-res.o: pango.rc $(WINDRES) $< $@ libpango_1_0_la_SOURCES = \ break.c \ ellipsize.c \ fonts.c \ glyphstring.c \ mapping.c \ modules.c \ pango-attributes.c \ pango-color.c \ pango-color-table.h \ pango-context.c \ pango-coverage.c \ pango-engine.c \ pango-engine-private.h \ pango-fontmap.c \ pango-fontset.c \ pango-glyph-item.c \ pango-glyph-item-private.h \ pango-impl-utils.h \ pango-item.c \ pango-layout.c \ pango-layout-private.h \ pango-markup.c \ pango-renderer.c \ pango-script.c \ pango-script-lang-table.h \ pango-script-table.h \ pango-tabs.c \ pango-utils.c \ reorder-items.c \ shape.c \ pango-enum-types.c pango_headers = \ pango.h \ pango-attributes.h \ pango-break.h \ pango-context.h \ pango-coverage.h \ pango-engine.h \ pango-font.h \ pango-fontmap.h \ pango-fontset.h \ pango-glyph.h \ pango-glyph-item.h \ pango-item.h \ pango-layout.h \ pango-modules.h \ pango-renderer.h \ pango-script.h \ pango-tabs.h \ pango-types.h \ pango-utils.h \ pangofc-font.h \ pangofc-fontmap.h pangoinclude_HEADERS = \ $(pango_headers) \ pango-enum-types.h pango-enum-types.h: s-enum-types-h @true s-enum-types-h: @REBUILD@ $(pango_headers) Makefile ( cd $(srcdir) && glib-mkenums \ --fhead "#ifndef __PANGO_ENUM_TYPES_H__\n#define __PANGO_ENUM_TYPES_H__\n\n#include \n\nG_BEGIN_DECLS\n" \ --fprod "/* enumerations from \"@filename@\" */\n" \ --vhead "GType @enum_name@_get_type (void);\n#define PANGO_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ --ftail "G_END_DECLS\n\n#endif /* __PANGO_ENUM_TYPES_H__ */" \ $(pango_headers) ) > tmp-pango-enum-types.h \ && (cmp -s tmp-pango-enum-types.h pango-enum-types.h || cp tmp-pango-enum-types.h pango-enum-types.h ) \ && rm -f tmp-pango-enum-types.h \ && echo timestamp > $(@F) pango-enum-types.c: s-enum-types-c @true s-enum-types-c: @REBUILD@ $(pango_headers) Makefile ( cd $(srcdir) && glib-mkenums \ --fhead "#include " \ --fprod "\n/* enumerations from \"@filename@\" */" \ --vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (g_intern_static_string (\"@EnumName@\"), values);\n }\n return etype;\n}\n" \ $(pango_headers) ) > tmp-pango-enum-types.c \ && (cmp -s tmp-pango-enum-types.c pango-enum-types.c || cp tmp-pango-enum-types.c pango-enum-types.c ) \ && rm -f tmp-pango-enum-types.c \ && echo timestamp > $(@F) # ------------------- libpangox ------------------- if HAVE_X pangoinclude_HEADERS += pangox.h lib_LTLIBRARIES += libpangox-1.0.la aliasdir = $(sysconfdir)/pango alias_DATA = pangox.aliases endif libpangox_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) libpangox_1_0_la_LIBADD = \ libpango-$(PANGO_API_VERSION).la \ $(INCLUDED_X_MODULES) \ $(GLIB_LIBS) \ $(X_LIBS) \ $(X_EXTRA_LIBS) libpangox_1_0_la_DEPENDENCIES = \ libpango-$(PANGO_API_VERSION).la \ $(INCLUDED_X_MODULES) libpangox_1_0_la_SOURCES = \ modules.h \ module-defs-x.c \ pangox.c \ pangox-private.h \ pangox-fontcache.c \ pangox-fontmap.c # ------------------- libpangoft2 ------------------- if HAVE_FREETYPE pangoinclude_HEADERS += pangoft2.h pango-ot.h pangofc-decoder.h lib_LTLIBRARIES += libpangoft2-1.0.la endif libpangoft2_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) libpangoft2_1_0_la_LIBADD = \ opentype/libmini-harfbuzz.la \ libpango-$(PANGO_API_VERSION).la \ $(INCLUDED_FC_MODULES) \ $(GLIB_LIBS) \ $(FREETYPE_LIBS) \ $(libm) libpangoft2_1_0_la_DEPENDENCIES = \ opentype/libmini-harfbuzz.la \ libpango-$(PANGO_API_VERSION).la \ $(INCLUDED_FC_MODULES) libpangoft2_1_0_la_SOURCES = \ modules.h \ module-defs-fc.c \ pangofc-font.c \ pangofc-fontmap.c \ pangofc-decoder.c \ pangofc-private.h \ pangoft2.h \ pangoft2.c \ pangoft2-private.h \ pangoft2-fontmap.c \ pangoft2-render.c \ pango-ot-private.h \ pango-ot-buffer.c \ pango-ot-info.c \ pango-ot-ruleset.c if OS_WIN32 libpangoft2_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangoft2.def -Wl,pangoft2-win32-res.o libpangoft2_1_0_la_DEPENDENCIES += pangoft2-win32-res.o pangoft2.def endif pangoft2-win32-res.o: pangoft2.rc $(WINDRES) $< $@ # ------------------- libpangoxft ------------------- if HAVE_XFT pangoinclude_HEADERS += pangoxft.h pangoxft-render.h pango-ot.h lib_LTLIBRARIES += libpangoxft-1.0.la endif libpangoxft_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) libpangoxft_1_0_la_LIBADD = \ libpangoft2-$(PANGO_API_VERSION).la \ libpango-$(PANGO_API_VERSION).la \ $(GLIB_LIBS) \ $(XFT_LIBS) \ $(libm) libpangoxft_1_0_la_DEPENDENCIES = \ libpangoft2-$(PANGO_API_VERSION).la \ libpango-$(PANGO_API_VERSION).la libpangoxft_1_0_la_SOURCES = \ pangoxft-font.c \ pangoxft-fontmap.c \ pangoxft-private.h \ pangoxft-render.c # ------------------- libpangocairo ------------------- if HAVE_CAIRO pangoinclude_HEADERS += pangocairo.h lib_LTLIBRARIES += libpangocairo-1.0.la endif libpangocairo_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) libpangocairo_1_0_la_LIBADD = \ libpango-$(PANGO_API_VERSION).la \ $(GLIB_LIBS) \ $(CAIRO_LIBS) libpangocairo_1_0_la_DEPENDENCIES = \ libpango-$(PANGO_API_VERSION).la libpangocairo_1_0_la_SOURCES = \ pangocairo-font.c \ pangocairo-fontmap.c \ pangocairo-render.c \ pangocairo-private.h if HAVE_CAIRO_WIN32 libpangocairo_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangocairo.def libpangocairo_1_0_la_DEPENDENCIES += pangocairo.def libpangocairo_1_0_la_LIBADD += libpangowin32-$(PANGO_API_VERSION).la $(WIN32_LIBS) libpangocairo_1_0_la_DEPENDENCIES += libpangowin32-$(PANGO_API_VERSION).la libpangocairo_1_0_la_SOURCES += \ pangocairo-win32font.c \ pangocairo-win32fontmap.c \ pangocairo-win32.h endif if HAVE_CAIRO_FREETYPE libpangocairo_1_0_la_LIBADD += libpangoft2-$(PANGO_API_VERSION).la $(FREETYPE_LIBS) libpangocairo_1_0_la_DEPENDENCIES += libpangoft2-$(PANGO_API_VERSION).la libpangocairo_1_0_la_SOURCES += \ pangocairo-fcfont.c \ pangocairo-fcfontmap.c \ pangocairo-fc.h endif if HAVE_CAIRO_ATSUI libpangocairo_1_0_la_SOURCES += \ modules.h \ module-defs-atsui.c \ pangoatsui.h \ pangoatsui.c \ pangoatsui-fontmap.c \ pangocairo-atsui.h \ pangocairo-atsuifont.c \ pangocairo-atsuifont.h \ pangocairo-atsuifontmap.c libpangocairo_1_0_la_CFLAGS = -xobjective-c endif # ------------------- libpangowin32 ------------------- if HAVE_WIN32 pangoinclude_HEADERS += pangowin32.h lib_LTLIBRARIES += libpangowin32-1.0.la endif libpangowin32_1_0_la_LDFLAGS = $(LIBRARY_LIBTOOL_OPTIONS) libpangowin32_1_0_la_LIBADD = \ libpango-$(PANGO_API_VERSION).la \ $(INCLUDED_WIN32_MODULES) \ $(GLIB_LIBS) \ $(WIN32_LIBS) libpangowin32_1_0_la_DEPENDENCIES = \ libpango-$(PANGO_API_VERSION).la \ $(INCLUDED_WIN32_MODULES) libpangowin32_1_0_la_SOURCES = \ modules.h \ module-defs-win32.c \ pangowin32.h \ pangowin32.c \ pangowin32-private.h \ pangowin32-fontcache.c \ pangowin32-fontmap.c if OS_WIN32 libpangowin32_1_0_la_LDFLAGS += -export-symbols $(srcdir)/pangowin32.def -Wl,pangowin32-win32-res.o libpangowin32_1_0_la_DEPENDENCIES += pangowin32-win32-res.o pangowin32.def endif pangowin32-win32-res.o: pangowin32.rc $(WINDRES) $< $@ # ------------------- win32 build stuff ------------------- if OS_WIN32 install-def-files: $(INSTALL) $(srcdir)/pango.def $(DESTDIR)$(libdir)/pango-$(PANGO_API_VERSION).def if HAVE_FREETYPE $(INSTALL) $(srcdir)/pangoft2.def $(DESTDIR)$(libdir)/pangoft2-$(PANGO_API_VERSION).def endif $(INSTALL) $(srcdir)/pangowin32.def $(DESTDIR)$(libdir)/pangowin32-$(PANGO_API_VERSION).def $(INSTALL) $(srcdir)/pangocairo.def $(DESTDIR)$(libdir)/pangocairo-$(PANGO_API_VERSION).def uninstall-def-files: -rm $(DESTDIR)$(libdir)/pango$(PANGO_API_VERSION).def if HAVE_FREETYPE -rm $(DESTDIR)$(libdir)/pangoft2-$(PANGO_API_VERSION).def endif -rm $(DESTDIR)$(libdir)/pangowin32-$(PANGO_API_VERSION).def -rm $(DESTDIR)$(libdir)/pangocairo-$(PANGO_API_VERSION).def else install-def-files: uninstall-def-files: endif if MS_LIB_AVAILABLE noinst_DATA = pango-$(PANGO_API_VERSION).lib pangoft2-$(PANGO_API_VERSION).lib pangowin32-$(PANGO_API_VERSION).lib pangocairo-$(PANGO_API_VERSION).lib install-ms-lib: pango-$(PANGO_API_VERSION).lib pangoft2-$(PANGO_API_VERSION).lib pangowin32-$(PANGO_API_VERSION).lib pangocairo-$(PANGO_API_VERSION).lib $(INSTALL) pango-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) if HAVE_FREETYPE $(INSTALL) pangoft2-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) endif $(INSTALL) pangowin32-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) $(INSTALL) pangocairo-$(PANGO_API_VERSION).lib $(DESTDIR)$(libdir) uninstall-ms-lib: -rm $(DESTDIR)$(libdir)/pango-$(PANGO_API_VERSION).lib -rm $(DESTDIR)$(libdir)/pangoft2-$(PANGO_API_VERSION).lib -rm $(DESTDIR)$(libdir)/pangowin32-$(PANGO_API_VERSION).lib -rm $(DESTDIR)$(libdir)/pangocairo-$(PANGO_API_VERSION).lib else install-ms-lib: uninstall-ms-lib: endif pango-$(PANGO_API_VERSION).lib: libpango-$(PANGO_API_VERSION).la $(srcdir)/pango.def lib -name:libpango-$(PANGO_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pango.def -out:$@ pangoft2-$(PANGO_API_VERSION).lib: libpangoft2-$(PANGO_API_VERSION).la $(srcdir)/pangoft2.def lib -name:libpangoft2-$(PANGO_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pangoft2.def -out:$@ pangowin32-$(PANGO_API_VERSION).lib: libpangowin32-$(PANGO_API_VERSION).la $(srcdir)/pangowin32.def lib -name:libpangowin32-$(PANGO_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pangowin32.def -out:$@ pangocairo-$(PANGO_API_VERSION).lib: libpangocairo-$(PANGO_API_VERSION).la $(srcdir)/pangocairo.def lib -name:libpangocairo-$(PANGO_API_VERSION)-$(LT_CURRENT_MINUS_AGE).dll -def:$(srcdir)/pangocairo.def -out:$@ # ------------------- pango-querymodules ------------------- bin_PROGRAMS = pango-querymodules # # As a temporary hack, we pull in libpangox here so that we can link # pango_querymodules_SOURCES = \ querymodules.c pango_querymodules_LDADD = if HAVE_X pango_querymodules_LDADD += libpangox-$(PANGO_API_VERSION).la endif if HAVE_XFT pango_querymodules_LDADD += libpangoxft-$(PANGO_API_VERSION).la endif if HAVE_FREETYPE pango_querymodules_LDADD += libpangoft2-$(PANGO_API_VERSION).la endif if HAVE_WIN32 pango_querymodules_LDADD += libpangowin32-$(PANGO_API_VERSION).la endif pango_querymodules_LDADD += libpango-$(PANGO_API_VERSION).la $(GLIB_LIBS) EXTRA_DIST = \ pango-enum-types.h \ module-defs.h \ module-defs-fc.c.win32 \ module-defs-win32.c.win32 \ pango.def \ pangocairo.def \ pangowin32.def \ pangoft2.def \ makefile.msc \ pango.rc \ pango.rc.in \ pangox.aliases \ pangoft2.rc \ pangoft2.rc.in \ pangowin32.rc \ pangowin32.rc.in \ testfonts.c if HAVE_INCLUDED_MODULES included-modules: @cd $(top_builddir)/modules && $(MAKE) $(AM_MAKEFLAGS) included-modules $(INCLUDED_X_MODULES) $(INCLUDED_FC_MODULES) $(INCLUDED_WIN32_MODULES): included-modules @true .PHONY: included-modules endif module-defs.h: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status pango/$@ module-defs-x.c: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status pango/$@ module-defs-fc.c: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status pango/$@ module-defs-win32.c: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status pango/$@ module-defs-atsui.c: $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status pango/$@ CLEANFILES = \ pango-enum-types.h \ s-enum-types-h \ pango-enum-types.c \ s-enum-types-c DISTCLEANFILES = \ module-defs.h \ module-defs-x.c \ module-defs-fc.c \ module-defs-win32.c \ module-defs-atsui.c install-data-local: install-ms-lib install-def-files install-exec-hook: if DISABLE_EXPLICIT_DEPS -for i in libpangoft2-$(PANGO_API_VERSION).la libpangoxft-$(PANGO_API_VERSION).la libpangox-$(PANGO_API_VERSION).la libpangowin32-$(PANGO_API_VERSION).la; do \ test -f $(DESTDIR)$(libdir)/$$i && $(SHELL) $(top_srcdir)/sanitize-la.sh $(DESTDIR)$(libdir)/$$i ; \ done endif uninstall-local: uninstall-ms-lib uninstall-def-files