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) $< | \
108 $(SED) 's/^ *//;s/ *, */,/' | \
111 /CUT_OUT_BEGIN/ { no_write=1; next; }; \
112 /CUT_OUT_END/ { no_write=0; next; }; \
113 { if (!no_write) print; next; }; \
115 mv -f $@.tmp $@ || ( $(RM) $@.tmp && false )
117 fcobjshash.h: fcobjshash.gperf
118 $(AM_V_GEN) $(top_srcdir)/missing --run gperf -m 100 $< > $@.tmp && \
119 mv -f $@.tmp $@ || ( $(RM) $@.tmp && false )
126 libfontconfig_la_SOURCES = \
160 lib_LTLIBRARIES = libfontconfig.la
162 libfontconfig_la_LDFLAGS = \
163 -version-info @LIBT_VERSION_INFO@ -no-undefined $(export_symbols)
165 libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS)
167 libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
170 install-data-local: install-ms-import-lib install-libtool-import-lib
172 uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
176 $(top_srcdir)/fontconfig/fontconfig.h \
177 $(top_srcdir)/src/fcdeprecate.h \
178 $(top_srcdir)/fontconfig/fcprivate.h
181 $(top_srcdir)/fontconfig/fcfreetype.h
183 fcaliastail.h: fcalias.h
185 fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
186 $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcalias.h fcaliastail.h $(PUBLIC_FILES)
188 fcftaliastail.h: fcftalias.h
190 fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES)
191 $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES)
193 stamp-fcstdint: $(top_builddir)/config.status
194 $(AM_V_GEN) cd $(top_builddir) && \
195 $(SHELL) ./config.status src/fcstdint.h
198 CLEANFILES = $(ALIAS_FILES) fontconfig.def
199 DISTCLEANFILES = stamp-fcstdint fcstdint.h
201 fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
204 (cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \
205 $(GREP) '^Fc[^ ]* *(' | $(SED) -e 's/ *(.*$$//' -e 's/^/ /' | \
207 echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
208 echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
209 @ ! $(GREP) -q FcERROR $@ || ($(RM) $@; false)
211 -include $(top_srcdir)/git.mk