]> git.sesse.net Git - rdpsrv/blob - Xserver/config/cf/sgi.cf
Support RDP5 logon packets.
[rdpsrv] / Xserver / config / cf / sgi.cf
1 XCOMM platform:  $TOG: sgi.cf /main/45 1997/06/18 18:01:03 kaleb $
2
3 #ifndef OSName
4 # define OSName         DefaultOSName
5 #endif
6 #ifndef OSMajorVersion
7 # define OSMajorVersion DefaultOSMajorVersion
8 #endif
9 #ifndef OSMinorVersion
10 # define OSMinorVersion DefaultOSMinorVersion
11 #endif
12 #ifndef OSTeenyVersion
13 # define OSTeenyVersion DefaultOSTeenyVersion 
14 #endif
15 XCOMM operating system: OSName (OSMajorVersion.OSMinorVersion.OSTeenyVersion)
16
17 #if OSMajorVersion < 4
18 /* We do not guarantee this will work */
19 #define BootstrapCFlags         -DX_WCHAR -DX_LOCALE -DX_USEBFUNCS -DSYSV
20 #define StandardDefines         -DX_WCHAR -DX_LOCALE -DX_USEBFUNCS -DSYSV
21 #define SetTtyGroup             NO
22 #else
23 #define HasPlugin               YES
24 #define SetTtyGroup             YES
25 #define ExtraFilesToClean       so_locations
26 #endif
27
28 #if OSMajorVersion < 5
29 #define SystemV                 YES
30 #define XawI18nDefines          -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
31 #else
32 #define BootstrapCFlags         -DSVR4
33 #define StandardDefines         -DSVR4
34 #define SystemV4                YES
35 #define HasWChar32              YES
36 #define HasVFork                NO
37 #if OSMajorVersion < 6
38 #define XawI18nDefines          -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
39 #else
40 #define XawI18nDefines          -DHAS_WCHAR_H -DHAS_ISW_FUNCS
41 #endif
42 #define AllocateLocalDefines    -DINCLUDE_ALLOCA_H
43 #ifndef ExtraLoadFlags
44 #define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
45 #endif
46 #endif
47
48 /*
49  * To build 64-bit binaries define Mips64Architecture in your site.def or
50  * host.def file. This is usually on done at the X Consortium to test
51  * big endian 64-bit cleanliness.
52  * To build 32-bit binaries using the old 32-bit mode, define
53  * NoMipsN32Archtecture in your site.def or host.def file.
54  * Otherwise the default is to use the "new 32" mode as requested by SGI.
55  */
56 #ifndef MipsN32Architecture
57 #if !defined(Mips64Architecture) && !defined(NoMipsN32Architecture)
58 #define MipsN32Architecture YES
59 #endif
60 #endif
61
62 #ifdef Mips64Architecture
63 # define BuildLibPathVar        _RLD_ROOT=/dev/null LD_LIBRARY64_PATH
64 # define SystemBuildLibPath     /usr/lib64:/lib64
65 # define LdCmd                  ld -64
66 #elif defined(MipsN32Architecture)
67 # define BuildLibPathVar        _RLD_ROOT=/dev/null LD_LIBRARYN32_PATH
68 # define SystemBuildLibPath     /usr/lib32:/lib32
69 # define LdCmd                  ld -n32
70 #else
71 # define BuildLibPathVar        _RLD_ROOT=/dev/null LD_LIBRARY_PATH
72 # define SystemBuildLibPath     /usr/lib:/lib
73 #endif
74 #define HasCplusplus            YES
75 #define Malloc0ReturnsNull      YES     /* IRIX [56].x -lmalloc needs this */
76 #define HasPutenv               YES
77 #define ExecableScripts         YES
78 #define HasNdbm                 YES
79 #define HasPoll                 YES
80 #define ExpandManNames          YES
81 #ifndef BuildXInputExt
82 #define BuildXInputExt          YES
83 #endif
84
85 #if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion > 2)
86 #define NeedVarargsPrototypes   YES
87 #define NeedConstPrototypes     YES
88 #define NeedWidePrototypes      NO
89 #endif
90
91 #include <sgiLib.rules>
92
93 #if OSMajorVersion < 5
94 #define SymbolTables -Wf,-XNp16000,-XNd16000,-XNh2000
95 #define PexSymbolTables -Wf,-XNp15000,-XNd15000,-XNh2000
96 #define ServerSymbolTables -Wf,-XNp8000,-XNh2000,-XNd8000
97 #else
98 #define SymbolTables
99 #define PexSymbolTables 
100 #define ServerSymbolTables
101 #endif
102
103 /* this is for floating point, ANSI cpp */
104 #if OSMajorVersion < 5
105 /* Extra libraries provide : yp, sysV malloc, shared libc, and widechar */
106 # define ExtraLibraries -lsun -lmalloc -lc_s -lw
107 # define sgiCCOptions -xansi -D__STDC__=1 -float
108 #else
109 # if OSMajorVersion < 6
110 #  define sgiCCOptions -xansi
111 # else
112 #  define CppCmd cc -E
113 #  ifdef Mips64Architecture
114 /* set Mips64Architecture in host.def. Usually don't need it but we
115  * (the X Consortium) want a  64-bit big-endian machine to test on. */
116 #   define sgiCCOptions -xansi -mips3 -64
117 #   define DlLibrary /**/
118 #  elif defined(MipsN32Architecture)
119 /* Set MipsN32Architecture to build "new" 32-bit objs with a 32-bit kernel. */
120 #   define sgiCCOptions -xansi -mips3 -n32
121 #  else
122 #   define sgiCCOptions -xansi
123 #  endif
124 #  if OSMinorVersion > 1
125 /* if you haven't installed patch 1361, 1403, or 1645 on IRIX 6.2 then you
126  * must add "#define HasPosixThreads NO" in your site.def or host.def file
127  */
128 #   ifndef HasPosixThreads
129 #    define HasPosixThreads     YES
130 #   endif
131 #   define ThreadedX HasPosixThreads
132 #   define ThreadsLibraries -lpthread
133 /* 
134  * Add "#define HasSgiThreadsPatch1403 NO" to your site.def or host.def if 
135  * that's which patch you have.
136  */
137 #   ifndef HasSgiThreadsPatch1403
138 #    define HasSgiThreadsPatch1403 YES
139 #   endif
140 #   if (HasSgiThreadsPatch1403) 
141 #    define SystemMTDefines -D_POSIX_THREAD_SAFE_FUNCTIONS
142 #   endif
143 #  endif
144 # endif
145 /* SGI's -lsocket -lnsl is broken, at least in 5.2, so override here */
146 # define ExtraLibraries /**/
147 #endif
148
149 #define DefaultCCOptions sgiCCOptions SymbolTables
150 #define PexCCOptions sgiCCOptions PexSymbolTables
151 #define ServerCCOptions sgiCCOptions ServerSymbolTables
152
153 /* For SGI C++ compiler, need to search extra dirs in make depend */
154 #ifndef CplusplusDependIncludes
155 #define CplusplusDependIncludes -I/usr/include/CC
156 #endif
157
158 /* At SGI, we don't need this */
159 #define ConstructMFLAGS         NO      /* build MFLAGS from MAKEFLAGS */
160
161 /* Used only for compressed fonts */
162 #define UNCOMPRESSPATH /usr/bsd/uncompress
163
164 /* Normally used only to conditionally chose the default font path order */
165 #define PrimaryScreenResolution 96
166
167 /* Override Imake.tmpl's "-X" flag */
168 #define LdCombineFlags -r
169
170 /* Installation Build Parameters */
171 #define InstKmemFlags -m 2711 -g sys
172
173 #define ArCmd ar scq
174
175 /* for xdm or anyone else to use */
176 #define DefaultUserPath :/usr/sbin:/usr/bsd:/usr/bin:/bin:$(BINDIR):/etc:/usr/etc
177 #define DefaultSystemPath /usr/sbin:/usr/bsd:/bin:/etc:/usr/bin:/usr/etc:$(BINDIR)
178
179 #ifndef BuildServer
180 #define BuildServer             NO
181 #endif
182 #define ServerOSDefines         -DDDXTIME 
183 /* only need this for binary compatibility with their ddx */
184 #ifndef Mips64Architecture
185 #define ServerExtraDefines      -DNEED_LINEHELPER AllocateLocalDefines
186 #else
187 #define ServerExtraDefines      -D_XSERVER64 -DNEED_LINEHELPER AllocateLocalDefines
188 #endif
189
190 /* Changed to a single shell command for pmake/smake */
191 #if OSMajorVersion < 5
192 /*
193  * NormalLibObjCompile - compile fragment for a library object file
194  *      do ld -x to remove line number symbols for libraries
195  */
196 #define NormalLibObjCompile(options)    ClearmakeOSName                   \
197         $(RM) $@ $*.os \                                                @@\
198         && $(CC) -c options $(CFLAGS) $*.c \                            @@\
199         && $(LD) $(LDSTRIPFLAGS) -r $@ -o $*.os \                       @@\
200         && $(MV) $*.os $@
201 #endif
202
203 #define LibObjCompile(dir,options) ClearmakeOSName                        \
204         $(RM) $@ dir/$@ \                                               @@\
205         && $(CC) -c $(CCOPTIONS) $(ALLDEFINES) options $*.c \           @@\
206         && $(MV) $@ dir/$@
207
208 #ifndef HasMakefileSafeInclude
209 #define HasMakefileSafeInclude YES
210 #endif
211 #ifndef IncludeMakefile
212 #define IncludeMakefile(file) @@sinclude file
213 #endif
214
215 /* needs to find nroff on the system to work */
216 #ifndef ManKeywordsTarget
217 #define ManKeywordsTarget(manpath)                                      @@\
218 man_keywords::                                                          @@\
219         /usr/lib/makewhatis -M $(DESTDIR)manpath $(DESTDIR)manpath/whatis
220 #endif
221
222 #define MotifDefines            -DSYS_DIR -DPORT_NOVFORK -DNO_REGCOMP
223
224 #ifndef CppFileTarget
225 #define CppFileTarget(dst,src,defs,deplist)                             @@\
226 dst::  src deplist                                                      @@\
227         RemoveFile($@)                                                  @@\
228         ClearmakeOSName \
229         $(CPP) CppNoLineInfoOption defs src | CppSedMagic >$@;          @@\
230                                                                         @@\
231 clean::                                                                 @@\
232         RemoveFiles(dst)
233 #endif /* CppFileTarget */