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
|
XCOMM $XFree86: xc/config/cf/sco5.cf,v 3.15 2003/12/19 02:05:37 dawes Exp $
XCOMM $XdotOrg: xc/config/cf/sco5.cf,v 1.5 2004/09/02 01:10:28 kem Exp $
/*
* This is for SCO Open Server 5.0.6A or later. You must have the
* Execution Environment update (OSS646) installed on 5.0.6 (it
* ships standard in 5.0.7 and later), as well as the Graphics,
* Web and X11 (gwxlibs) package OSS631 installed, which also ships
* standard with 5.0.7 and later.
*
* It is suggested that you use the GNU Development Tools for compiling
* XFree86. Almost no testing has been done with the native development
* system.
*/
#ifndef OSName
#define OSName UNIX System V/386 Open Server Release 5
#endif
#ifndef OSVendor
#define OSVendor SCO-Group
#endif
#ifndef OSMajorVersion
#define OSMajorVersion 5
#endif
#ifndef OSMinorVersion
#define OSMinorVersion 0
#endif
#ifndef OSTeenyVersion
#define OSTeenyVersion 7
#endif
/*
* Note: We define FD_SETSIZE here (as opposed to in ConnectionFlags) to
* guarantee that the same FD_SETSIZE is used. Havoc abounds if we do not
* do this, as some files which include sys/socket.h and sys/types.h will
* have different values for FD_SETSIZE.
*
* Note 2: We also define _SVID3, as this seems to enable more Streams
* based options which are closer to the "desired" state for X11. A by-
* product of this is that we get better signals too.
*/
#ifndef HasGcc2
# define HasGcc2 YES
#endif
#ifndef HasGcc3
# define HasGcc3 NO
#endif
#ifndef HasGcc2ForCplusplus
# define HasGcc2ForCplusplus YES
#endif
#ifndef HasGcc
# if HasGcc2 || HasGcc3
# define HasGcc YES
# endif
#endif
/*
* Although OpenServer does not currently have threads, there are plans
* for it in the near future, and libc/libsocket are already thread
* safe, so use -D_REENTRANT when compiling libraries so that if an
* app that has either the new forthcoming threads, or one that uses
* GNU PTH or FSU pthreads is linked against X, that the libraries are
* safe at least with regards to things like errno and various _r functions.
*/
#ifndef LibraryCCOptions
# define LibraryCCOptions -D_REENTRANT -DFD_SETSIZE=11000 -D_NO_STATIC -DMAXPATHLEN=1024
#endif
#ifndef UseExportLists
# define UseExportLists YES
#endif
#define StandardDefines -DSYSV -Di386 -DSCO325 -D__SCO__
#if HasGcc
# define DefaultCCOptions GccWarningOptions
# ifndef CcCmd
# define CcCmd gcc
# endif
# ifndef DefaultCDebugFlags
# define DefaultCDebugFlags -O6 -fomit-frame-pointer -march=i586 -mcpu=i586
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags -O6 -fomit-frame-pointer -march=i586 -mcpu=i586
# endif
#else
# ifndef CcCmd
# define CcCmd cc -belf
# endif
# define DefaultCCOptions -dy
# ifndef DefaultCDebugFlags
# define DefaultCDebugFlags -O2
# endif
# ifndef OptimizedCDebugFlags
# define OptimizedCDebugFlags -O2
# endif
#endif
#define BuildLibPathVar LD_LIBRARY_PATH
#ifndef HasNCurses
# define HasNCurses YES
#endif
#ifndef NCursesLibName
# define NCursesLibName -lcurses
#endif
#ifndef TermcapLibrary
# define TermcapLibrary -lcurses
#endif
#ifndef BuildXterm
# define BuildXterm BuildClients
#endif
#ifndef UseDeprecatedKeyboardDriver
#define UseDeprecatedKeyboardDriver NO
#endif
#ifndef SCOHasGWXLIBS
# define SCOHasGWXLIBS YES
#endif
#ifndef LogDirectory
# define LogDirectory /var/adm
#endif
#ifndef DoLoadableServer
# define DoLoadableServer YES
#endif
#if DoLoadableServer
# if HasGcc
# define SCODynamicFlags -rdynamic
# else
# define SCODynamicFlags -Wl,-Bexport
# endif
#else
# define SCODynamicFlags /**/
#endif
#ifndef BuildFreetypeDlModule
# define BuildFreetypeDlModule NO
#endif
#ifndef AsmDefines
# define AsmDefines -D__ELF__ -D__PIC__
#endif
#ifndef XawI18nDefines
# define XawI18nDefines -DHAS_WCHAR_H -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
#endif
#ifndef ServerExtraSysLibs
# define ServerExtraSysLibs $(CBRT) -lm SCODynamicFlags
#endif
#ifndef ExtraLibraries
# define ExtraLibraries -lsocket
#endif
#ifndef NeedWidePrototypes
# define NeedWidePrototypes YES
#endif
#define SCOBuildFlags -DFD_SETSIZE=11000 -DMAXPATHLEN=1024 -DPATH_MAX=1024
#define ServerExtraDefines -D_REENTRANT SCOBuildFlags -DDDXTIME XFree86ServerDefines
#ifndef ThreadedX
# define ThreadedX NO
#endif
#ifndef HasThreadSafeAPI
# define HasThreadSafeAPI NO
#endif
#define HasNdbm YES
#define HasVFork YES
#define HasPutenv YES
#define HasSnprintf NO
#define ToolkitStringsABIOptions -intelabi
#define HasSetenv NO
#define HasMkstemp YES
#define ExecableScripts YES
#define HasShadowPasswd YES
#define HasSymLinks YES
#define HasDlopen YES
#define HasShm YES
#define HasStrcasecmp YES
#define HasLdRunPath YES
#define HasPoll YES
#ifndef HasGnuMake
# define HasGnuMake YES
#endif
#if SCOHasGWXLIBS
# define HasExpat YES
# define HasFreetype2 YES
# define HasLibpng YES
# define HasZlib YES
# define HasFontconfig YES
#endif
#define InstallHardcopyDocs NO
#define HasPerl YES
#define HasPerl5 YES
#ifndef ManSourcePath
# define ManSourcePath $(MANPATH)/man
#endif
#define Malloc0ReturnsNull YES
#define RemoveDSDENroffMacros NO
#ifndef CompressManPages
# define CompressManPages NO
#endif
#ifndef HasLibCrypt
# define HasLibCrypt YES
# define SpecialLibCrypt -lcrypt
#endif
#ifndef PosixLibraries
# define PosixLibraries /**/
#endif
#ifndef ForceNormalLib
# define ForceNormalLib NO
#endif
#define SharedLibXmu YES
#define SystemV YES
#define LdCombineFlags -r
#define AvoidNullMakeCommand YES
#define PatheticCpp YES
#define MesaUseX86Asm NO
#define MakeNamedTargetSubdir(dir,flags,subname)\
$(MAKE) -C dir $(MFLAGS) $(PARALLELMFLAGS) flags subname
#define ArCmdBase ar
#ifndef AsCmd
# define AsCmd CcCmd
#endif
#ifndef CppCmd
# define CppCmd /lib/cpp
#endif
#ifndef PreProcessCmd
# define PreProcessCmd CppCmd
#endif
#ifndef RawCppCmd
# define RawCppCmd CppCmd
#endif
#ifndef LdCmd
# define LdCmd CcCmd
#endif
#ifdef HasGcc2
# ifndef SharedLibraryLoadFlags
# define SharedLibraryLoadFlags -shared
# endif
# undef LdCombineFlags
# define LdCombineFlags -nostdlib -r
#endif
#ifndef LexCmd
# define LexCmd /usr/gnu/bin/flex
#endif
#ifndef MakeCmd
# define MakeCmd /usr/gnu/bin/gmake
#endif
#ifndef YaccCmd
# define YaccCmd /usr/gnu/bin/bison -y
#endif
#ifndef InstallCmd
# define InstallCmd /usr/gnu/bin/ginstall
#endif
#ifndef UseSeparateConfDir
# define UseSeparateConfDir NO
#endif
#ifndef BuildHtmlManPages
# define BuildHtmlManPages NO
#endif
#ifndef DefaultUserPath
# define DefaultUserPath /bin:/usr/bin:$(BINDIR):/usr/bin/X11:/usr/gnu/bin:/usr/local/bin:/etc
#endif
#ifndef DefaultSystemPath
# define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/bin/X11
#endif
#define ConnectionFlags -DLOCALCONN -DTCPCONN -DUNIXCONN
#define ExportListGenSource elistgen.usl
#define ShlibExportListOpt(filename) Concat(-Bexport:,filename)
/*
* These settings control the interdependence of the shared libraries.
* Mostly borrowed from darwinLib.tmpl.
*/
#ifndef FixupLibReferences
#define FixupLibReferences() @@\
XMULIBONLY = -lXmu @@\
XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
#endif
#ifndef XawClientLibs
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
#endif
#define SharedXlibi18nReqs $(LDPRELIB) $(XLIBONLY)
#define SharedXfontReqs $(LDPRELIB) $(FONTSTUBLIB) GzipLibrary $(FREETYPE2LIB) $(XLIB)
#define SharedFontencReqs $(LDPRELIB) GzipLibrary
#define SharedGLReqs $(LDPRELIB) $(XLIB)
#define SharedGLUReqs $(LDPRELIB) $(XLIB) $(GLXLIB)
#define SharedOSMesaReqs $(LDPRELIB) $(XLIB) $(GLXLIB)
#define SharedSMReqs $(LDPRELIB) $(ICELIB)
#define SharedX11Reqs $(LDPRELIB) -lsocket
#define SharedXawReqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWREQS) $(XLIB)
#define SharedXaw7Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
#define SharedXaw6Reqs $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
#define SharedXcursorReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedXextReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXiReqs $(LDPRELIB) $(XLIB)
#define SharedXmuReqs $(LDPRELIB) $(XTOOLLIB) $(XLIB)
#define SharedXmuuReqs $(LDPRELIB) $(XONLYLIB)
#define SharedXpReqs $(LDPRELIB) $(XLIB)
#define SharedXpmReqs $(LDPRELIB) $(XLIB)
#define SharedXrandrReqs $(LDPRELIB) $(XRENDERLIB) $(XLIB)
#define SharedXrenderReqs $(LDPRELIB) $(XLIB)
#define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB)
#define SharedXtstReqs $(LDPRELIB) $(XLIB)
#define SharedXvReqs $(LDPRELIB) $(XLIB)
#define SharedDPSReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
#define SharedDPSTKReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(DPSLIB) $(XLIB)
#define SharedOldXReqs $(LDPRELIB) $(XONLYLIB)
#define SharedpsresReqs $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
#define SharedXResReqs $(LDPRELIB) $(XLIB)
#define SharedXfontcacheReqs $(LDPRELIB) $(XLIB)
#define SharedXineramaReqs $(LDPRELIB) $(XLIB)
#define SharedXssReqs $(LDPRELIB) $(XLIB)
#define SharedXvMCReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86miscReqs $(LDPRELIB) $(XLIB)
#define SharedXxf86vmReqs $(LDPRELIB) $(XLIB)
#define SharedxkbfileReqs $(LDPRELIB) $(XONLYLIB)
#define SharedxkbuiReqs $(LDPRELIB) $(XKBFILELIB) $(XONLYLIB)
#define SharedXReqs $(XTOOLLIB) $(XPLIB) $(XLIB)
#define SharedXmReqs $(LDPRELIB) SharedXReqs
#define SharedMrmReqs $(LDPRELIB) $(XMLIB) SharedXReqs
#define SharedUilReqs $(LDPRELIB) $(XMLIB) SharedXReqs
#define ObjectFromAsmSource(src,flags) @@\
@@\
src.o: src.S @@\
RemoveFile(src.o) @@\
$(CC) -c AsmDefines $(DEFINES) $(INCLUDES) flags src.S
#include <scoLib.rules> /* minor changes to sv4Lib.rules */
#include <sv4Lib.rules>
#include <xorg.cf>
|