Blame src/Makefile.am

Packit 352660
#
Packit 352660
# fontconfig/src/Makefile.am
Packit 352660
#
Packit 352660
# Copyright © 2003 Keith Packard
Packit 352660
#
Packit 352660
# Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
# documentation for any purpose is hereby granted without fee, provided that
Packit 352660
# the above copyright notice appear in all copies and that both that
Packit 352660
# copyright notice and this permission notice appear in supporting
Packit 352660
# documentation, and that the name of the author(s) not be used in
Packit 352660
# advertising or publicity pertaining to distribution of the software without
Packit 352660
# specific, written prior permission.  The authors make no
Packit 352660
# representations about the suitability of this software for any purpose.  It
Packit 352660
# is provided "as is" without express or implied warranty.
Packit 352660
#
Packit 352660
# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 352660
# PERFORMANCE OF THIS SOFTWARE.
Packit 352660
Packit 352660
EXTRA_DIST =
Packit 352660
Packit 352660
if OS_WIN32
Packit 352660
Packit 352660
export_symbols = -export-symbols fontconfig.def
Packit 352660
Packit 352660
fontconfig_def_dependency = fontconfig.def
Packit 352660
Packit 352660
# gcc import library install/uninstall
Packit 352660
Packit 352660
install-libtool-import-lib: libfontconfig.la
Packit 352660
	$(MKDIR_P) $(DESTDIR)$(libdir)
Packit 352660
	$(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)/libfontconfig.dll.a
Packit 352660
	$(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
Packit 352660
Packit 352660
uninstall-libtool-import-lib:
Packit 352660
	$(RM) $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def
Packit 352660
Packit 352660
else
Packit 352660
Packit 352660
install-libtool-import-lib:
Packit 352660
uninstall-libtool-import-lib:
Packit 352660
Packit 352660
fontconfig_def_dependency = 
Packit 352660
Packit 352660
endif
Packit 352660
Packit 352660
if MS_LIB_AVAILABLE
Packit 352660
Packit 352660
# Microsoft import library install/uninstall
Packit 352660
Packit 352660
noinst_DATA = fontconfig.lib
Packit 352660
Packit 352660
fontconfig.lib : libfontconfig.la
Packit 352660
	lib -name:libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll -def:fontconfig.def -out:$@
Packit 352660
Packit 352660
install-ms-import-lib:
Packit 352660
	$(INSTALL) fontconfig.lib $(DESTDIR)$(libdir)
Packit 352660
Packit 352660
uninstall-ms-import-lib:
Packit 352660
	$(RM) $(DESTDIR)$(libdir)/fontconfig.lib
Packit 352660
Packit 352660
else
Packit 352660
Packit 352660
install-ms-import-lib:
Packit 352660
uninstall-ms-import-lib:
Packit 352660
Packit 352660
endif
Packit 352660
Packit 352660
AM_CPPFLAGS = 						\
Packit 352660
	-I$(top_srcdir)					\
Packit 352660
	-I$(top_srcdir)/src				\
Packit 352660
	$(FREETYPE_CFLAGS)				\
Packit 352660
	$(ICONV_CFLAGS)					\
Packit 352660
	$(LIBXML2_CFLAGS)				\
Packit 352660
	$(EXPAT_CFLAGS)					\
Packit 352660
	$(UUID_CFLAGS)					\
Packit 352660
	$(WARN_CFLAGS)					\
Packit 352660
	-DFC_CACHEDIR='"$(FC_CACHEDIR)"'                \
Packit 352660
	-DFONTCONFIG_PATH='"$(BASECONFIGDIR)"'		\
Packit 352660
	-DFC_TEMPLATEDIR='"$(TEMPLATEDIR)"'
Packit 352660
LDADD  = $(LIBINTL)
Packit 352660
Packit 352660
EXTRA_DIST += makealias
Packit 352660
Packit 352660
noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h fcstdint.h
Packit 352660
Packit 352660
ALIAS_FILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h
Packit 352660
Packit 352660
BUILT_SOURCES = $(ALIAS_FILES) \
Packit 352660
	../fc-case/fccase.h \
Packit 352660
	../fc-lang/fclang.h \
Packit 352660
	stamp-fcstdint \
Packit 352660
	$(builddir)/fcobjshash.h \
Packit 352660
	fcobjshash.gperf
Packit 352660
Packit 352660
noinst_PROGRAMS = fcarch
Packit 352660
Packit 352660
../fc-case/fccase.h:
Packit 352660
	cd ../fc-case && $(MAKE) $(AM_MAKEFLAGS) fccase.h
Packit 352660
../fc-lang/fclang.h:
Packit 352660
	cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) fclang.h
Packit 352660
Packit 352660
fcobjshash.gperf: Makefile stamp-fcobjshash.gperf
Packit 352660
	-@$(RM) stamp-fcobjshash.gperf
Packit 352660
	@$(MAKE) stamp-fcobjshash.gperf
Packit 352660
	@touch -r stamp-fcobjshash.gperf $@
Packit 352660
stamp-fcobjshash.gperf: fcobjshash.gperf.h fcobjs.h
Packit 352660
	$(AM_V_GEN) $(CPP) -I$(top_srcdir) $(CPPFLAGS) $< | \
Packit 352660
	$(SED) 's/^ *//;s/ *, */,/' | \
