2 # fontconfig/src/Makefile.am
4 # Copyright © 2003 Keith Packard
6 # Permission to use, copy, modify, distribute, and sell this software and its
7 # documentation for any purpose is hereby granted without fee, provided that
8 # the above copyright notice appear in all copies and that both that
9 # copyright notice and this permission notice appear in supporting
10 # documentation, and that the name of Keith Packard not be used in
11 # advertising or publicity pertaining to distribution of the software without
12 # specific, written prior permission. Keith Packard makes no
13 # representations about the suitability of this software for any purpose. It
14 # is provided "as is" without express or implied warranty.
16 # THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 # EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 # PERFORMANCE OF THIS SOFTWARE.
26 export_symbols = -export-symbols fontconfig.def
28 fontconfig_def_dependency = fontconfig.def
30 # gcc import library install/uninstall
32 install-libtool-import-lib:
33 $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
34 $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
36 uninstall-libtool-import-lib:
37 -rm $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def
41 install-libtool-import-lib:
42 uninstall-libtool-import-lib:
44 fontconfig_def_dependency =
50 # Microsoft import library install/uninstall
52 noinst_DATA = fontconfig.lib
54 fontconfig.lib : libfontconfig.la
55 lib -name:libfontconfig-$(lt_current_minus_age).dll -def:fontconfig.def -out:$@
57 install-ms-import-lib:
58 $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir)
60 uninstall-ms-import-lib:
61 -rm $(DESTDIR)$(libdir)/fontconfig.lib
65 install-ms-import-lib:
66 uninstall-ms-import-lib:
77 -DFC_CACHEDIR='"$(FC_CACHEDIR)"' \
78 -DFONTCONFIG_PATH='"$(CONFDIR)"'
80 EXTRA_DIST = makealias
82 noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h
84 ALIAS_FILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h
86 BUILT_SOURCES = $(ALIAS_FILES) \
89 ../fc-glyphname/fcglyphname.h \
93 cd ../fc-arch && $(MAKE) $(AM_MAKEFLAGS) fcarch.h
95 cd ../fc-case && $(MAKE) $(AM_MAKEFLAGS) fccase.h
96 ../fc-glyphname/fcglyphname.h:
97 cd ../fc-glyphname && $(MAKE) $(AM_MAKEFLAGS) fcglyphname.h
99 cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) fclang.h
101 libfontconfig_la_SOURCES = \
126 lib_LTLIBRARIES = libfontconfig.la
128 libfontconfig_la_LDFLAGS = \
129 -version-info @LIBT_VERSION_INFO@ -no-undefined $(export_symbols)
131 libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS)
133 libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
135 install-data-local: install-ms-import-lib install-libtool-import-lib
137 uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
140 $(top_srcdir)/fontconfig/fontconfig.h \
141 $(top_srcdir)/src/fcdeprecate.h \
142 $(top_srcdir)/fontconfig/fcprivate.h
145 $(top_srcdir)/fontconfig/fcfreetype.h
147 fcaliastail.h: fcalias.h
149 fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
150 sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcalias.h fcaliastail.h $(PUBLIC_FILES)
152 fcftaliastail.h: fcftalias.h
154 fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES)
155 sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES)
157 CLEANFILES = $(ALIAS_FILES)
159 fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
162 (cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \
163 grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$$//' -e 's/^/ /' | \
165 echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
166 echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
167 @ ! grep -q FcERROR $@ || ($(RM) $@; false)