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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
|
XCOMM platform: $XFree86: xc/config/cf/cygwin.cf,v 3.57 2003/12/24 18:58:41 dickey Exp $
#ifndef OSName
# define OSName Cygwin
#endif
#ifndef OSVendor
# define OSVendor Red Hat Inc.
#endif
#ifndef OSMajorVersion
# define OSMajorVersion DefaultOSMajorVersion
#endif
#ifndef OSMinorVersion
# define OSMinorVersion DefaultOSMinorVersion
#endif
#ifndef OSTeenyVersion
# define OSTeenyVersion DefaultOSTeenyVersion
#endif
#define ProjectRoot /usr/X11R6
/* We always want to enable server building */
#define BuildServer YES
#ifndef UnixCpp
# define UnixCpp
#endif
#if !CrossCompiling
# define HasGcc2 YES
#endif /* !CrossCompiling */
#define HasGcc2ForCplusplus YES
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#define ExtraLoadFlags -Wl,--enable-auto-import
#define HasShadowPasswd NO
#define HasLibCrypt YES
#define HasPutenv YES
#define HasPoll NO
#if (OSMajorVersion > 1) || (OSMajorVersion == 1 && OSMinorVersion >= 5)
#define HasStrlcat YES
#endif
#ifndef UseCygIPC
# define UseCygIPC YES
#endif
#if UseCygIPC
# define HasShm YES
# define ServerExtraSysLibs -lcygipc
#else
# define HasShm NO
# define ServerExtraSysLibs /**/
#endif
#define HasSnprintf YES
#ifndef HasMakefileSafeInclude
# define HasMakefileSafeInclude YES
#endif
/*
* Cygwin has Tcl/Tk, but you need to keep the version numbers
* of the libs in sync. These version numbers may change
* occassionally.
*/
#define Hastcl YES
#define Hastk YES
#define TclLibName tcl80
#define TkLibName tk80
#define HasSockets YES
#define GzipFontCompression YES
#define HasZlib YES
#define GzipLibrary -lz.dll
/* We don't need -lm */
#define MathLibrary /**/
/*
* /lib/libtermcap.a doesn't have tgetent, which is needed for
* xc/programs/xterm/resize.exe
*/
#define TermcapLibrary -lncurses.dll
#define AvoidNullMakeCommand YES
#define StripInstalledPrograms YES
#define CompressAllFonts YES
#define Malloc0ReturnsNull NO
#define NeedConstPrototypes YES
#define NeedFunctionPrototypes YES
#define NeedNestedPrototypes YES
#define NeedVarargsPrototypes YES
#define NeedWidePrototypes NO
#define SetTtyGroup YES
#define ExpandManNames YES
#define HasDlopen NO
#define HasGnuMake YES
#define UseGccMakeDepend NO
#define ThreadedX YES
#define HasThreadSafeAPI YES
#define CaseSensitiveFileSystem NO
#define HasBasename NO /* basename() in libc */
#define LnCmd ln -s
#ifndef CcCmd
# define CcCmd gcc
#endif /* CcCmd */
#ifndef CplusplusCmd
# define CplusplusCmd g++
#endif /* CplusplusCmd */
#ifndef AsCmd
# define AsCmd as
#endif /* AsCmd */
#define GccGasOption -DGCCUSESGAS
#define AsmDefines -DUSE_GAS -DGCCUSESGAS
#ifndef LdCmd
# define LdCmd gcc -lautomode
#endif /* LdCmd */
#define MkdirHierCmd mkdir -p
#ifndef CppCmd
# define CppCmd cpp
#endif /* CppCmd */
#ifndef YaccCmd
# define YaccCmd byacc
#endif /* YaccCmd */
#define LexCmd flex -l
#define LexLib -lfl
#define HasFlex YES
#define HasExpat YES
/*
* Cygwin-specific Windows resource compiler command
*/
#ifdef CrossCompileDir
# ifndef WindresCmd
# define WindresCmd Concat3(CrossCompileDir,/,windres)
# endif
#else
# ifndef WindresCmd
# define WindresCmd windres
# endif
#endif
#define PreProcessCmd CcCmd -E
#ifndef PostIncDir
# ifdef CrossCompileDir
# define PostIncDir `CrossCompileDir/CcCmd --print-libgcc-file-name | sed 's,\\\\,/,g' | sed 's,libgcc.a,include,'`
# else
# define PostIncDir `CcCmd --print-libgcc-file-name | sed 's,\\\\,/,g' | sed 's,libgcc.a,include,'`
# endif
#endif
#ifndef ExtraIncDir
# ifdef CrossCompileDir
# define ExtraIncDir CrossCompileDir/../include/w32api
# else
# define ExtraIncDir /usr/include/w32api
# endif
#endif
#define LdCombineFlags -r
/*
* We do not define -ansi yet as newlib (which is Cygwin's library) does not
* define some needed prototypes when -ansi is set, when that is fixed
* we can remove these lines and use the default XFree86 options.
*/
#ifndef DefaultCCOptions
# define DefaultCCOptions /* -ansi -pedantic */ GccWarningOptions
#endif
/*
* Cygwin 1.5.x now includes alloca
*/
#if OSMinorVersion >= 5
# define AllocateLocalDefines -DINCLUDE_ALLOCA_H
#else
# define AllocateLocalDefines -DNO_ALLOCA
#endif
#ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags DefaultGcc2i386Opt
#endif
#define StandardDefines -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE \
-D_X86_ -D__CYGWIN__ -D_XOPEN_SOURCE \
-D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE \
-D_SVID_SOURCE -D_GNU_SOURCE
#define XawI18nDefines -DHAS_WCHAR_H -DHAS_WCTYPE_H \
-DHAS_ISW_FUNCS -DNO_WIDEC_H
#define HasWChar32 YES
#define StandardCppOptions -traditional
/*
* Cygwin only has shared memory support when using the cygipc package,
* or the newer cygserver package.
*/
#if UseCygIPC
# if ThreadedX
# define StandardCppDefines -DHAS_THREADS -DHAS_SHM StandardDefines
# else
# define StandardCppDefines -DHAS_SHM StandardDefines
# endif
#else
# if ThreadedX
# define StandardCppDefines -DHAS_THREADS StandardDefines
# else
# define StandardCppDefines StandardDefines
# endif
#endif
/*
* Do not use XFree86ServerDefines here because it always defines
* XFree86Server. Defining XFree86Server causes fb to not expose its
* fbSetVisualTypesAndMasks. Instead, we create a local
* XWinServerDefines, which has everything that XFree86ServerDefines
* has in it, but it allows us to easily remove the XFree86Server
* define for experimental development purposes.
*/
#define XWinServerDefines -DAVOID_GLYPHBLT -DPIXPRIV -DSINGLEDEPTH \
XFree86DGADefines XFree86XvDefines \
XFree86LoaderDefines -DXFree86Server \
VidModeExtensionDefines \
XFree86XvMCDefines \
SmartScheduleDefines \
DebugDefines XFree86XResDefines \
-DX_BYTE_ORDER=$(X_BYTE_ORDER)
#define ServerOSDefines XWinServerDefines \
-DDDXTIME -DFD_SETSIZE=256 -DDDXOSINIT \
-DDDXOSVERRORF -DDDXOSFATALERROR
#define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
#define ServerExtraDefines -DGCCUSESGAS XWinServerDefines \
AllocateLocalDefines
#define ConnectionFlags -DTCPCONN -DUNIXCONN
#define ExtraLibraries
#define InstUidFlags -m 4711
#define UseRgbTxt YES
#define ExtraFilesToClean *.obj *.orig *.rej junk.c *.exe *.dll *.lib *~
/* IPv6 not yet supported */
#ifndef BuildIPv6
# define BuildIPv6 NO
#endif
/*
* You'll probably want BuildDebug to be YES if you are debugging :)
*/
#define BuildDebug NO
#define XFree86Devel NO
/*
* Xinerama is multiple monitor support and will require special code,
* if it even makes sense to enable such a beast in Cygwin/XFree86.
*/
#define BuildXinerama NO
/*
* PEX and XIE were deprecated on 2001-05-29, as Keith Packard says,
* "they are so broken as to be unusable in real applications," furthermore,
* "neither PEX nor XIE have seen any development for almost a decade".
*
* XIE is the X Image Extension Protocol, not to be confused with
* XInputExt, which is the X Input Extension.
*/
#define BuildPexExt NO
#define BuildXIE NO
/*
* Rush is a non standard extension for cooperation between the glide
* library and the X server. Cygwin/XFree86 will never need Rush,
* as all graphics requests are processed through GDI or DirectDraw.
*/
#define BuildXF86RushExt NO
/*
* DPMS is the Display Power Management System. Cygwin/XFree86 doesn't
* own the display hardware, Windows does, so it doesn't make sense
* for Cygwin/XFree86 to try to provide power management.
*/
#define BuildDPMS NO
#define BuildDPMSExt NO
#define DPMSDefines /**/
#define BuildGlxExt YES
#define BuildXInputExt YES
#define BuildXF86VidModeExt NO
#define BuildXF86DGA NO /* No direct access to hardware */
#define BuildXvExt YES
#define BuildXF86MiscExt NO
#define BuildRender YES
#define BuildRandR NO
#define BuildXF86DRI NO /* No direct access to hardware */
#define BuildXF86DRM NO /* No direct access to hardware */
#define BuildXKB YES
#define BuildXCMiscExt YES
#define BuildTestExt YES
#define BuildMITMiscExt YES
#define BuildSyncExt YES
#define BuildBigReqsExt YES
#define BuildEVI YES
#define BuildXF86BigfontExt YES
#define BuildRECORD YES
#define BuildDBE YES
#define BuildFontCache YES
#define BuildLBX YES
#define BuildCup YES
#define BuildXCSecurity YES
#define BuildAppgroup YES
#define BuildShapeExt YES
#define BuildScanpci NO /* No direct access to hardware */
#define BuildScreenSaverExt NO
#define BuildWindowsWMLibrary YES
/*
* What is Plugin?
*/
#define BuildPlugin NO
/*
* Doing a loadable server would probably take some extra work.
*/
#define DoLoadableServer NO
/*
* Don't build the XFree86 server
*/
#define XF86Server NO
/*
* Try to avoid building anything related to graphics cards
*/
#define XFShadowFB NO
#define XF24_32Bpp NO
#define XF8_16Bpp NO
#define XF8_32Bpp NO
#define XF4Bpp NO
#define XF1Bpp NO
#define XF86VgaHw NO
#define XF86FBDevHw NO
#define XF86XAA NO
#define XF86Ramdac NO
#define XF86I2C NO
#define XF86DDC NO
#define XF86RAC NO
#define XF86Int10 NO
#define XF86AFB NO
#define XF86CardDrivers /**/
/* Server build rules */
#ifndef XnestServer
# define XnestServer YES
#endif
#ifndef BuildXprint
# define BuildXprint YES
#endif
#ifndef XprtServer
# define XprtServer YES
#endif
#ifndef XVirtualFramebufferServer
# define XVirtualFramebufferServer YES
#endif
#define XWinServer YES
/*
* We need libX11 and libXext for the X11 Server
*/
#if XWinServer
# define BuildX11Lib YES
# define BuildXextLib YES
#endif
/*
* 2001-06-19 - SmartScheduler is terribly slow on Cygwin. It causes
* visible delays in updating of windows, cursor position, etc.
*/
#define UseSmartScheduler NO
/*
* --unix option of Cygwin make fools the standard MakeFlagsToShellFlags macro
*/
#define MakeFlagsToShellFlags(makeflags,shellcmd) \
for flag in ${MAKEFLAGS} ''; do \ @@\
case "$$flag" in *=*) ;;--*) ;; *[makeflags]*) shellcmd;; esac; done
#include <cygwin.rules>
#include <xfree86.cf>
|