1 XCOMM platform: $XFree86: xc/config/cf/lynx.cf,v 3.12.2.6 1998/02/01 16:03:19 robin Exp $
3 #ifdef i386Architecture
4 # define OSName LynxOS AT
7 # define OSName LynxOS PowerPC
9 #ifdef SparcArchitecture
10 # define OSName LynxOS microSPARC
12 #define OSVendor (LYNX Real-Time Systems, Inc)
13 #define OSMajorVersion 2
14 #define OSMinorVersion 5
15 #define OSTeenyVersion 0
18 #if OSMajorVersion == 2 && OSMinorVersion > 2
20 # ifndef HasGcc2ForCplusplus
21 # define HasGcc2ForCplusplus YES
26 #ifndef HasGcc2ForCplusplus
27 # define HasGcc2ForCplusplus YES
29 #define GccUsesGas YES
32 #define HasShadowPasswd NO
34 # define HasLibCrypt NO
38 #define HasSockets YES
40 #define HasVarDirectory NO
41 #if OSMajorVersion == 2 && OSMinorVersion > 4
42 # define HasBSD44Sockets YES
45 #define HasPosixThreads YES
47 #define HasThreadSafeAPI YES /* only 2.[345].0 ?? */
49 # if OSMajorVersion == 2 && OSMinorVersion == 3
50 # define ThreadsCompileFlags -mposix -mthreads
51 # define ThreadsCplusplusCompileFlags -mposix -mthreads
53 # define ThreadsCompileFlags -mthreads
54 # define ThreadsCplusplusCompileFlags -mthreads
57 # define ThreadsCompileFlags -m
58 # define ThreadsCplusplusCompileFlags -m
60 #if OSMajorVersion == 2 && OSMinorVersion < 3
61 # define ThreadsLibraries /lib/thread/libc.a /lib/thread/libc_p.a
63 #if OSMinorVersion <= 5
64 # define ThreadPreStdAPIDefines -DXPRE_STANDARD_API
66 #define AvoidNullMakeCommand YES
67 #if OSMajorVersion == 2 && OSMinorVersion > 2
68 #define StripInstalledPrograms YES
70 /* under LynxOS AT V2.x /bin/strip will leave file.unstripped around
71 * and fail if installing across different file systems
73 #define StripInstalledPrograms NO
75 #define CompressAllFonts YES
76 #define Malloc0ReturnsNull NO
77 #define NeedConstPrototypes YES
78 #define NeedFunctionPrototypes YES
79 #define NeedNestedPrototypes YES
80 #define NeedVarargsPrototypes YES
81 #define NeedWidePrototypes NO
84 # if OSMajorVersion == 2 && OSMinorVersion == 3
85 # define CplusplusCmd g++ -mposix
86 # define CcCmd gcc -mposix
88 # define CplusplusCmd g++
91 # if OSMajorVersion == 2 && OSMinorVersion == 5
92 # define DefaultCCOptions -ansi -pedantic -fcommon
95 # define CplusplusCmd g++
97 # define DefaultCCOptions -ansi
98 # define GccGasOption -DGCCUSESGAS /* For SuperProbe */
102 #define AsmDefines -DUSE_GAS
103 #define CppCmd /lib/cpp
104 #define YaccCmd bison -y
105 /* make sure we take the right flex on 2.3.0 and 2.4.0 */
106 #define LexCmd /bin/flex
107 #if OSMinorVersion >= 5
112 /* On LynxOS AT 2.3.0 /lib/libm.a is a symbolic link to /lib/libc.a, so we
113 * screw up some POSIX functionality when -lm comes before -lc_p in our
114 * ld argument list. For LynxOS-AT we don't need -lm but for others we
117 #if OSMajorVersion == 2 && OSMinorVersion == 3
118 # define MathLibrary -lc_p -lm
119 # define TermcapLibrary -lc_p -ltermcap
121 # define MathLibrary -lm
122 # define TermcapLibrary -ltermcap
124 #define PreProcessCmd CcCmd -E
126 # define PostIncDir DefaultGccIncludeDir
128 #define LdCombineFlags -r
130 # ifdef i386Architecture
131 # define OptimizedCDebugFlags DefaultGcc2i386Opt
133 # define OptimizedCDebugFlags -O2
136 # define OptimizedCDebugFlags -O
138 #if OSMajorVersion == 2 && OSMinorVersion <= 2
139 # define StandardDefines -DLynx -DLynx_22 -DX_NOT_POSIX
141 # if defined(i386Architecture) && OSMajorVersion == 2 && OSMinorVersion > 4
142 /* need __i386__ for 2.5.0 AT and higher */
143 # define StandardDefines -DLynx -DX_LOCALE -D__i386__
145 # define StandardDefines -DLynx -DX_LOCALE
148 #define StandardCppDefines -traditional StandardDefines
149 #ifdef i386Architecture
150 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
151 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
153 # if defined(SparcArchitecture)
154 # define SparcConsoleDefines -DPATCHED_CONSOLE
155 # define ServerOSDefines -DDDXOSINIT
156 # define ServerExtraDefines -DGCCUSESGAS SparcConsoleDefines
157 # define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
159 # define ServerOSDefines /**/
160 # define ServerExtraDefines -DGCCUSESGAS
163 #define ServerExtraSysLibs $(CBRT) MathLibrary
164 #define ConnectionFlags -DUNIXCONN -DTCPCONN
165 #if OSMajorVersion == 2 && OSMinorVersion < 5
166 # define ExtraLibraries -lbsd
168 # define ExtraLibraries -lbsd -llynx
171 # define ExtraLoadFlags -k
173 #if OSMajorVersion == 2 && OSMinorVersion <= 2
174 # define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
177 /* define HasMotif to YES for LynxOS with Motif
178 * installed according to the notes in README.LynxOS.
184 # ifndef UseInstalledMotif
185 # define UseInstalledMotif YES
187 # ifndef SaberProgramTarget
188 # define SaberProgramTarget(program,srclist,objlist,locallibs,syslibs) /**/
190 # define LocalTmplFile <Motif.tmpl>
191 # define LocalRulesFile <Motif.rules>
194 #define ManSourcePath $(MANPATH)/cat
200 # define ManDir $(MANSOURCEPATH)1
203 # define LibManSuffix 3
206 # define LibmanDir $(MANSOURCEPATH)3
208 #ifndef FileManSuffix
209 # define FileManSuffix 5
212 # define FileManDir $(MANSOURCEPATH)5
215 /* groff 1.09 compiles right out of the box with LynxOS 2.3,
216 * so if you want to have manual pages you should install groff 1.09
217 * before you run 'make install.man'
219 #ifndef InstallManPageLong
220 #define InstallManPageLong(file,destdir,dest) @@\
221 install.man:: file.man @@\
222 MakeDir($(DESTDIR)destdir) @@\
223 $(RM) $(DESTDIR)destdir/dest.$(MANSUFFIX)* @@\
224 groff -e -t -man -Tascii file.man >/tmp/file.man @@\
225 $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.$(MANSUFFIX) @@\
226 echo dest dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX) @@\
228 /^\.SH[ ]*NAME/ { \ @@\
229 getline; sub("\\\\", "(" p ") "); print; exit \ @@\
230 }' p=$(MANSUFFIX) file.man >> $(DESTDIR)destdir/../whatis @@\
234 #ifndef InstallManPageAliases
235 #define InstallManPageAliases(file,destdir,aliases) @@\
237 @(SUFFIX=`echo $(DESTDIR)destdir/file.* | cut -f2,3 -d.`; \ @@\
238 for i in aliases; do (set -x; \ @@\
239 $(RM) $(DESTDIR)destdir/$$i.*; \ @@\
240 (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \ @@\
241 $$i.$${SUFFIX})); \ @@\
242 echo $$i dest $(MANSUFFIX) >> $(DESTDIR)destdir/LIST$(MANSUFFIX); \ @@\
246 #ifndef InstallGenManPageLong
247 #define InstallGenManPageLong(file,destdir,dest,suffix) @@\
248 install.man:: file.man @@\
249 MakeDir($(DESTDIR)destdir) @@\
250 $(RM) $(DESTDIR)destdir/dest.suffix* @@\
251 groff -e -t -man -Tascii file.man >/tmp/file.man @@\
252 $(INSTALL) -c $(INSTMANFLAGS) /tmp/file.man $(DESTDIR)destdir/dest.suffix @@\
253 echo dest dest suffix >> $(DESTDIR)destdir/Concat(LIST,suffix) @@\
255 /^\.SH[ ]*NAME/ { \ @@\
256 getline; sub("\\\\", "(" p ") "); print; exit \ @@\
257 }' p=suffix file.man >> $(DESTDIR)destdir/../whatis @@\
261 #ifndef InstallMultipleMan
262 #define InstallMultipleMan(list,dest) @@\
263 install.man:: list @@\
264 MakeDir($(DESTDIR)dest) @@\
265 @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
266 for i in list; do \ @@\
268 MNAME=`echo $$i | cut -f1 -d.`; \ @@\
269 $(RM) $(DESTDIR)dest/$${MNAME}*; \ @@\
270 groff -e -t -man -Tascii $$i >/tmp/$$i; \ @@\
271 $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$i $(DESTDIR)dest/$${MNAME}.$(MANSUFFIX); \ @@\
272 echo $${MNAME} $${MNAME} $(MANSUFFIX) >> $(DESTDIR)dest/LIST$(MANSUFFIX)\ @@\
274 /^\.SH[ ]*NAME/ { \ @@\
275 getline; sub("\\\\", "(" p ") "); print; exit \ @@\
276 }' p=$(MANSUFFIX) $$i >> $(DESTDIR)dest/../whatis \ @@\
277 $(RM) /tmp/$$i); \ @@\
282 * Definitions for the SUN server on LynxOS SPARC
284 #ifdef SparcArchitecture
285 # define XsunLynxServer YES
286 # define XsunLynxMonoServer NO
287 # define BuildPexExt YES
288 # define BuildXIE YES
289 # ifndef BuildScreenSaverLibrary
290 # define BuildScreenSaverLibrary YES
293 # undef BuildXInputExt
295 # define BuildXInputExt NO
299 # define BuildDPMSExt NO
300 # define BuildXF86MiscExt NO
302 * XFree86 uses its own (more portable) database routines to speed up
303 * the RGB database lookups
304 * However, if you want to use ndbm anyway, you can set that to NO in
308 # define UseRgbTxt YES
312 #ifndef i386Architecture
313 # define BuildXF86DGA NO
316 #include <xfree86.cf>