1 XCOMM platform: $XFree86: xc/config/cf/OpenBSD.cf,v 3.1.2.11 1998/02/15 16:08:33 hohndel Exp $
2 XCOMM $OpenBSD: OpenBSD.cf,v 1.11 1997/12/09 03:03:48 gene Exp $
5 #define OSName DefaultOSName OSBinaryType
8 #define OSMajorVersion DefaultOSMajorVersion
10 #ifndef OSMinorVersion
11 #define OSMinorVersion DefaultOSMinorVersion
13 #ifndef OSTeenyVersion
14 #define OSTeenyVersion DefaultOSTeenyVersion
20 XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
28 #define HasSnprintf YES
29 #define HasBSD44Sockets YES
30 #define Malloc0ReturnsNull NO
31 #define SetTtyGroup YES
32 #define DBMLibrary /**/
33 #define HasLibCrypt NO
35 #define HasWChar32 YES
36 #define HasMkstemp YES
44 #ifndef HasGcc2ForCplusplus
45 #define HasGcc2ForCplusplus YES
47 #define GccUsesGas YES
52 #define NeedConstPrototypes YES
53 #define NeedFunctionPrototypes YES
54 #define NeedNestedPrototypes YES
55 #define NeedVarargsPrototypes YES
56 #define NeedWidePrototypes NO
58 #define MkdirHierCmd mkdir -p
60 #define CppCmd /usr/libexec/cpp
61 #define StandardCppDefines -traditional
62 #define PreProcessCmd CppCmd
63 #define PreIncDir DefaultGccIncludeDir
67 #if defined(UseInstalled) && (!defined(XF86LinkKit) || !XF86LinkKit)
68 #define DefaultCCOptions /**/
70 #define DefaultCCOptions -ansi -Dasm=__asm
73 #define GccGasOption -DGCCUSESGAS
74 #define AsmDefines -DUSE_GAS
77 #ifdef i386Architecture
78 # define OptimizedCDebugFlags DefaultGcc2i386Opt
79 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
80 # define ServerExtraSysLibs -li386
82 # define OptimizedCDebugFlags -O2
83 # if defined(SparcArchitecture) || defined(AlphaArchitecture) || defined(AmigaArchitecture) || defined(Sun3Architecture)
84 # define ServerOSDefines -DDDXOSINIT
86 # define ServerOSDefines /**/
89 #if defined(i386Architecture) || defined(ArcArchitecture)
90 # define ServerExtraDefines GccGasOption XFree86ServerDefines
91 # ifndef XFree86ConsoleDefines
92 # if defined(ArcArchitecture)
93 # define XFree86ConsoleDefines -DPCCONS_SUPPORT
95 # define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
99 # if defined(AlphaArchitecture)
100 # define ServerExtraDefines GccGasOption -D_XSERVER64
102 # if !defined(Sun3Architecture)
103 # define ServerExtraDefines GccGasOption
108 #define StandardDefines -DCSRG_BASED
109 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
112 #ifndef ExtraLibraries
113 #define ExtraLibraries /**/
115 #define UseGnuMalloc NO
119 #define AdmDir /var/log
122 * Make & install Features
125 #define HasBsdMake YES
127 #define StripInstalledPrograms YES
128 #define CompressAllFonts YES
129 #define GzipFontCompression YES
130 #define DefaultUserPath /bin:/usr/bin:/usr/local/bin:$(BINDIR)
131 #define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
135 # define InstallCmd /usr/bin/install
138 #ifndef ExtraFilesToClean
139 # define ExtraFilesToClean *.core
143 * Documentation formatting
145 #define NeqnCmd neqn -Tlatin1
146 #define NroffCmd nroff -Tlatin1
147 #define EqnCmd eqn -Tps
148 #define TroffCmd groff -Tps
151 * To use the NetBSD Aperture driver
153 #if defined(i386Architecture)
154 #ifndef HasNetBSDApertureDriver
155 #define HasNetBSDApertureDriver YES
161 XCOMM Man pages need to be formatted when installed, so override the default
165 #define FileManSuffix 5
166 #define ManSourcePath $(MANPATH)/cat
168 #define InstallManPageLong(file,destdir,dest) @@\
171 file.0:: file.man @@\
172 @if [ -f file.man ]; \ @@\
174 cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \ @@\
175 cp /tmp/$$$$.man file.0; \ @@\
176 $(RM) /tmp/$$$$.man; \ @@\
180 MakeDir($(DESTDIR)destdir) @@\
181 -@if [ -f file.0 ]; \ @@\
183 $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
186 #define InstallGenManPageLong(file,destdir,dest,suffix) @@\
187 InstallManPageLong(file,destdir,dest)
189 #define InstallMultipleManSuffix(list,dest,suff) @@\
191 MakeDir($(DESTDIR)dest) @@\
192 case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
193 for i in list; do \ @@\
195 cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \ @@\
196 $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \ @@\
197 $(RM) /tmp/$$$$.suff); \ @@\
200 #define InstallMultipleMan(list,dest) @@\
201 InstallMultipleManSuffix(list,dest,man)
203 #define InstallManPageAliases(file,destdir,aliases) @@\
205 @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
206 for i in aliases; do \ @@\
208 $(RM) $(DESTDIR)destdir/$$i.0;\ @@\
209 (cd $(DESTDIR)/destdir; $(LN) file.0 $$i.0);\ @@\
213 #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\
214 InstallManPageAliases(file,destdir,aliases)
219 * Architecture specific sections - put all architecture dependent
220 * options and setting here into the correct section
224 * Definitions for the alpha architecture
226 #ifdef AlphaArchitecture
229 # include <xf86.rules>
230 # define BuildServer NO
231 # define XnestServer NO
232 # define XVirtualFramebufferServer NO
235 * For the current ECOFF system
237 # define HasSharedLibraries NO
238 # define UseElfFormat NO
239 # define BuildDynamicLoading NO
241 * For the upcoming ELF system
244 # define HasSharedLibraries YES
245 # define UseElfFormat YES
246 # define BuildDynamicLoading YES
249 #endif /* AlphaArchitecture */
253 * Definitions for the i386 architecture
255 #ifdef i386Architecture
258 * For safety reasons, don't install the X server setuid on OpenBSD
261 # define InstallXserverSetUID NO
263 # define BuildDynamicLoading YES
264 # include <xfree86.cf>
266 #endif /* i386Architecture */
270 * Definitions for the m68k architecture (currently amiga, hp300,
271 * mac68k, mvme68k, sun3)
273 #ifdef Mc68020Architecture
276 * Function CSE makes gas -k not recognize external function calls as lazily
277 * resolvable symbols, thus sometimes making ld.so report undefined symbol
278 * errors on symbols found in shared library members that would never be
279 * called. Ask niklas@openbsd.org for details.
281 # define PositionIndependentCFlags -fpic -fno-function-cse
283 #endif /* Mc68020Architecture */
287 * Definitions for the amiga architecture
289 #ifdef AmigaArchitecture
292 # include <xf86.rules>
293 # define BuildServer NO
295 #endif /* AmigaArchitecture */
299 * Definitions for the hp300 architecture
301 #ifdef Hp300Architecture
303 # include <xf86.rules>
304 # define BuildServer NO
306 #endif /* Hp300Architecture */
310 * Definitions for the mac68k architecture
312 #ifdef mac68kArchitecture
314 # include <xf86.rules>
315 # define BuildServer NO
317 #endif /* Mac68kArchitecture */
321 * Definitions for the mvme68k architecture
323 #ifdef Mvme68kArchitecture
325 # include <xf86.rules>
326 # define BuildServer NO
328 #endif /* Mvme68kArchitecture */
332 * Definitions for the sun3 architecture
334 #ifdef Sun3Architecture
336 # include <xf86.rules>
338 # define OptimizedCDebugFlags -O2
339 # define ServerOSDefines -DDDXOSINIT
340 # define BootstrapCFlags -Dsun3
341 # define UnalignedReferencesAllowed YES /* changes _XtCopyArgs() */
342 /* Note: -ansi turns off -Dmc68000 */
343 # define ServerExtraDefines GccGasOption -Dmc68000 -Dmc68020
345 # ifndef Xsun24Server
346 # define Xsun24Server NO
349 # define XsunServer NO
351 # ifndef XsunMonoServer
352 # define XsunMonoServer YES
360 # define BuildXKBlib NO
364 # define BuildPexExt (XsunServer || Xsun24Server)
367 #endif /* Sun3Architecture */
371 * Definitions for the mips architecture (currently arc, pmax)
373 #ifdef MipsArchitecture
376 * Mips ELF shared libs need some special handling.
378 # define PositionIndependentCFlags
379 # define SharedLibraryLoadFlags -x -shared --whole-archive -soname `echo $@ | sed 's/\.[0-9]*$$//'`
380 # define SharedXtReqs -L$(BUILDLIBDIR) $(XLIBONLY) $(SMLIB) $(ICELIB)
381 # define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) $(EXTENSIONLIB)
383 #endif /* MipsArchitecture */
387 * Definitions for the arc architecture
389 #ifdef ArcArchitecture
391 # include <xfree86.cf>
393 #endif /* ArcArchitecture */
397 * Definitions for the pmax architecture
399 #ifdef PmaxArchitecture
401 # include <xf86.rules>
402 # define BuildServer NO
404 #endif /* PmaxArchitecture */
408 * Definitions for the sparc architecture
410 #ifdef SparcArchitecture
412 # include <xf86.rules>
414 # ifndef Xsun24Server
415 # define Xsun24Server YES
418 # define XsunServer YES
420 # ifndef XsunMonoServer
421 # define XsunMonoServer YES
424 #define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
427 # define BuildPexExt (XsunServer || Xsun24Server)
429 #endif /* SparcArchitecture */
432 /* End or architecture specific section */
435 * Generic settings for all architectures
438 #ifndef XVirtualFramebufferServer
440 # define BuildServer YES
441 # define XVirtualFramebufferServer YES
446 # define BuildServer YES
447 # define XnestServer YES
450 #ifndef BuildScreenSaverLibrary
451 # define BuildScreenSaverLibrary YES
454 #ifndef ForceNormalLib
455 # define ForceNormalLib YES
458 #ifndef BuildDynamicLoading
459 # define BuildDynamicLoading NO
463 * XFree86 uses its own (more portable) database routines to speed up
464 * the RGB database lookups
465 * However, if you want to use ndbm anyway, you can set that to NO in
469 # define UseRgbTxt YES
474 # define OSBinaryType [ELF]
476 # define OSBinaryType /**/
480 /* This must come last */
481 #include <bsdLib.rules>