aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/font/Imakefile
blob: f47fe963cc7ba0dca5bef021644a8cc275acb75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:46:24 cpqbld Exp $




XCOMM $XFree86: xc/lib/font/Imakefile,v 3.37 2003/10/24 16:21:12 tsi Exp $

#include <Server.tmpl>

#define	IHaveSubdirs

#define DoNormalLib NormalLibFont
#define DoSharedLib SharedLibFont
#define DoExtraLib SharedLibFont
#define DoDebugLib DebugLibFont
#define DoProfileLib ProfileLibFont

#if !BuildFontLib
#define LibCreate NO
#else
#define LibCreate YES
#endif

#if BuildLibraries
#define LibInstall YES
#else
#define LibInstall NO
#endif

#if BuildLibraries
STUBDIRS = stubs
#endif

LIBNAME = NX_Xfont
SOREV = $(SOFONTREV)

#ifndef SeparateSharedCompile
#define SeparateSharedCompile YES
#endif
#if NormalLibFont && SharedLibFont && SeparateSharedCompile
STATIC_OBJSDIR = unshared/
#endif

#ifdef SharedXfontReqs
REQUIREDLIBS = SharedXfontReqs
#endif

#if BuildSpeedo
         SPEEDODIRS = Speedo
   SPEEDOSHAREDOBJS = Speedo/?*.o
   SPEEDOSTATICOBJS = Speedo/$(STATIC_OBJSDIR)?*.o
    SPEEDODEBUGOBJS = Speedo/debugger/?*.o
  SPEEDOPROFILEOBJS = Speedo/profiled/?*.o
        SPEEDODONES = Speedo/DONE
#endif
#if BuildType1 || BuildCID
          TYPE1DIRS = Type1
    TYPE1SHAREDOBJS = Type1/?*.o
    TYPE1STATICOBJS = Type1/$(STATIC_OBJSDIR)?*.o
     TYPE1DEBUGOBJS = Type1/debugger/?*.o
   TYPE1PROFILEOBJS = Type1/profiled/?*.o
         TYPE1DONES = Type1/DONE
#endif
#if BuildFreeType || BuildFreetype2Library
       FREETYPEDIRS = FreeType
 FREETYPESHAREDOBJS = FreeType/?*.o
 FREETYPESTATICOBJS = FreeType/$(STATIC_OBJSDIR)?*.o
  FREETYPEDEBUGOBJS = FreeType/debugger/?*.o
FREETYPEPROFILEOBJS = FreeType/profiled/?*.o
      FREETYPEDONES = FreeType/DONE
#endif
#if BuildBuiltinFonts
        BUILTINDIRS = builtins
  BUILTINSHAREDOBJS = builtins/?*.o
  BUILTINSTATICOBJS = builtins/$(STATIC_OBJSDIR)?*.o
   BUILTINDEBUGOBJS = builtins/debugger/?*.o
 BUILTINPROFILEOBJS = builtins/profiled/?*.o
       BUILTINDONES = builtins/DONE
#endif
#if BuildFontCache
      FONTCACHEDIRS = fontcache
FONTCACHESHAREDOBJS = fontcache/?*.o
FONTCACHESTATICOBJS = fontcache/$(STATIC_OBJSDIR)?*.o
 FONTCACHEDEBUGOBJS = fontcache/debugger/?*.o
FONTCACHEPROFILEOBJS = fontcache/profiled/?*.o
     FONTCACHEDONES = fontcache/DONE
