summaryrefslogtreecommitdiff
path: root/xc/lib/font/Imakefile
blob: 7b2f6c0693b67db4cd25e4aab340d0b8cfbab77e (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
XCOMM $TOG: Imakefile /main/14 1998/06/16 15:23:15 msr $
XCOMM $XFree86: xc/lib/font/Imakefile,v 3.28 1999/11/19 13:53:27 hohndel Exp $
#include <Server.tmpl>

#define	IHaveSubdirs

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

LIBNAME = 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
       FREETYPEDIRS = FreeType
 FREETYPESHAREDOBJS = FreeType/?*.o
 FREETYPESTATICOBJS = FreeType/$(STATIC_OBJSDIR)?*.o
  FREETYPEDEBUGOBJS = FreeType/debugger/?*.o
FREETYPEPROFILEOBJS = FreeType/profiled/?*.o
      FREETYPEDONES = FreeType/DONE
#endif
#if BuildXTrueType
            XTTDIRS = X-TrueType
#if XTTInLibXFont
      XTTSHAREDOBJS = X-TrueType/?*.o
      XTTSTATICOBJS = X-TrueType/$(STATIC_OBJSDIR)?*.o
       XTTDEBUGOBJS = X-TrueType/debugger/?*.o
     XTTPROFILEOBJS = X-TrueType/profiled/?*.o
           XTTDONES = X-TrueType/DONE
#endif
#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

       SUBDIRS = bitmap fontfile fc fontcache \
		 $(SPEEDODIRS) $(TYPE1DIRS) \
		 $(FREETYPEDIRS) $(XTTDIRS) $(BUILTINDIRS) \
		 util stubs
   SHARED_OBJS = bitmap/?*.o fontfile/?*.o fc/?*.o fontcache/?*.o \
		 $(SPEEDOSHAREDOBJS) $(TYPE1SHAREDOBJS) \
		 $(FREETYPESHAREDOBJS) $(XTTSHAREDOBJS) \
		 $(BUILTINSHAREDOBJS) util/?*.o
   STATIC_OBJS = bitmap/$(STATIC_OBJSDIR)?*.o fontfile/$(STATIC_OBJSDIR)?*.o \
		 fc/$(STATIC_OBJSDIR)?*.o fontcache/$(STATIC_OBJSDIR)?*.o \
		 $(SPEEDOSTATICOBJS) $(TYPE1STATICOBJS) \
		 $(FREETYPESTATICOBJS) $(XTTSTATICOBJS) \
		 $(BUILTINSTATICOBJS) util/$(STATIC_OBJSDIR)?*.o
    DEBUG_OBJS = bitmap/debugger/?*.o fontfile/debugger/?*.o fc/debugger/?*.o \
		 fontcache/debugger/?*.o \
		 $(SPEEDODEBUGOBJS) $(TYPE1DEBUGOBJS) \
		 $(FREETYPEDEBUGOBJS) $(XTTDEBUGOBJS) \
		 $(BUILTINDEBUGOBJS) util/debugger/?*.o
  PROFILE_OBJS = bitmap/profiled/?*.o fontfile/profiled/?*.o fc/profiled/?*.o \
		 fontcache/profiled/?*.o \
		 $(SPEEDOPROFILEOBJS) $(TYPE1PROFILEOBJS) \
		 $(FREETYPEPROFILEOBJS) $(XTTPROFILEOBJS) \
		 $(BUILTINPROFILEOBJS) util/profiled/?*.o
         DONES = bitmap/DONE fontfile/DONE fc/DONE fontcache/DONE \
		 $(SPEEDODONES) $(TYPE1DONES) \
		 $(FREETYPEDONES) $(XTTDONES) \
		 $(BUILTINDONES) util/DONE

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

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

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

#include <Library.tmpl>

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

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

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

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

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

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


ForceSubdirs($(SUBDIRS))

DependSubdirs($(SUBDIRS))