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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
XCOMM $TOG: Imakefile /main/71 1997/11/17 10:00:11 msr $
XCOMM $XFree86: xc/programs/Xserver/cfb/Imakefile,v 3.25 2000/12/01 00:24:31 dawes Exp $
#define IHaveModules
#include <Server.tmpl>
#ifndef PixelSize
#define PixelSize 8
#endif
#if PixelSize == 8
/* cfb8cppl.c MUST come last to avoid confusing makedepend */
PSZSRCS = cfb8bit.c cfbteblt8.c cfbglrop8.c cfbpush8.c cfbrctstp8.c
PSZOBJS = cfb8bit.o cfbteblt8.o cfbglrop8.o cfbpush8.o cfbrctstp8.o
#ifdef MipsArchitecture
#ifndef ArcArchitecture
#ifndef Mips64Architecture
STIPPLESRC = stipmips.s stipmipste.s
STIPPLEOBJ = stipmips.o stipmipste.o
STIPPLEDEF = -DHAS_STIPPLE_CODE
#endif
#endif
#endif
#ifdef SparcArchitecture
STIPPLESRC = stipsparc.s stipsparcte.s
STIPPLEOBJ = stipsparc.o stipsparcte.o
STIPPLEDEF = -DHAS_STIPPLE_CODE
#endif
#endif
#if PixelSize == 32
#ifdef SparcArchitecture
STIPPLESRC = stipsprc32.s stipsprcte32.s
STIPPLEOBJ = stipsprc32.o stipsprcte32.o
STIPPLEDEF = -DHAS_STIPPLE_CODE
#endif
#endif
#ifdef XFree86Version
#if DoLoadableServer
XFMODSRC = cfbmodule.c
XFMODOBJ = cfbmodule.o
#endif
#endif
#if !(DoLoadableServer && defined(LinkDirectory))
CFBCMAP = cfbcmap.o
#endif
SRCS = cfbgc.c cfbrrop.c cfbwindow.c \
cfbpntwin.c cfbmskbits.c cfbpixmap.c cfbbitblt.c \
cfbfillsp.c cfbsetsp.c cfbscrinit.c cfballpriv.c \
cfbgetsp.c cfbfillrct.c \
cfbsolidC.c cfbsolidX.c cfbsolidG.c \
cfbtileoddC.c cfbtileoddG.c cfbtile32C.c cfbtile32G.c \
cfbcmap.c cfbzerarcC.c cfbzerarcX.c cfbzerarcG.c \
cfbfillarcC.c cfbfillarcG.c \
cfbigblt8.c cfbglblt8.c cfbtegblt.c cfbbstore.c \
cfbbltC.c cfbbltX.c cfbbltO.c cfbbltG.c \
cfbpolypnt.c \
cfbbres.c cfbline.c cfbhrzvert.c cfbbresd.c cfbimage.c cfbseg.c \
cfb8lineCO.c cfb8lineX.c cfb8lineG.c cfb8lineCP.c \
cfb8segC.c cfb8segX.c cfb8segG.c cfb8segCS.c \
cfbply1rctC.c cfbply1rctG.c cfbcppl.c $(PSZSRCS) $(XFMODSRC)
OBJS = cfbgc.o cfbrrop.o cfbwindow.o \
cfbgetsp.o cfbfillrct.o \
cfbsolidC.o cfbsolidX.o cfbsolidG.o \
cfbtileoddC.o cfbtileoddG.o cfbtile32C.o cfbtile32G.o \
cfbfillsp.o cfbsetsp.o cfbscrinit.o cfballpriv.o \
cfbpntwin.o cfbmskbits.o cfbpixmap.o \
$(CFBCMAP) cfbzerarcC.o cfbzerarcX.o cfbzerarcG.o \
cfbfillarcC.o cfbfillarcG.o \
cfbigblt8.o cfbglblt8.o cfbtegblt.o cfbbstore.o \
cfbpolypnt.o \
cfbbres.o cfbline.o cfbhrzvert.o cfbbresd.o cfbimage.o cfbseg.o \
cfb8lineCO.o cfb8lineX.o cfb8lineG.o cfb8lineCP.o \
cfb8segCS.o cfb8segX.o cfb8segG.o cfb8segC.o \
cfbbitblt.o cfbbltC.o cfbbltX.o cfbbltO.o cfbbltG.o \
cfbply1rctC.o cfbply1rctG.o cfbcppl.o $(PSZOBJS) $(STIPPLEOBJ) \
$(XFMODOBJ)
#ifdef XFree86Version
PLATFORMDEFS = -DXFREE86
#endif
#if BuildLowMem
LMDEFINES = -ULOWMEMFTPT
#endif
INCLUDES = -I. -I../cfb -I../mfb -I../mi -I../include -I$(XINCLUDESRC) \
-I$(FONTINCSRC) -I$(EXTINCSRC) -I$(SERVERSRC)/Xext
LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln \
../mfb/llib-lmfb.ln ../mi/llib-lmi.ln
DEFINES = $(LMDEFINES) -DPSZ=PixelSize $(PLATFORMDEFS)
#if PixelSize == 8
CFBNAME = cfb
#elif PixelSize == 16
CFBNAME = cfb16
#elif PixelSize == 24
CFBNAME = cfb24
#elif PixelSize == 32
CFBNAME = cfb32
#endif
ModuleObjectRule()
LibraryModuleTarget($(CFBNAME),$(OBJS))
LintLibraryTarget($(CFBNAME),$(SRCS))
NormalLintTarget($(SRCS))
#ifdef LinkDirectory
LinkSourceFile(cfb.h,LinkDirectory)
LinkSourceFile(cfbmap.h,LinkDirectory)
LinkSourceFile(cfballpriv.c,LinkDirectory)
LinkSourceFile(cfbbitblt.c,LinkDirectory)
LinkSourceFile(cfbblt.c,LinkDirectory)
LinkSourceFile(cfbbres.c,LinkDirectory)
LinkSourceFile(cfbbresd.c,LinkDirectory)
LinkSourceFile(cfbbstore.c,LinkDirectory)
LinkSourceFile(cfbcmap.c,LinkDirectory)
LinkSourceFile(cfbcppl.c,LinkDirectory)
LinkSourceFile(cfbfillarc.c,LinkDirectory)
LinkSourceFile(cfbfillrct.c,LinkDirectory)
LinkSourceFile(cfbfillsp.c,LinkDirectory)
LinkSourceFile(cfbgc.c,LinkDirectory)
LinkSourceFile(cfbgetsp.c,LinkDirectory)
LinkSourceFile(cfbhrzvert.c,LinkDirectory)
LinkSourceFile(cfbimage.c,LinkDirectory)
LinkSourceFile(cfbline.c,LinkDirectory)
LinkSourceFile(cfb8line.c,LinkDirectory)
LinkSourceFile(cfbmskbits.c,LinkDirectory)
LinkSourceFile(cfbmskbits.h,LinkDirectory)
LinkSourceFile(cfbpixmap.c,LinkDirectory)
LinkSourceFile(cfbply1rct.c,LinkDirectory)
LinkSourceFile(cfbpntwin.c,LinkDirectory)
LinkSourceFile(cfbpolypnt.c,LinkDirectory)
LinkSourceFile(cfbrrop.c,LinkDirectory)
LinkSourceFile(cfbrrop.h,LinkDirectory)
LinkSourceFile(cfbscrinit.c,LinkDirectory)
LinkSourceFile(cfbsetsp.c,LinkDirectory)
LinkSourceFile(cfbsolid.c,LinkDirectory)
LinkSourceFile(cfbigblt8.c,LinkDirectory)
LinkSourceFile(cfbglblt8.c,LinkDirectory)
LinkSourceFile(cfbtegblt.c,LinkDirectory)
LinkSourceFile(cfbtileodd.c,LinkDirectory)
LinkSourceFile(cfbtile32.c,LinkDirectory)
LinkSourceFile(cfbwindow.c,LinkDirectory)
LinkSourceFile(cfbzerarc.c,LinkDirectory)
LinkSourceFile(cfb8bit.h,LinkDirectory)
#if PixelSize == 8
LinkSourceFile(cfb8bit.c,LinkDirectory)
LinkSourceFile(cfb8cppl.c,LinkDirectory)
LinkSourceFile(cfbpush8.c,LinkDirectory)
LinkSourceFile(cfbrctstp8.c,LinkDirectory)
LinkSourceFile(cfbteblt8.c,LinkDirectory)
#ifdef MipsArchitecture
LinkSourceFile(stipmips.s,LinkDirectory)
#endif
#ifdef SparcArchitecture
LinkSourceFile(stipsparc.s,LinkDirectory)
#endif
#endif
#if PixelSize == 32
#ifdef SparcArchitecture
LinkSourceFile(stipsprc32.s,LinkDirectory)
#endif
#endif
#endif
ObjectFromSpecialSource(cfbseg,cfbline,-DPOLYSEGMENT)
ObjectFromSpecialSource(cfbfillarcC,cfbfillarc,-DRROP=GXcopy)
ObjectFromSpecialSource(cfbfillarcG,cfbfillarc,-DRROP=GXset)
ObjectFromSpecialSource(cfbzerarcC,cfbzerarc,-DRROP=GXcopy)
ObjectFromSpecialSource(cfbzerarcX,cfbzerarc,-DRROP=GXxor)
ObjectFromSpecialSource(cfbzerarcG,cfbzerarc,-DRROP=GXset)
ObjectFromSpecialSource(cfbbltC,cfbblt,-DMROP=Mcopy)
ObjectFromSpecialSource(cfbbltX,cfbblt,-DMROP=Mxor)
ObjectFromSpecialSource(cfbbltO,cfbblt,-DMROP=Mor)
ObjectFromSpecialSource(cfbbltG,cfbblt,-DMROP=0)
ObjectFromSpecialSource(cfbsolidC,cfbsolid,-DRROP=GXcopy)
ObjectFromSpecialSource(cfbsolidX,cfbsolid,-DRROP=GXxor)
ObjectFromSpecialSource(cfbsolidG,cfbsolid,-DRROP=GXset)
ObjectFromSpecialSource(cfbtileoddC,cfbtileodd,-DMROP=Mcopy)
ObjectFromSpecialSource(cfbtileoddG,cfbtileodd,-DMROP=0)
ObjectFromSpecialSource(cfbtile32C,cfbtile32,-DMROP=Mcopy)
ObjectFromSpecialSource(cfbtile32G,cfbtile32,-DMROP=0)
ObjectFromSpecialSource(cfb8lineCO,cfb8line,-DRROP=GXcopy)
ObjectFromSpecialSource(cfb8lineCP,cfb8line,-DRROP=GXcopy -DPREVIOUS)
ObjectFromSpecialSource(cfb8lineX,cfb8line,-DRROP=GXxor)
ObjectFromSpecialSource(cfb8lineG,cfb8line,-DRROP=GXset)
ObjectFromSpecialSource(cfb8segCS,cfb8line,-DRROP=GXcopy -DPOLYSEGMENT -DWIDTH_SHIFT)
ObjectFromSpecialSource(cfb8segC,cfb8line,-DRROP=GXcopy -DPOLYSEGMENT)
ObjectFromSpecialSource(cfb8segX,cfb8line,-DRROP=GXxor -DPOLYSEGMENT)
ObjectFromSpecialSource(cfb8segG,cfb8line,-DRROP=GXset -DPOLYSEGMENT)
ObjectFromSpecialSource(cfbply1rctC,cfbply1rct,-DRROP=GXcopy)
ObjectFromSpecialSource(cfbply1rctG,cfbply1rct,-DRROP=GXset)
SpecialCObjectRule(cfbglblt8,$(_NOOP_),$(STIPPLEDEF))
SpecialCObjectRule(cfbpixmap,$(ICONFIGFILES),$(_NOOP_))
SpecialCObjectRule(cfbcmap,$(ICONFIGFILES),$(EXT_DEFINES) $(GLX_DEFINES))
#if PixelSize == 8
ObjectFromSpecialSource(cfbglrop8,cfbglblt8,-DGLYPHROP)
#ifdef MipsArchitecture
stipmipste.s: stipmips.s
$(RM) $@
$(LN) stipmips.s stipmipste.s
clean::
$(RM) stipmipste.s
stipmipste.o: stipmipste.s
$(AS) -o $@ -DTETEXT stipmipste.s
#endif
#ifdef SparcArchitecture
stipsparcte.s: stipsparc.s
$(RM) $@
$(LN) stipsparc.s stipsparcte.s
clean::
$(RM) stipsparcte.s
stipsparc.o: stipsparc.s
$(CPP) stipsparc.s AsmDefines | $(AS) -o $@ -
stipsparcte.o: stipsparcte.s
$(CPP) -DTETEXT stipsparcte.s AsmDefines | $(AS) -o $@ -
#endif
#endif
#if PixelSize == 32
#ifdef SparcArchitecture
stipsprcte32.s: stipsprc32.s
$(RM) $@
$(LN) stipsprc32.s stipsprcte32.s
clean::
$(RM) stipsprcte32.s
stipsprc32.o: stipsprc32.s
$(CPP) stipsprc32.s AsmDefines | $(AS) -o $@ -
stipsprcte32.o: stipsprcte32.s
$(CPP) -DTETEXT stipsprcte32.s AsmDefines | $(AS) -o $@ -
#endif
#endif
InstallLibraryModule($(CFBNAME),$(MODULEDIR),.)
#ifndef OS2Architecture
DependTarget()
#endif
InstallDriverSDKLibraryModule($(CFBNAME),$(DRIVERSDKMODULEDIR),.)
#if PixelSize == 8
InstallDriverSDKNonExecFile(cfb.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(cfb16.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(cfb24.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(cfb32.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(cfbmap.h,$(DRIVERSDKINCLUDEDIR))
InstallDriverSDKNonExecFile(cfbunmap.h,$(DRIVERSDKINCLUDEDIR))
#endif
|