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