]>
Commit | Line | Data |
---|---|---|
c5a0b541 KP |
1 | # |
2 | # $Id$ | |
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 | # | |
16 | # KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | |
17 | # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | |
18 | # EVENT SHALL KEITH PACKARD 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. | |
23 | ||
daeed6e0 TL |
24 | if OS_WIN32 |
25 | ||
daeed6e0 TL |
26 | export_symbols = -export-symbols fontconfig.def |
27 | ||
28 | # gcc import library install/uninstall | |
29 | ||
30 | install-libtool-import-lib: | |
31 | $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir) | |
c3941ba9 | 32 | $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def |
daeed6e0 TL |
33 | |
34 | uninstall-libtool-import-lib: | |
35 | -rm $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def | |
36 | ||
37 | else | |
38 | ||
39 | install-libtool-import-lib: | |
40 | uninstall-libtool-import-lib: | |
41 | ||
42 | endif | |
43 | ||
44 | if MS_LIB_AVAILABLE | |
45 | ||
46 | # Microsoft import library install/uninstall | |
47 | ||
48 | noinst_DATA = fontconfig.lib | |
49 | ||
50 | fontconfig.lib : libfontconfig.la | |
51 | lib -name:libfontconfig-$(lt_current_minus_age).dll -def:fontconfig.def -out:$@ | |
52 | ||
53 | install-ms-import-lib: | |
54 | $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir) | |
55 | ||
56 | uninstall-ms-import-lib: | |
57 | -rm $(DESTDIR)$(libdir)/fontconfig.lib | |
58 | ||
59 | else | |
60 | ||
15b49a7f CW |
61 | install-ms-import-lib: |
62 | uninstall-ms-import-lib: | |
daeed6e0 TL |
63 | |
64 | endif | |
65 | ||
ea44e218 PL |
66 | AM_CPPFLAGS = -DPKGCACHEDIR='"${pkgcachedir}"' |
67 | ||
20fa60c9 KP |
68 | INCLUDES = \ |
69 | $(FREETYPE_CFLAGS) \ | |
e99f0f0a | 70 | $(LIBXML2_CFLAGS) \ |
20fa60c9 | 71 | $(EXPAT_CFLAGS) \ |
6ae6acf3 | 72 | $(WARN_CFLAGS) \ |
3a30abdb | 73 | -DFONTCONFIG_PATH='"$(CONFDIR)"' \ |
20fa60c9 KP |
74 | -I$(top_srcdir) \ |
75 | -I$(top_srcdir)/src | |
daeed6e0 TL |
76 | |
77 | EXTRA_DIST = fontconfig.def.in | |
78 | ||
2e2121f9 | 79 | noinst_HEADERS=fcint.h |
8fc10a72 | 80 | |
20fa60c9 KP |
81 | libfontconfig_la_SOURCES = \ |
82 | fcatomic.c \ | |
83 | fcblanks.c \ | |
84 | fccache.c \ | |
85 | fccfg.c \ | |
86 | fccharset.c \ | |
87 | fcdbg.c \ | |
88 | fcdefault.c \ | |
89 | fcdir.c \ | |
90 | fcfreetype.c \ | |
91 | fcfs.c \ | |
92 | fcinit.c \ | |
93 | fclang.c \ | |
94 | fclist.c \ | |
95 | fcmatch.c \ | |
96 | fcmatrix.c \ | |
97 | fcname.c \ | |
98 | fcpat.c \ | |
99 | fcstr.c \ | |
8ebf7725 PL |
100 | fcxml.c \ |
101 | ftglue.h \ | |
102 | ftglue.c | |
daeed6e0 | 103 | |
20fa60c9 KP |
104 | lib_LTLIBRARIES = libfontconfig.la |
105 | ||
106 | libfontconfig_la_LDFLAGS = \ | |
edffd3b9 | 107 | -version-info @LT_VERSION_INFO@ -no-undefined $(export_symbols) |
20fa60c9 | 108 | |
e99f0f0a | 109 | libfontconfig_la_LIBADD = $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) |
20fa60c9 | 110 | |
daeed6e0 TL |
111 | install-data-local: install-ms-import-lib install-libtool-import-lib |
112 | ||
113 | uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib | |
114 |