X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2FMakefile.am;h=2ff1f3c013e988b0345dbc8e8a0da2ad3013fc63;hb=b607922909acfc7ae96de688ed34efd19cd038ac;hp=1eb7f8adf6e6beb040f0cf0445045e1931da1d0b;hpb=ea44e2184198aba956e39ae63a4914544c9719fe;p=fontconfig.git diff --git a/src/Makefile.am b/src/Makefile.am index 1eb7f8a..2ff1f3c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -25,6 +25,8 @@ if OS_WIN32 export_symbols = -export-symbols fontconfig.def +fontconfig_def_dependency = fontconfig.def + # gcc import library install/uninstall install-libtool-import-lib: @@ -39,6 +41,8 @@ else install-libtool-import-lib: uninstall-libtool-import-lib: +fontconfig_def_dependency = + endif if MS_LIB_AVAILABLE @@ -63,21 +67,24 @@ uninstall-ms-import-lib: endif -AM_CPPFLAGS = -DPKGCACHEDIR='"${pkgcachedir}"' - INCLUDES = \ + -I$(top_srcdir) \ + -I$(top_srcdir)/src \ $(FREETYPE_CFLAGS) \ $(LIBXML2_CFLAGS) \ $(EXPAT_CFLAGS) \ $(WARN_CFLAGS) \ - -DFONTCONFIG_PATH='"$(CONFDIR)"' \ - -I$(top_srcdir) \ - -I$(top_srcdir)/src + -DFC_CACHEDIR='"$(FC_CACHEDIR)"' \ + -DFONTCONFIG_PATH='"$(CONFDIR)"' -EXTRA_DIST = fontconfig.def.in +EXTRA_DIST = makealias noinst_HEADERS=fcint.h +ALIAS_FILES = fcalias.h fcaliastail.h + +BUILT_SOURCES = $(ALIAS_FILES) + libfontconfig_la_SOURCES = \ fcatomic.c \ fcblanks.c \ @@ -96,6 +103,7 @@ libfontconfig_la_SOURCES = \ fcmatrix.c \ fcname.c \ fcpat.c \ + fcserialize.c \ fcstr.c \ fcxml.c \ ftglue.h \ @@ -106,9 +114,31 @@ lib_LTLIBRARIES = libfontconfig.la libfontconfig_la_LDFLAGS = \ -version-info @LT_VERSION_INFO@ -no-undefined $(export_symbols) -libfontconfig_la_LIBADD = $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) +libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) + +libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency) install-data-local: install-ms-import-lib install-libtool-import-lib uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib +PUBLIC_FILES = \ + $(top_srcdir)/fontconfig/fontconfig.h \ + $(top_srcdir)/fontconfig/fcfreetype.h + +fcaliastail.h: fcalias.h + +fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES) + sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" $(PUBLIC_FILES) + +CLEANFILES := $(ALIAS_FILES) + +fontconfig.def: $(PUBLIC_FILES) + echo Generating $@ + (echo EXPORTS; \ + (cat $(PUBLIC_FILES) || echo 'FcERROR ()' ) | \ + grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$$//' -e 's/^/ /' | \ + sort; \ + echo LIBRARY libfontconfig-@LT_CURRENT_MINUS_AGE@.dll; \ + echo VERSION @LT_CURRENT@.@LT_REVISION@) >$@ + @ ! grep -q FcERROR $@ || ($(RM) $@; false)