]> git.wh0rd.org - fontconfig.git/blame - src/Makefile.am
Remove fcprivate.h, move the remaining macros to fcint.h.
[fontconfig.git] / src / Makefile.am
CommitLineData
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
24if OS_WIN32
25
daeed6e0
TL
26export_symbols = -export-symbols fontconfig.def
27
706a1b36
KP
28fontconfig_def_dependency = fontconfig.def
29
daeed6e0
TL
30# gcc import library install/uninstall
31
32install-libtool-import-lib:
33 $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
c3941ba9 34 $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
daeed6e0
TL
35
36uninstall-libtool-import-lib:
37 -rm $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def
38
39else
40
41install-libtool-import-lib:
42uninstall-libtool-import-lib:
43
706a1b36
KP
44fontconfig_def_dependency =
45
daeed6e0
TL
46endif
47
48if MS_LIB_AVAILABLE
49
50# Microsoft import library install/uninstall
51
52noinst_DATA = fontconfig.lib
53
54fontconfig.lib : libfontconfig.la
55 lib -name:libfontconfig-$(lt_current_minus_age).dll -def:fontconfig.def -out:$@
56
57install-ms-import-lib:
58 $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir)
59
60uninstall-ms-import-lib:
61 -rm $(DESTDIR)$(libdir)/fontconfig.lib
62
63else
64
15b49a7f
CW
65install-ms-import-lib:
66uninstall-ms-import-lib:
daeed6e0
TL
67
68endif
69
20fa60c9 70INCLUDES = \
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 80EXTRA_DIST = makealias
daeed6e0 81
2e2121f9 82noinst_HEADERS=fcint.h
8fc10a72 83
23816bf9
KP
84ALIAS_FILES = fcalias.h fcaliastail.h
85
86BUILT_SOURCES = $(ALIAS_FILES)
87
20fa60c9
KP
88libfontconfig_la_SOURCES = \
89 fcatomic.c \
90 fcblanks.c \
91 fccache.c \
92 fccfg.c \
93 fccharset.c \
94 fcdbg.c \
95 fcdefault.c \
96 fcdir.c \
97 fcfreetype.c \
98 fcfs.c \
99 fcinit.c \
100 fclang.c \
101 fclist.c \
102 fcmatch.c \
103 fcmatrix.c \
104 fcname.c \
105 fcpat.c \
7ce19673 106 fcserialize.c \
20fa60c9 107 fcstr.c \
8ebf7725
PL
108 fcxml.c \
109 ftglue.h \
110 ftglue.c
daeed6e0 111
20fa60c9
KP
112lib_LTLIBRARIES = libfontconfig.la
113
114libfontconfig_la_LDFLAGS = \
edffd3b9 115 -version-info @LT_VERSION_INFO@ -no-undefined $(export_symbols)
20fa60c9 116
73775d8f 117libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS)
20fa60c9 118
706a1b36
KP
119libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
120
daeed6e0
TL
121install-data-local: install-ms-import-lib install-libtool-import-lib
122
123uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
124
23816bf9
KP
125PUBLIC_FILES = \
126 $(top_srcdir)/fontconfig/fontconfig.h \
b6079229 127 $(top_srcdir)/fontconfig/fcfreetype.h
23816bf9 128
08bef687
KP
129fcaliastail.h: fcalias.h
130
131fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
23816bf9
KP
132 sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" $(PUBLIC_FILES)
133
134CLEANFILES := $(ALIAS_FILES)
706a1b36
KP
135
136fontconfig.def: $(PUBLIC_FILES)
137 echo Generating $@
138 (echo EXPORTS; \
139 (cat $(PUBLIC_FILES) || echo 'FcERROR ()' ) | \
140 grep '^Fc[^ ]* *(' | sed -e 's/ *(.*$$//' -e 's/^/ /' | \
141 sort; \
142 echo LIBRARY libfontconfig-@LT_CURRENT_MINUS_AGE@.dll; \
143 echo VERSION @LT_CURRENT@.@LT_REVISION@) >$@
144 @ ! grep -q FcERROR $@ || ($(RM) $@; false)