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 the author(s) not be used in
11 # advertising or publicity pertaining to distribution of the software without
12 # specific, written prior permission. The authors make 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.
28 export_symbols = -export-symbols fontconfig.def
30 fontconfig_def_dependency = fontconfig.def
32 # gcc import library install/uninstall
34 install-libtool-import-lib:
35 $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
36 $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
38 uninstall-libtool-import-lib:
39 $(RM) $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def
43 install-libtool-import-lib:
44 uninstall-libtool-import-lib:
46 fontconfig_def_dependency =
52 # Microsoft import library install/uninstall
54 noinst_DATA = fontconfig.lib
56 fontconfig.lib : libfontconfig.la
57 lib -name:libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll -def:fontconfig.def -out:$@
59 install-ms-import-lib:
60 $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir)
62 uninstall-ms-import-lib:
63 $(RM) $(DESTDIR)$(libdir)/fontconfig.lib
67 install-ms-import-lib:
68 uninstall-ms-import-lib:
80 -DFC_CACHEDIR='"$(FC_CACHEDIR)"' \
81 -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"'
83 EXTRA_DIST += makealias
85 noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h fcstdint.h
87 ALIAS_FILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h
89 BUILT_SOURCES = $(ALIAS_FILES) \
91 ../fc-glyphname/fcglyphname.h \
97 noinst_PROGRAMS = fcarch
100 cd ../fc-case && $(MAKE) $(AM_MAKEFLAGS) fccase.h
101 ../fc-glyphname/fcglyphname.h:
102 cd ../fc-glyphname && $(MAKE) $(AM_MAKEFLAGS) fcglyphname.h
104 cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) fclang.h
106 fcobjshash.gperf: fcobjshash.gperf.h fcobjs.h
107 $(AM_V_GEN) $(CPP) -I$(top_srcdir) $< | $(GREP) '^[^#]' | awk ' \
108 /CUT_OUT_BEGIN/ { no_write=1; next; }; \
109 /CUT_OUT_END/ { no_write=0; next; }; \
110 { if (!no_write) print; next; }; \
114 fcobjshash.h: fcobjshash.gperf
115 $(AM_V_GEN) $(top_srcdir)/missing --run gperf -m 100 $< > $@.tmp && \
123 libfontconfig_la_SOURCES = \
155 lib_LTLIBRARIES = libfontconfig.la
157 libfontconfig_la_LDFLAGS = \
158 -version-info @LIBT_VERSION_INFO@ -no-undefined $(export_symbols)
160 libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS)
162 libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
165 install-data-local: install-ms-import-lib install-libtool-import-lib
167 uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
171 $(top_srcdir)/fontconfig/fontconfig.h \
172 $(top_srcdir)/src/fcdeprecate.h \
173 $(top_srcdir)/fontconfig/fcprivate.h
176 $(top_srcdir)/fontconfig/fcfreetype.h
178 fcaliastail.h: fcalias.h
180 fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
181 $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcalias.h fcaliastail.h $(PUBLIC_FILES)
183 fcftaliastail.h: fcftalias.h
185 fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES)
186 $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES)
188 stamp-fcstdint: $(top_builddir)/config.status
189 $(AM_V_GEN) cd $(top_builddir) && \
190 $(SHELL) ./config.status src/fcstdint.h
193 CLEANFILES = $(ALIAS_FILES) fontconfig.def
194 DISTCLEANFILES = stamp-fcstdint fcstdint.h
196 fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
199 (cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \
200 grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$$//' -e 's/^/ /' | \
202 echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
203 echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
204 @ ! grep -q FcERROR $@ || ($(RM) $@; false)
206 -include $(top_srcdir)/git.mk