]> git.wh0rd.org - fontconfig.git/blob - src/Imakefile
Initial revision
[fontconfig.git] / src / Imakefile
1 #include "../../libxml2/config.h"
2 #if HAVE_ZLIB_H
3 ZLIB=-lz
4 #endif
5
6 #if 0
7 #define SharedLibFontconfig YES
8 #endif
9
10 #ifndef SharedLibFontconfig
11 #define SharedLibFontconfig NO
12 #endif
13
14 #ifndef NormalLibFontconfig
15 #define NormalLibFontconfig (!SharedLibFontConfig | ForceNormalLib)
16 #endif
17
18 #ifndef DebugLibFontconfig
19 #define DebugLibFontconfig NO
20 #endif
21
22 #ifndef ProfileLibFontconfig
23 #define ProfileLibFontconfig NO
24 #endif
25
26 #define LibHeaders NO
27
28 FONTCONFIGSRC=.
29
30 FALLBACK_FONTS=$(FONTDIR)/Type1
31
32 #if SharedLibFontconfig
33 #ifndef SharedFontconfigRev
34 #define SharedFontconfigRev 1.0
35 #endif
36 SharedLibReferences(FONTCONFIG,Fontconfig,$(FONTCONFIGSRC),SOXLIBREV,SharedFontconfigRev)
37 #else
38 ProjectUnsharedLibReferences(FONTCONFIG,Fontconfig,$(FONTCONFIGSRC),BuildLibDir)
39 #endif
40
41 #define DoNormalLib NormalLibFontconfig
42 #define DoSharedLib SharedLibFontconfig
43 #define DoExtraLib SharedLibFontconfig
44 #define DoDebugLib DebugLibFontconfig
45 #define DoProfileLib ProfileLibFontconfig
46 #define HasSharedData YES
47 #define LibName fontconfig
48 SOFONTCONFIGREV=1.0
49 #define SoRev SOFONTCONFIGREV
50
51 #include <Threads.tmpl>
52
53 #if SharedLibFontconfig
54 INCLUDES=-I/usr/local/include/freetype2 -I/usr/include/libxml2 -I..
55 FREETYPE2REQLIB = -L/usr/local/lib -lfreetype
56 XML2REQLIB=-lxml2
57 #else
58 INCLUDES=-I../../freetype2 -I../../libxml2/include -I..
59 FREETYPE2REQLIB = ../../freetype2/libfreetype.a
60 XML2REQLIB=../../libxml2/.libs/libxml2.a $(ZLIB) -lm
61 #endif
62 DEFINES=-DFC_FALLBACK_FONTS='"$(FALLBACK_FONTS)"'
63
64 REQUIREDLIBS=$(LDPRELIBS) $(FREETYPE2REQLIB) $(XML2REQLIB)
65
66 SRCS=fcblanks.c fccache.c fccfg.c fccharset.c fcdbg.c fcdefault.c fcdir.c \
67 fcfreetype.c fcfs.c fcinit.c fclist.c fcmatch.c fcmatrix.c fcname.c \
68 fcpat.c fcstr.c fcxml.c
69
70 OBJS=fcblanks.o fccache.o fccfg.o fccharset.o fcdbg.o fcdefault.o fcdir.o \
71 fcfreetype.o fcfs.o fcinit.o fclist.o fcmatch.o fcmatrix.o fcname.o \
72 fcpat.o fcstr.o fcxml.o
73
74 #define LibInstallBuild YES
75 #undef LinkBuildLibrary
76 #define LinkBuildLibrary(lib) MakeDir($(BUILDLIBDIR)) @@\
77 RemoveFile($(BUILDLIBDIR)/lib) @@\
78 cd $(BUILDLIBDIR) && $(LN) $(BUILDLIBTOP)/$(CURRENT_DIR)/lib .
79
80
81 #include <Library.tmpl>
82
83 #if DoSharedLib && SharedDataSeparation
84 SpecialCObjectRule(sharedlib,NullParameter,$(SHLIBDEF))
85 #endif
86
87 MANSUFFIX = $(LIBMANSUFFIX)
88 InstallManPage(fontconfig,$(LIBMANDIR))
89 DependTarget()
90