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: libfontconfig.la
35 $(MKDIR_P) $(DESTDIR)$(libdir)
36 $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)/libfontconfig.dll.a
37 $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
39 uninstall-libtool-import-lib:
40 $(RM) $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def
44 install-libtool-import-lib:
45 uninstall-libtool-import-lib:
47 fontconfig_def_dependency =
53 # Microsoft import library install/uninstall
55 noinst_DATA = fontconfig.lib
57 fontconfig.lib : libfontconfig.la
58 lib -name:libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll -def:fontconfig.def -out:$@
60 install-ms-import-lib:
61 $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir)
63 uninstall-ms-import-lib:
64 $(RM) $(DESTDIR)$(libdir)/fontconfig.lib
68 install-ms-import-lib:
69 uninstall-ms-import-lib:
81 -DFC_CACHEDIR='"$(FC_CACHEDIR)"' \
82 -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"'
84 EXTRA_DIST += makealias
86 noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h fcstdint.h
88 ALIAS_FILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h
90 BUILT_SOURCES = $(ALIAS_FILES) \
92 ../fc-glyphname/fcglyphname.h \
98 noinst_PROGRAMS = fcarch
101 cd ../fc-case && $(MAKE) $(AM_MAKEFLAGS) fccase.h
102 ../fc-glyphname/fcglyphname.h:
103 cd ../fc-glyphname && $(MAKE) $(AM_MAKEFLAGS) fcglyphname.h
105 cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) fclang.h
107 fcobjshash.gperf: fcobjshash.gperf.h fcobjs.h
108 $(AM_V_GEN) $(CPP) -I$(top_srcdir) $< | \
109 $(SED) 's/^ *//;s/ *, */,/' | \
112 /CUT_OUT_BEGIN/ { no_write=1; next; }; \
113 /CUT_OUT_END/ { no_write=0; next; }; \
114 { if (!no_write) print; next; }; \
116 mv -f $@.tmp $@ || ( $(RM) $@.tmp && false )
118 fcobjshash.h: fcobjshash.gperf
119 $(AM_V_GEN) $(GPERF) -m 100 $< > $@.tmp && \
120 mv -f $@.tmp $@ || ( $(RM) $@.tmp && false )
127 libfontconfig_la_SOURCES = \
162 lib_LTLIBRARIES = libfontconfig.la
164 libfontconfig_la_LDFLAGS = \
165 -version-info @LIBT_VERSION_INFO@ -no-undefined $(export_symbols)
167 libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS)
169 libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
172 install-data-local: install-ms-import-lib install-libtool-import-lib
174 uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
178 $(top_srcdir)/fontconfig/fontconfig.h \
179 $(top_srcdir)/src/fcdeprecate.h \
180 $(top_srcdir)/fontconfig/fcprivate.h
183 $(top_srcdir)/fontconfig/fcfreetype.h
185 fcaliastail.h: fcalias.h
187 fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
188 $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcalias.h fcaliastail.h $(PUBLIC_FILES)
190 fcftaliastail.h: fcftalias.h
192 fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES)
193 $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES)
195 stamp-fcstdint: $(top_builddir)/config.status
196 $(AM_V_GEN) cd $(top_builddir) && \
197 $(SHELL) ./config.status src/fcstdint.h
200 CLEANFILES = $(ALIAS_FILES) fontconfig.def
201 DISTCLEANFILES = stamp-fcstdint fcstdint.h
203 fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
206 (cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \
207 $(GREP) '^Fc[^ ]* *(' | $(SED) -e 's/ *(.*$$//' -e 's/^/ /' | \
209 echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
210 echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
211 @ ! $(GREP) -q FcERROR $@ || ($(RM) $@; false)
213 -include $(top_srcdir)/git.mk