]> git.wh0rd.org - fontconfig.git/blame_incremental - src/Makefile.am
Parallel build fix for fcalias.h and fcaliastail.h
[fontconfig.git] / src / Makefile.am
... / ...
CommitLineData
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
24if OS_WIN32
25
26export_symbols = -export-symbols fontconfig.def
27
28# gcc import library install/uninstall
29
30install-libtool-import-lib:
31 $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)
32 $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
33
34uninstall-libtool-import-lib:
35 -rm $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def
36
37else
38
39install-libtool-import-lib:
40uninstall-libtool-import-lib:
41
42endif
43
44if MS_LIB_AVAILABLE
45
46# Microsoft import library install/uninstall
47
48noinst_DATA = fontconfig.lib
49
50fontconfig.lib : libfontconfig.la
51 lib -name:libfontconfig-$(lt_current_minus_age).dll -def:fontconfig.def -out:$@
52
53install-ms-import-lib:
54 $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir)
55
56uninstall-ms-import-lib:
57 -rm $(DESTDIR)$(libdir)/fontconfig.lib
58
59else
60
61install-ms-import-lib:
62uninstall-ms-import-lib:
63
64endif
65
66INCLUDES = \
67 -I$(top_srcdir) \
68 -I$(top_srcdir)/src \
69 $(FREETYPE_CFLAGS) \
70 $(LIBXML2_CFLAGS) \
71 $(EXPAT_CFLAGS) \
72 $(WARN_CFLAGS) \
73 -DFC_CACHEDIR='"$(FC_CACHEDIR)"' \
74 -DFONTCONFIG_PATH='"$(CONFDIR)"'
75
76EXTRA_DIST = fontconfig.def.in makealias
77
78noinst_HEADERS=fcint.h
79
80ALIAS_FILES = fcalias.h fcaliastail.h
81
82BUILT_SOURCES = $(ALIAS_FILES)
83
84libfontconfig_la_SOURCES = \
85 fcatomic.c \
86 fcblanks.c \
87 fccache.c \
88 fccfg.c \
89 fccharset.c \
90 fcdbg.c \
91 fcdefault.c \
92 fcdir.c \
93 fcfreetype.c \
94 fcfs.c \
95 fcinit.c \
96 fclang.c \
97 fclist.c \
98 fcmatch.c \
99 fcmatrix.c \
100 fcname.c \
101 fcpat.c \
102 fcserialize.c \
103 fcstr.c \
104 fcxml.c \
105 ftglue.h \
106 ftglue.c
107
108lib_LTLIBRARIES = libfontconfig.la
109
110libfontconfig_la_LDFLAGS = \
111 -version-info @LT_VERSION_INFO@ -no-undefined $(export_symbols)
112
113libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS)
114
115install-data-local: install-ms-import-lib install-libtool-import-lib
116
117uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
118
119PUBLIC_FILES = \
120 $(top_srcdir)/fontconfig/fontconfig.h \
121 $(top_srcdir)/fontconfig/fcfreetype.h \
122 $(top_srcdir)/fontconfig/fcprivate.h
123
124fcaliastail.h: fcalias.h
125
126fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
127 sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" $(PUBLIC_FILES)
128
129CLEANFILES := $(ALIAS_FILES)