-## Process this file with automake to produce Makefile.in
+# Process this file with automake to produce Makefile.in
-INCLUDES = \
- -I $(srcdir) \
- $(FREETYPE_CFLAGS) \
- $(GLIB_CFLAGS)
-CXX = gcc $(GCCOPTS) -fno-rtti -fno-exceptions -Wabi -Wpadded -Wcast-align
+NULL =
-noinst_LTLIBRARIES = libharfbuzz-1.la
+# The following warning options are useful for debugging: -Wpadded -Wcast-align
+#AM_CXXFLAGS =
-MAINSOURCES = \
- $(INCLUDEDSOURCES) \
- hb-ot-layout.cc
-# harfbuzz.c
+lib_LTLIBRARIES = libharfbuzz.la
-# included from harfbuzz.c
-INCLUDEDSOURCES = \
- harfbuzz-buffer.c \
- harfbuzz-gpos.c \
- harfbuzz-gsub.c \
- harfbuzz-impl.c \
- harfbuzz-open.c \
- harfbuzz-stream.c
+HBCFLAGS =
+HBLIBS =
+HBSOURCES = \
+ hb-blob.c \
+ hb-blob-private.h \
+ hb-buffer.cc \
+ hb-buffer-private.hh \
+ hb-common.c \
+ hb-font.cc \
+ hb-font-private.hh \
+ hb-object-private.h \
+ hb-open-file-private.hh \
+ hb-open-type-private.hh \
+ hb-language.c \
+ hb-ot-head-private.hh \
+ hb-private.h \
+ hb-shape.cc \
+ hb-unicode.c \
+ hb-unicode-private.h \
+ $(NULL)
+HBHEADERS = \
+ hb.h \
+ hb-blob.h \
+ hb-buffer.h \
+ hb-common.h \
+ hb-font.h \
+ hb-language.h \
+ hb-shape.h \
+ hb-unicode.h \
+ $(NULL)
-PUBLICHEADERS = \
- harfbuzz.h \
- harfbuzz-global.h \
- harfbuzz-buffer.h \
- harfbuzz-gpos.h \
- harfbuzz-gsub.h \
- harfbuzz-open.h
+HBSOURCES += \
+ hb-ot-layout.cc \
+ hb-ot-layout-common-private.hh \
+ hb-ot-layout-gdef-private.hh \
+ hb-ot-layout-gpos-private.hh \
+ hb-ot-layout-gsubgpos-private.hh \
+ hb-ot-layout-gsub-private.hh \
+ hb-ot-layout-private.hh \
+ hb-ot-shape.cc \
+ hb-ot-tag.c \
+ $(NULL)
+HBHEADERS += \
+ hb-ot.h \
+ hb-ot-layout.h \
+ hb-ot-shape.h \
+ hb-ot-tag.h \
+ $(NULL)
-PRIVATEHEADERS = \
- harfbuzz-impl.h \
- harfbuzz-buffer-private.h \
- harfbuzz-gpos-private.h \
- harfbuzz-gsub-private.h \
- harfbuzz-open-private.h \
- harfbuzz-stream-private.h
+if HAVE_GLIB
+HBCFLAGS += $(GLIB_CFLAGS)
+HBLIBS += $(GLIB_LIBS)
+HBSOURCES += \
+ hb-glib.c \
+ $(NULL)
+HBHEADERS += \
+ hb-glib.h \
+ $(NULL)
+endif
-libharfbuzz_1_la_SOURCES = \
- $(MAINSOURCES) \
- $(PUBLICHEADERS) \
- $(PRIVATEHEADERS)
+if HAVE_ICU
+HBCFLAGS += $(ICU_CFLAGS)
+HBLIBS += $(ICU_LIBS)
+HBSOURCES += \
+ hb-icu.c \
+ $(NULL)
+HBHEADERS += \
+ hb-icu.h \
+ $(NULL)
+endif
-libharfbuzz_1_la_LIBADD = \
- $(FREETYPE_LIBS)
+if HAVE_FREETYPE
+HBCFLAGS += $(FREETYPE_CFLAGS)
+HBLIBS += $(FREETYPE_LIBS)
+HBSOURCES += \
+ hb-ft.cc \
+ $(NULL)
+HBHEADERS += \
+ hb-ft.h \
+ $(NULL)
+endif
-noinst_PROGRAMS = harfbuzz-dump main
+if HAVE_GRAPHITE
+HBCFLAGS += $(GRAPHITE_CFLAGS)
+HBLIBS += $(GRAPHITE_LIBS)
+HBSOURCES += \
+ hb-graphite.cc \
+ $(NULL)
+HBHEADERS += \
+ hb-graphite.h \
+ $(NULL)
+endif
-harfbuzz_dump_SOURCES = \
- harfbuzz-dump.c \
- harfbuzz-dump.h \
- harfbuzz-dump-main.c
+CXXLINK = $(LINK)
+libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS)
+libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
+libharfbuzz_la_LIBADD = $(HBLIBS)
+pkginclude_HEADERS = $(HBHEADERS)
-harfbuzz_dump_LDADD = \
- $(libharfbuzz_1_la_LIBADD) \
- libharfbuzz-1.la
+noinst_PROGRAMS = main
-main_SOURCES = \
- main.cc
-main_LDADD = \
- $(GLIB_LIBS)
+main_SOURCES = main.cc
+main_CPPFLAGS = $(HBCFLAGS)
+main_LDADD = libharfbuzz.la $(HBLIBS)
-EXTRA_DIST = \
- README \
- COPYING \
- $(INCLUDEDSOURCES)
+TESTS = \
+ check-header-guards.sh \
+ check-internal-symbols.sh \
+ $(NULL)
+
+if HAVE_ICU
+else
+if HAVE_GRAPHITE
+else
+TESTS += check-libstdc++.sh
+endif
+endif
-include $(top_srcdir)/git.mk