#endif

       SUBDIRS = bitmap fontfile fc $(FONTCACHEDIRS) \
		 $(SPEEDODIRS) $(TYPE1DIRS) \
		 $(FREETYPEDIRS) $(BUILTINDIRS) \
		 util $(STUBDIRS) include
   SHARED_OBJS = bitmap/?*.o fontfile/?*.o fc/?*.o $(FONTCACHESHAREDOBJS) \
		 $(SPEEDOSHAREDOBJS) $(TYPE1SHAREDOBJS) \
		 $(FREETYPESHAREDOBJS) \
		 $(BUILTINSHAREDOBJS) util/?*.o
   STATIC_OBJS = bitmap/$(STATIC_OBJSDIR)?*.o fontfile/$(STATIC_OBJSDIR)?*.o \
		 fc/$(STATIC_OBJSDIR)?*.o $(FONTCACHESTATICOBJS) \
		 $(SPEEDOSTATICOBJS) $(TYPE1STATICOBJS) \
		 $(FREETYPESTATICOBJS) \
		 $(BUILTINSTATICOBJS) util/$(STATIC_OBJSDIR)?*.o
    DEBUG_OBJS = bitmap/debugger/?*.o fontfile/debugger/?*.o fc/debugger/?*.o \
		 $(FONTCACHEDEBUGOBJS) \
		 $(SPEEDODEBUGOBJS) $(TYPE1DEBUGOBJS) \
		 $(FREETYPEDEBUGOBJS) \
		 $(BUILTINDEBUGOBJS) util/debugger/?*.o
  PROFILE_OBJS = bitmap/profiled/?*.o fontfile/profiled/?*.o fc/profiled/?*.o \
		 $(FONTCACHEPROFILEOBJS) \
		 $(SPEEDOPROFILEOBJS) $(TYPE1PROFILEOBJS) \
		 $(FREETYPEPROFILEOBJS) \
		 $(BUILTINPROFILEOBJS) util/profiled/?*.o
         DONES = bitmap/DONE fontfile/DONE fc/DONE $(FONTCACHEDONES) \
		 $(SPEEDODONES) $(TYPE1DONES) \
		 $(FREETYPEDONES) \
		 $(BUILTINDONES) util/DONE

#if BuildServer && DoLoadableServer
      BASEDIRS = fontfile fc util $(FONTCACHEDIRS)
   BASELIBOBJS = fontfile/$(STATIC_OBJSDIR)?*.o fc/$(STATIC_OBJSDIR)?*.o \
		 util/$(STATIC_OBJSDIR)?*.o $(FONTCACHESTATICOBJS)
      BASEOBJS = fontfile/module/ffcheck.o fontfile/module/register.o \
		 util/private.o
     BASEDONES = fontfile/DONE fontfile/module/DONE fc/DONE util/DONE \
		 $(FONTCACHEDONES)
#endif

#if HasParallelMake
MakeMutex($(SUBDIRS) $(DONES))
#endif

#if HasGnuMake || HasBsdMake
$(DONES): $(SUBDIRS)
#endif

#include <Library.tmpl>

#undef _LinkBuildLibrary
#define _LinkBuildLibrary(lib) LinkBuildLibrary(lib)

#if LibCreate
#if NormalLibFont
NormalDepLibraryTarget($(LIBNAME),$(SUBDIRS) $(DONES),$(STATIC_OBJS))
#if LibInstall
InstallLibrary($(LIBNAME),$(USRLIBDIR))
#endif /* LibInstall */
#endif /* NormalLibFont */

#if SharedLibFont
SharedDepLibraryTarget($(LIBNAME),$(SOREV),$(SUBDIRS) $(DONES),$(SHARED_OBJS),.,.)
#if LibInstall
InstallSharedLibrary($(LIBNAME),$(SOREV),$(SHLIBDIR))
#endif /* LibInstall */
#endif /* SharedLibFont */

#if DebugLibFont
DebuggedDepLibraryTarget($(LIBNAME),$(SUBDIRS) $(DONES),$(DEBUG_OBJS))
#if LibInstall
InstallLibrary($(LIBNAME)_d,$(USRLIBDIR))
#endif /* LibInstall */
#endif /* DebugLibFont */

#if ProfileLibFont
ProfiledDepLibraryTarget($(LIBNAME),$(SUBDIRS) $(DONES),$(PROFILE_OBJS))
#if LibInstall
InstallLibrary($(LIBNAME)_p,$(USRLIBDIR))
#endif /* LibInstall */
#endif /* ProfileLibFont */
#endif /* LibCreate */

#if BuildServer && DoLoadableServer
NormalDepLibraryTarget(fontbase,$(BASEDIRS) $(BASEDONES),$(BASELIBOBJS))
NormalDepRelocatableTarget(fontbase,$(BASEDIRS) $(BASEDONES),$(BASEOBJS))
#endif


ForceSubdirs($(SUBDIRS))

DependSubdirs($(SUBDIRS))