Packit 352660
	awk ' \
Packit 352660
		/CUT_OUT_BEGIN/ { no_write=1; next; }; \
Packit 352660
		/CUT_OUT_END/ { no_write=0; next; }; \
Packit 352660
		/^$$/||/^#/ { next; }; \
Packit 352660
		{ if (!no_write) print; next; }; \
Packit 352660
	' - > $@.tmp && \
Packit 352660
	mv -f $@.tmp fcobjshash.gperf && touch $@ || ( $(RM) $@.tmp && false )
Packit 352660
Packit 352660
$(builddir)/fcobjshash.h: Makefile fcobjshash.gperf
Packit 352660
	$(AM_V_GEN) $(GPERF) --pic -m 100 fcobjshash.gperf > $@.tmp && \
Packit 352660
	mv -f $@.tmp $@ || ( $(RM) $@.tmp && false )
Packit 352660
Packit 352660
EXTRA_DIST += \
Packit 352660
	fcobjshash.gperf.h
Packit 352660
Packit 352660
libfontconfig_la_SOURCES = \
Packit 352660
	fcarch.h \
Packit 352660
	fcatomic.c \
Packit 352660
	fcatomic.h \
Packit 352660
	fccache.c \
Packit 352660
	fccfg.c \
Packit 352660
	fccharset.c \
Packit 352660
	fccompat.c \
Packit 352660
	fcdbg.c \
Packit 352660
	fcdefault.c \
Packit 352660
	fcdir.c \
Packit 352660
	fcformat.c \
Packit 352660
	fcfreetype.c \
Packit 352660
	fcfs.c \
Packit 352660
	fcptrlist.c \
Packit 352660
	fchash.c \
Packit 352660
	fcinit.c \
Packit 352660
	fclang.c \
Packit 352660
	fclist.c \
Packit 352660
	fcmatch.c \
Packit 352660
	fcmatrix.c \
Packit 352660
	fcmutex.h \
Packit 352660
	fcname.c \
Packit 352660
	fcobjs.c \
Packit 352660
	fcobjs.h \
Packit 352660
	fcpat.c \
Packit 352660
	fcrange.c \
Packit 352660
	fcserialize.c \
Packit 352660
	fcstat.c \
Packit 352660
	fcstr.c \
Packit 352660
	fcweight.c \
Packit 352660
	fcwindows.h \
Packit 352660
	fcxml.c \
Packit 352660
	ftglue.h \
Packit 352660
	ftglue.c
Packit 352660
Packit 352660
lib_LTLIBRARIES = libfontconfig.la
Packit 352660
Packit 352660
libfontconfig_la_LDFLAGS =			\
Packit 352660
	-version-info @LIBT_VERSION_INFO@ -no-undefined $(export_symbols)
Packit 352660
Packit 352660
libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) $(UUID_LIBS) $(LTLIBINTL)
Packit 352660
Packit 352660
libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
Packit 352660
Packit 352660
if ENABLE_SHARED
Packit 352660
install-data-local: install-ms-import-lib install-libtool-import-lib
Packit 352660
Packit 352660
uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
Packit 352660
endif
Packit 352660
Packit 352660
PUBLIC_FILES = \
Packit 352660
	$(top_srcdir)/fontconfig/fontconfig.h \
Packit 352660
	$(top_srcdir)/src/fcdeprecate.h \
Packit 352660
	$(top_srcdir)/fontconfig/fcprivate.h
Packit 352660
Packit 352660
PUBLIC_FT_FILES = \
Packit 352660
	$(top_srcdir)/fontconfig/fcfreetype.h
Packit 352660
Packit 352660
fcaliastail.h: fcalias.h
Packit 352660
Packit 352660
fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
Packit 352660
	$(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcalias.h fcaliastail.h $(PUBLIC_FILES)
Packit 352660
Packit 352660
fcftaliastail.h: fcftalias.h
Packit 352660
Packit 352660
fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES)
Packit 352660
	$(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES)
Packit 352660
Packit 352660
stamp-fcstdint: $(top_builddir)/config.status
Packit 352660
	$(AM_V_GEN) cd $(top_builddir) &&	\
Packit 352660
	$(SHELL) ./config.status src/fcstdint.h
Packit 352660
	@touch $@
Packit 352660
Packit 352660
CLEANFILES =		\
Packit 352660
	$(ALIAS_FILES)	\
Packit 352660
	fontconfig.def	\
Packit 352660
	$(builddir)/fcobjshash.h
Packit 352660
Packit 352660
DISTCLEANFILES = 	\
Packit 352660
	stamp-fcstdint	\
Packit 352660
	fcstdint.h	\
Packit 352660
	stamp-fcobjshash.gperf	\
Packit 352660
	fcobjshash.gperf
Packit 352660
Packit 352660
fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
Packit 352660
	echo Generating $@
Packit 352660
	(echo EXPORTS; \
Packit 352660
	(cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \
Packit 352660
	$(GREP) '^Fc[^ ]* *(' | $(SED) -e 's/ *(.*$$//' -e 's/^/	/' | \
Packit 352660
	sort; \
Packit 352660
	echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
Packit 352660
	echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
Packit 352660
	@ ! $(GREP) -q FcERROR $@ || ($(RM) $@; false)
Packit 352660
Packit 352660
-include $(top_srcdir)/git.mk