]>
Commit | Line | Data |
---|---|---|
c5a0b541 | 1 | # |
e690fbb2 | 2 | # fontconfig/src/Makefile.am |
c5a0b541 KP |
3 | # |
4 | # Copyright © 2003 Keith Packard | |
5 | # | |
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. | |
15 | # | |
3074a73b | 16 | # THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, |
c5a0b541 | 17 | # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO |
3074a73b | 18 | # EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR |
c5a0b541 KP |
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. | |
23 | ||
daeed6e0 TL |
24 | if OS_WIN32 |
25 | ||
daeed6e0 TL |
26 | export_symbols = -export-symbols fontconfig.def |
27 | ||
706a1b36 KP |
28 | fontconfig_def_dependency = fontconfig.def |
29 | ||
daeed6e0 TL |
30 | # gcc import library install/uninstall |
31 | ||
32 | install-libtool-import-lib: | |
33 | $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir) | |
c3941ba9 | 34 | $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def |
daeed6e0 TL |
35 | |
36 | uninstall-libtool-import-lib: | |
37 | -rm $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def | |
38 | ||
39 | else | |
40 | ||
41 | install-libtool-import-lib: | |
42 | uninstall-libtool-import-lib: | |
43 | ||
706a1b36 KP |
44 | fontconfig_def_dependency = |
45 | ||
daeed6e0 TL |
46 | endif |
47 | ||
48 | if MS_LIB_AVAILABLE | |
49 | ||
50 | # Microsoft import library install/uninstall | |
51 | ||
52 | noinst_DATA = fontconfig.lib | |
53 | ||
54 | fontconfig.lib : libfontconfig.la | |
55 | lib -name:libfontconfig-$(lt_current_minus_age).dll -def:fontconfig.def -out:$@ | |
56 | ||
57 | install-ms-import-lib: | |
58 | $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir) | |
59 | ||
60 | uninstall-ms-import-lib: | |
61 | -rm $(DESTDIR)$(libdir)/fontconfig.lib | |
62 | ||
63 | else | |
64 | ||
15b49a7f CW |
65 | install-ms-import-lib: |
66 | uninstall-ms-import-lib: | |
daeed6e0 TL |
67 | |
68 | endif | |
69 | ||
20fa60c9 | 70 | INCLUDES = \ |
f045376c PL |
71 | -I$(top_srcdir) \ |
72 | -I$(top_srcdir)/src \ | |
20fa60c9 | 73 | $(FREETYPE_CFLAGS) \ |
e99f0f0a | 74 | $(LIBXML2_CFLAGS) \ |
20fa60c9 | 75 | $(EXPAT_CFLAGS) \ |
6ae6acf3 | 76 | $(WARN_CFLAGS) \ |
7410e40b | 77 | -DFC_CACHEDIR='"$(FC_CACHEDIR)"' \ |
f045376c | 78 | -DFONTCONFIG_PATH='"$(CONFDIR)"' |
daeed6e0 | 79 | |
706a1b36 | 80 | EXTRA_DIST = makealias |
daeed6e0 | 81 | |
ad43ccaa | 82 | noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h |
8fc10a72 | 83 | |
dbd065ad | 84 | ALIAS_FILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h |
23816bf9 | 85 | |
3e5e83e1 | 86 | BUILT_SOURCES = $(ALIAS_FILES) ../fc-lang/fclang.h ../fc-arch/fcarch.h ../fc-glyphname/fcglyphname.h |
a90a3ad9 BE |
87 | |
88 | ../fc-lang/fclang.h: | |
89 | cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) fclang.h | |
90 | ../fc-arch/fcarch.h: | |
91 | cd ../fc-arch && $(MAKE) $(AM_MAKEFLAGS) fcarch.h | |
3e5e83e1 BE |
92 | ../fc-glyphname/fcglyphname.h: |
93 | cd ../fc-glyphname && $(MAKE) $(AM_MAKEFLAGS) fcglyphname.h | |
23816bf9 | 94 | |
20fa60c9 KP |
95 | libfontconfig_la_SOURCES = \ |
96 | fcatomic.c \ | |
97 | fcblanks.c \ | |
98 | fccache.c \ | |
99 | fccfg.c \ | |
100 | fccharset.c \ | |
101 | fcdbg.c \ | |
102 | fcdefault.c \ | |
103 | fcdir.c \ | |
0c93b91d | 104 | fcformat.c \ |
20fa60c9 KP |
105 | fcfreetype.c \ |
106 | fcfs.c \ | |
107 | fcinit.c \ | |
108 | fclang.c \ | |
109 | fclist.c \ | |
110 | fcmatch.c \ | |
111 | fcmatrix.c \ | |
112 | fcname.c \ | |
113 | fcpat.c \ | |
7ce19673 | 114 | fcserialize.c \ |
20fa60c9 | 115 | fcstr.c \ |
8ebf7725 PL |
116 | fcxml.c \ |
117 | ftglue.h \ | |
118 | ftglue.c | |
daeed6e0 | 119 | |
20fa60c9 KP |
120 | lib_LTLIBRARIES = libfontconfig.la |
121 | ||
122 | libfontconfig_la_LDFLAGS = \ | |
19d124dc | 123 | -version-info @LIBT_VERSION_INFO@ -no-undefined $(export_symbols) |
20fa60c9 | 124 | |
73775d8f | 125 | libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) |
20fa60c9 | 126 | |
706a1b36 KP |
127 | libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency) |
128 | ||
daeed6e0 TL |
129 | install-data-local: install-ms-import-lib install-libtool-import-lib |
130 | ||
131 | uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib | |
132 | ||
23816bf9 KP |
133 | PUBLIC_FILES = \ |
134 | $(top_srcdir)/fontconfig/fontconfig.h \ | |
1315db01 KP |
135 | $(top_srcdir)/src/fcdeprecate.h \ |
136 | $(top_srcdir)/fontconfig/fcprivate.h | |
23816bf9 | 137 | |
dbd065ad KP |
138 | PUBLIC_FT_FILES = \ |
139 | $(top_srcdir)/fontconfig/fcfreetype.h | |
140 | ||
08bef687 KP |
141 | fcaliastail.h: fcalias.h |
142 | ||
143 | fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES) | |
dbd065ad KP |
144 | sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcalias.h fcaliastail.h $(PUBLIC_FILES) |
145 | ||
146 | fcftaliastail.h: fcftalias.h | |
147 | ||
148 | fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES) | |
149 | sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES) | |
23816bf9 | 150 | |
3322ca85 | 151 | CLEANFILES = $(ALIAS_FILES) |
706a1b36 | 152 | |
0028f72b | 153 | fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES) |
706a1b36 KP |
154 | echo Generating $@ |
155 | (echo EXPORTS; \ | |
0028f72b | 156 | (cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \ |
706a1b36 KP |
157 | grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$$//' -e 's/^/ /' | \ |
158 | sort; \ | |
19d124dc KP |
159 | echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \ |
160 | echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@ | |
706a1b36 | 161 | @ ! grep -q FcERROR $@ || ($(RM) $@; false) |