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
|
XCOMM platform: $XFree86: xc/config/cf/cygwin.cf,v 3.34 2001/12/10 16:22:37 alanh Exp $
#ifndef OSName
#define OSName Cygwin
#endif
#ifndef OSVendor
#define OSVendor Red Hat Inc.
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 1
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 3
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 6
#endif
#define ProjectRoot /usr/X11R6
#define BuildServer YES
#ifndef UnixCpp
#define UnixCpp
#endif
#define HasGcc2ForCplusplus YES
#define GccUsesGas YES
#define UseGas YES
#define GnuCpp YES
#if !CrossCompiling
#define BootstrapCFlags -L/lib/automode.o
#endif
#define ExtraLoadFlags -Wl,--enable-auto-import
#define HasShadowPasswd NO
#define HasLibCrypt YES
#define HasPutenv YES
#define HasPoll NO
#if UseCygIPC
# define HasShm YES
# define ServerExtraSysLibs -lcygipc
#else
# define HasShm NO
# define ServerExtraSysLibs /**/
#endif
#define HasSnprintf YES
/*
* 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 NO
#define HasDlopen NO
#define HasGnuMake YES
#define UseGccMakeDepend NO
#define ThreadedX YES
#define HasThreadSafeAPI YES
#define CaseSensitiveFileSystem NO
#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 ld
#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 PreProcessCmd CcCmd -E
#ifndef PostIncDir
#define PostIncDir `CcCmd --print-libgcc-file-name | sed 's,\\\\,/,g' | sed 's,libgcc.a,include,'`
#endif
#ifndef ExtraIncDir
#define ExtraIncDir /usr/include/w32api
#endif
#define LdCombineFlags -r
/* We don't define -ansi yet as newlib (which is cygwin's library) doesn't
* define some needed prototypes when -ansi is set, when that's fixed
* we can remove these lines and use the default XFree86 options. */
#ifndef DefaultCCOptions
# define DefaultCCOptions /* -ansi -pedantic */ GccWarningOptions
#endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags DefaultGcc2i386Opt
# endif
#define StandardDefines -D__i386__ -DWIN32_LEAN_AND_MEAN -DX_LOCALE -D_X86_ -D__STDC__ -DNO_TCP_H -D__CYGWIN__ -D_XOPEN_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#define HasWChar32 YES
#define StandardCppOptions -traditional
#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
#define ServerOSDefines XFree86ServerDefines -DDDXTIME -DFD_SETSIZE=256 -DDDXOSINIT -DDDXOSVERRORF -DDDXOSFATALERROR
#define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
#define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#define ConnectionFlags -DTCPCONN -DUNIXCONN
#define ExtraLibraries
#define InstUidFlags -m 4711
#define UseRgbTxt YES
#define ExtraFilesToClean *.obj *.orig *.rej junk.c *.exe *.dll *.lib *~
/*
* 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 YES
#define BuildXF86DGA NO /* No direct access to hardware */
#define BuildXvExt YES
#define BuildXF86MiscExt NO
#define BuildRender YES
#define BuildRandR YES
#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
/*
* What is Plugin?
*/
#define BuildPlugin NO
/*
* DPS is the Adobe Display Postscript (r) library.
* It seems that we do not yet have a postscript client library
* to work in conjunction with DPS; the remedy to this may be
* as simple as flipping a build switch or instaling Ghostscript.
* In any case, some work needs to be done before DPS will work.
*/
#define BuildDPS 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 /**/
/*
* These man rules were ganked from linux.cf, verbatim.
* I am not convinced that we need them.
*/
#if 0
/* Some of these man page defaults are overriden in the above OS sections */
#ifndef ManSuffix
# define ManSuffix 1x
#endif
#ifndef ManDir
# define ManDir $(MANSOURCEPATH)1
#endif
#ifndef LibManSuffix
# define LibManSuffix 3x
#endif
#ifndef LibmanDir
# define LibmanDir $(MANSOURCEPATH)3
#endif
#ifndef FileManSuffix
# define FileManSuffix 5x
#endif
#ifndef FileManDir
# define FileManDir $(MANSOURCEPATH)5
#endif
#endif
/* Server build rules */
#define XnestServer YES
#define BuildXprint YES
#define XprtServer YES
#define XVirtualFramebufferServer YES
#define XWinServer YES
/*
* 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>
|