1 XCOMM platform: $XFree86: xc/config/cf/OpenBSD.cf,v 3.100 2004/01/08 22:51:41 herrb Exp $
2 XCOMM $XdotOrg: xc/config/cf/OpenBSD.cf,v 1.11 2005/06/15 20:03:51 idr Exp $
6 #define OSName DefaultOSName OSBinaryType
9 #define OSMajorVersion DefaultOSMajorVersion
11 #ifndef OSMinorVersion
12 #define OSMinorVersion DefaultOSMinorVersion
14 #ifndef OSTeenyVersion
15 #define OSTeenyVersion DefaultOSTeenyVersion
21 XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
25 #define BinDir /usr/local/bin
26 #define LibDir /usr/local/lib/X11
27 #define UsrLibDir /usr/local/lib
28 #define ManDirectoryRoot /usr/local/man
29 #define FontDir /usr/local/lib/X11/fonts
30 #define FontEncDir /usr/local/lib/X11/fonts/encodings
31 #define LdPreLib -L/usr/X11R6/lib -L/usr/local/lib
32 #define XpmLibDir /usr/X11R6/lib
33 #define XpmIncDir /usr/X11R6/include
34 #define ConfigDir /usr/X11R6/lib/X11/config
35 #define IncRoot /usr/local/include
36 #define TopXInclude -I/usr/X11R6/include
37 #define ImakeCmd imake -DPorts
38 #define DocDir /usr/local/share/doc
39 #define BuildHtmlManPages NO
49 #define HasSnprintf YES
50 #if OSMajorVersion == 2 && OSMinorVersion >= 4 || OSMajorVersion >= 3
51 # define HasStrlcat YES
53 #define HasBSD44Sockets YES
54 #define Malloc0ReturnsNull NO
55 #define SetTtyGroup YES
56 #define DBMLibrary /**/
57 #define HasLibCrypt NO
59 #define HasWChar32 YES
60 #define HasMkstemp YES
61 #define HasSetProcTitle YES
67 # if OSMajorVersion == 2 || OSMajorVersion == 3 && OSMinorVersion < 3
69 # if OSMajorVersion == 2 && OSMinorVersion <= 8
70 # define KrbIVLibraries -lkrb -lkafs -ldes
73 /* Kerberos IV was removed after OpenBSD 3.3 */
77 #define HasUsableFileMmap YES
78 #define HasShadowPasswd NO
79 #define IPv6SocketsAlsoIPv4 NO
81 #define HasArc4Random YES
83 #define HasNCurses YES
84 #define NCursesLibName -lcurses
85 #if defined(TermcapLibrary)
88 #define TermcapLibrary -lcurses
92 #define VarLibDir VarDbDirectory
94 #define InstallXloadSetGID NO
97 # if (OSMajorVersion >= 2)
98 # define HasIssetugid YES
103 # if (OSMajorVersion > 2) || (OSMajorVersion == 2 && OSMinorVersion >= 1)
104 # define HasMktemp YES
106 # define HasMktemp NO
110 /* OpenBSD >= 2.7 has getifaddrs() */
111 #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 7)
112 #define HasGetIfAddrs YES
115 /* OpenBSD >= 2.8 has setusercontext() */
116 #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 7)
117 #define HasSetUserContext YES
120 /* OpenBSD after 2.9 has BSD authentication */
121 #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 9)
122 # define HasBSDAuth YES
125 #define HasXdmAuth YES
127 /* OpenBSD 3.0 and later has getpeereid() */
128 #if OSMajorVersion >= 3
129 # define HasGetpeereid YES
132 /* OpenBSD 3.0 has APM with kqueue interface */
133 #if OSMajorVersion >= 3
134 # define HasApmKqueue YES
137 /* OpenBSD 3.0 has libusb, next versions have libusbhid */
138 #if OSMajorVersion >= 3
139 # define HasLibUsb YES
140 # ifndef HasLibUsbHid
141 # if OSMajorVersion == 3 && OSMinorVersion > 0 || OSMajorVersion > 3
142 # define HasLibUsbHid YES
143 # define UsbHidLib -lusbhid
145 # define HasLibUsbHid NO
146 # define UsbHidLib -lusb
151 /* Use installed X11 includes/libs */
152 # define UseInstalledX11 YES
157 #ifndef HasGcc2ForCplusplus
158 #define HasGcc2ForCplusplus YES
160 #define GccUsesGas YES
164 #define UseGnuMalloc NO
166 #define NeedConstPrototypes YES
167 #define NeedFunctionPrototypes YES
168 #define NeedNestedPrototypes YES
169 #define NeedVarargsPrototypes YES
170 #define NeedWidePrototypes NO
172 #define MkdirHierCmd mkdir -p
175 #define CppCmd /usr/libexec/cpp -traditional
177 #define StandardCppOptions -traditional
178 #define PreProcessCmd CppCmd
179 #define PreIncDir DefaultGccIncludeDir
181 #if OSMajorVersion > 6 || (OSMajorVersion == 6 && OSMinorVersion >= 2)
183 #define CplusplusCmd c++
184 #define CppArgs -Wno-invalid-pp-token
187 #define CplusplusCmd g++
191 #ifndef StandardCppDefines
192 #define StandardCppDefines -traditional CppArgs
196 #define AsCmd cc -c -x assembler
198 #ifndef DefaultCCOptions
199 #if defined(UseInstalled)
200 /* conform to OpenBSD's habits */
201 # define DefaultCCOptions $(COPTS)
203 # ifdef PpcArchitecture
204 # define DefaultCCOptions -pipe -fsigned-char GccWarningOptions
206 # define DefaultCCOptions -pipe GccWarningOptions
211 #define GccGasOption -DGCCUSESGAS
212 #define AsmDefines -DUSE_GAS
214 /* UseElfFormat defaults to YES if __ELF__ set */
217 # undef __ELF__ /* other imake files shouldn't care */
218 # define UseElfFormat YES
220 # define UseElfFormat NO
225 * Increment shared libraries major numbers if using Gcc Stack Protector
226 * (This introduces an ABI change)
228 #ifndef OverrideShlibRevs
229 # define OverrideShlibRevs ProPoliceSupport
232 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
235 #define AdmDir /var/log
239 /* OpenBSD doesn't have gperf in the base install */
240 #define DontRebuildGperfOutput YES
243 * Make & install Features
246 #define HasBsdMake YES
248 #define BuildCyrillicFonts YES
249 #define GzipFontCompression YES
250 #define DefaultUserPath /bin:/usr/bin:/usr/local/bin:$(BINDIR)
251 #define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
253 #define InstUidFlags -m 4755
257 # define InstallCmd /usr/bin/install
260 #ifndef ExtraFilesToClean
261 # define ExtraFilesToClean *.core
265 * Documentation formatting
268 # define NroffCmd /usr/local/bin/nroff -Tascii -c
269 # define TroffCmd /usr/local/bin/nroff -Tps
270 # define HTMLroffCmd /usr/local/bin/nroff -Thtml
271 # define NeqnCmd /usr/local/bin/neqn -Tascii
272 # define EqnCmd /usr/local/bin/eqn -Tps
273 # define TblCmd /usr/local/bin/tbl
275 # define NroffCmd mandoc
276 # define TroffCmd mandoc -Tps
277 # define HTMLroffCmd mandoc -Thtml
285 #ifndef HasCookieMaker
286 # define HasCookieMaker YES
287 # define MkCookieCmd \
288 'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"'
293 * Man pages need to be formatted when installed, so override the default
297 #define FileManSuffix 5
301 #define ManSourcePath $(MANPATH)/cat
303 #define InstallManPageLongBase(file,destdir,dest) @@\
306 file.0:: file.$(MANNEWSUFFIX) @@\
307 @if [ -f file.$(MANNEWSUFFIX) ]; \ @@\
309 cat file.$(MANNEWSUFFIX) | $(NEQN) | $(TBL) | \ @@\
310 $(NROFF) $(MANMACROS) | $(COL) > file.0; \ @@\
314 MakeDir($(DESTDIR)destdir) @@\
315 -@if [ -f file.0 ]; \ @@\
317 $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
323 #define InstallManPageLong(file,destdir,dest) @@\
324 BuildInstallHtmlManPage(file,dest,$(MANSUFFIX)) @@\
326 CppManTarget(file, $(EXTRAMANDEFS)) @@\
328 InstallManPageLongBase(file,destdir,dest)
330 #define InstallGenManPageLong(file,destdir,dest,suffix) @@\
331 BuildInstallHtmlManPage(file,dest,suffix) @@\
333 CppManTarget(file, $(EXTRAMANDEFS)) @@\
335 InstallManPageLongBase(file,destdir,dest)
337 #define InstallMultipleMan(list,dest) @@\
339 MakeDir($(DESTDIR)dest) @@\
340 case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
341 for i in list; do \ @@\
342 (MNAME=`echo $$i | cut -f1 -d.`; \ @@\
344 cat $$i | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) \ @@\
345 | $(COL) > $${MNAME}.0; \ @@\
346 $(INSTALL) -c $(INSTMANFLAGS) $${MNAME}.0 \ @@\
347 $(DESTDIR)dest/$${MNAME}.0; \ @@\
348 $(RM) $${MNAME}.0); \ @@\
351 #define InstallMultipleManSuffix(list,dest,suff) @@\
353 MakeDir($(DESTDIR)dest) @@\
354 case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
355 for i in list; do \ @@\
357 cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) \ @@\
358 | $(COL) > $$i.0; \ @@\
359 $(INSTALL) -c $(INSTMANFLAGS) $$i.0 \ @@\
360 $(DESTDIR)dest/$$i.0; \ @@\
364 #define InstallManPageAliasesBase(file,destdir,aliases) @@\
366 @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
367 for i in aliases; do \ @@\
369 $(RM) $(DESTDIR)destdir/$$i.0;\ @@\
370 (cd $(DESTDIR)/destdir; $(LN) file.0 $$i.0);\ @@\
376 #define InstallManPageAliasesBase(file,destdir,aliases) @@\
378 @SUFFIX=${MANSUFFIX}; \ @@\
379 for i in aliases; do \ @@\
381 $(RM) $(DESTDIR)destdir/$$i.*; \ @@\
382 (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \ @@\
383 $$i.$${SUFFIX})); \ @@\
388 #define InstallManPageAliases(file,destdir,aliases) @@\
389 InstallHtmlManPageAliases(file,aliases,$(MANSUFFIX)) @@\
391 InstallManPageAliasesBase(file,destdir,aliases)
393 #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\
394 InstallHtmlManPageAliases(file,aliases,suffix) @@\
396 InstallManPageAliasesBase(file,destdir,aliases)
400 * InstallFontAliases - generate rules to install font aliases
401 * databases without comments for X11R5 servers
403 #ifndef InstallFontAliasesNoComment
404 #define InstallFontAliasesNoComment(dest) @@\
405 install:: fonts.alias @@\
406 $(RM) _fonts.alias @@\
407 sed -e '/^!/d' -e '/^$$/d' < fonts.alias > _fonts.alias @@\
408 MakeDir($(DESTDIR)dest) @@\
409 $(INSTALL) $(INSTALLFLAGS) $(INSTALLDATFLAGS) _fonts.alias \ @@\
410 $(DESTDIR)dest/fonts.alias @@\
412 #endif /* InstallFontAliasesNoComment */
415 * OpenBSD specific Imake Config files
417 #ifndef LocalConfigFiles
418 #define LocalConfigFiles \
419 OpenBSDLib.rules OpenBSDLib.tmpl
423 * Architecture specific sections - put all architecture dependent
424 * options and setting here into the correct section
429 * Definitions for the alpha architecture
431 #ifdef AlphaArchitecture
433 # if OSMajorVersion == 3 && OSMinorVersion > 1 || OSMajorVersion > 3
434 # define HasWeakSymbols YES
437 /* XXX Xvfb currently causes a linker error: */
438 /* XXX crtbegin.c(.fini+0x10): relocation truncated to fit: BRADDR text */
439 # ifdef XVirtualFramebufferServer
440 # undef XVirtualFramebufferServer
442 # define XVirtualFramebufferServer NO
446 # define XnestServer NO
448 # if (OSMajorVersion < 3)
449 # define HasSharedLibraries NO
453 # if OSMajorVersion == 3 && OSMinorVersion >= 2 || OSMajorVersion > 3
454 # define XorgServer YES
456 # define XorgServer NO
460 /* Definitions for building the XFree86 server */
462 # ifndef HasNetBSDApertureDriver
463 # define HasNetBSDApertureDriver YES
465 # define ServerOSDefines XFree86ServerOSDefines -DDDXOSINIT
466 # define ServerExtraDefines GccGasOption -D_XSERVER64 XFree86ServerDefines
467 # define ServerExtraSysLibs -lalpha
468 # ifndef DoLoadableServer
469 # define DoLoadableServer YES
471 # define XF86OSCardDrivers wsfb
472 # ifndef XFree86ConsoleDefines
473 # define XFree86ConsoleDefines -DWSCONS_SUPPORT -DPCVT_SUPPORT
475 # define UseMatroxHal NO /* Matrox HAL is i386 only */
477 # endif /* XorgServer */
480 #endif /* AlphaArchitecture */
483 * Definitions for the AMD64 architecture
485 #ifdef AMD64Architecture
487 # define HasWeakSymbols YES
489 # define XorgServer YES
491 # ifndef DoLoadableServer
492 # define DoLoadableServer YES
495 # ifndef HasNetBSDApertureDriver
496 # define HasNetBSDApertureDriver YES
499 # define HasAgpGart YES
501 # ifndef DefaultGcc2i386Opt
502 # define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
504 # ifndef OptimizedCDebugFlags
505 # define OptimizedCDebugFlags DefaultGcc2i386Opt
508 # define LdPostLib -L/usr/X11R6/lib -L/usr/local/lib
510 # define ServerExtraSysLibs -lamd64
511 # define ServerExtraDefines GccGasOption -D_XSERVER64 XFree86ServerDefines
513 # ifndef XFree86ConsoleDefines
514 # define XFree86ConsoleDefines -DWSCONS_SUPPORT -DPCVT_SUPPORT
517 # ifndef HasMMXSupport
518 # define HasMMXSupport YES
521 # ifndef HasX86Support
522 # define HasX86Support YES
525 /* For DtHelp TIFF processing routines. */
526 #define LSBBitOrder YES
528 #endif /* AMD64Architecture */
531 * Definitions for the i386 architecture
533 #ifdef i386Architecture
535 # ifndef DoLoadableServer
536 # define DoLoadableServer YES
539 /* Direct rendering (OpenBSD 3.3 and up). */
540 # if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion > 2)
541 # ifndef BuildXF86DRI
542 # define BuildXF86DRI NO
546 # define HasWeakSymbols YES
548 /* To use the NetBSD Aperture driver */
549 # ifndef HasNetBSDApertureDriver
550 # define HasNetBSDApertureDriver YES
553 /* 2.7 and later have support for setting MTRRs */
554 # ifndef HasMTRRSupport
555 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 6)
556 # define HasMTRRSupport YES
558 # define HasMTRRSupport NO
563 * agpgart support (OpenBSD 3.2 and up)
565 # if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion > 1)
567 # define HasAgpGart YES
572 # ifndef DefaultGcc2i386Opt
573 # if (OSMajorVersion == 2 && OSMinorVersion >= 3) || OSMajorVersion > 2
574 /* The GCC strength-reduce bug is fixed for OpenBSD 2.3 and later */
575 # define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
578 # ifndef OptimizedCDebugFlags
579 # define OptimizedCDebugFlags DefaultGcc2i386Opt
581 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
582 # define ServerExtraSysLibs -li386
583 # define LdPostLib -L/usr/X11R6/lib -L/usr/local/lib
584 # define ServerExtraDefines GccGasOption XFree86ServerDefines
585 # ifndef XFree86ConsoleDefines
586 # define XFree86ConsoleDefines -DWSCONS_SUPPORT -DPCVT_SUPPORT
589 # define JoystickSupport NO
591 /* A hack to work around an optimization problem with gcc 2.95.2 */
592 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 6)
593 # define GccOptBug295
596 /* No MMX support in OpenBSD/a.out gas */
597 # ifndef HasMMXSupport
598 # define HasMMXSupport UseElfFormat
602 # ifndef HasX86Support
603 # define HasX86Support UseElfFormat
606 /* For DtHelp TIFF processing routines. */
607 #define LSBBitOrder YES
610 #endif /* i386Architecture */
614 * Definitions for the m68k architecture (currently amiga, hp300,
615 * mac68k, mvme68k, sun3)
617 #ifdef Mc68020Architecture
620 * Function CSE makes gas -k not recognize external function calls as lazily
621 * resolvable symbols, thus sometimes making ld.so report undefined symbol
622 * errors on symbols found in shared library members that would never be
623 * called. Ask niklas@openbsd.org for details.
626 # define PositionIndependentCFlags -fpic -fno-function-cse
627 # define BuildGlxExt NO
628 # define BuildGLXLibrary YES
630 #endif /* Mc68020Architecture */
634 * Definitions for the amiga architecture
636 #ifdef AmigaArchitecture
639 # define BuildServer NO
642 # define ServerExtraDefines -DXFree86Server
645 #endif /* AmigaArchitecture */
649 * Definitions for the hp300 architecture
651 #ifdef Hp300Architecture
654 # define BuildServer NO
656 /* For the X11R5 server */
657 # define CompressAllFonts NO
658 # define InstallFontAliases InstallFontAliasesNoComment
659 # define UseRgbTxt NO
662 # define ServerExtraDefines -DXFree86Server
665 #endif /* Hp300Architecture */
669 * Definitions for the mac68k architecture
671 #ifdef Mac68kArchitecture
674 # define BuildServer NO
677 # define ServerExtraDefines -DXFree86Server
680 #endif /* mac68kArchitecture */
684 * Definitions for the mvme68k architecture
686 #ifdef Mvme68kArchitecture
689 # define BuildServer NO
692 # define ServerExtraDefines -DXFree86Server
695 #endif /* Mvme68kArchitecture */
699 * Definitions for the sun3 architecture
701 #ifdef Sun3Architecture
703 # include <xf86.rules>
705 # define ServerOSDefines -DDDXOSINIT
706 # define BootstrapCFlags -Dsun3
707 # define UnalignedReferencesAllowed YES /* changes _XtCopyArgs() */
708 # define ServerExtraDefines GccGasOption -Dmc68000 -Dmc68020 \
709 -DXFree86Server -DINCLUDE_CG2_HEADER
711 # ifndef Xsun24Server
712 # define Xsun24Server NO
715 # define XsunServer YES
717 # ifndef XsunMonoServer
718 # define XsunMonoServer NO
721 #define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
723 #endif /* Sun3Architecture */
727 * Definitions for the mips architecture (currently sgi)
729 #ifdef MipsArchitecture
731 # define HasWeakSymbols YES
733 # define XorgServer YES
736 # ifndef DoLoadableServer
737 # define DoLoadableServer YES
739 # define XF86CardDrivers wsfb
740 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
744 #endif /* MipsArchitecture */
748 * Definitions for the PowerPC architecture
750 #ifdef PpcArchitecture
752 # define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
753 # ifndef XFree86ConsoleDefines
754 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
757 # if OSMajorVersion == 3 && OSMinorVersion > 1 || OSMajorVersion > 3
758 # define HasWeakSymbols YES
760 # ifndef GccWarningOptions
761 # if defined(XFree86Devel) && XFree86Devel
762 # define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \
763 -Wmissing-prototypes -Wmissing-declarations \
766 # define GccWarningOptions -Wall -Wpointer-arith
771 # define XorgServer YES
774 /* Definitions for building the X server */
776 # define ServerOSDefines XFree86ServerOSDefines -DDDXOSINIT
777 # define ServerExtraDefines GccGasOption XFree86ServerDefines
778 # ifndef DoLoadableServer
779 # define DoLoadableServer YES
781 # define XF86OSCardDrivers wsfb
782 # ifndef XF86CardDrivers
783 # define XF86CardDrivers ati mga glint s3virge sis savage\
786 XF86OSCardDrivers XF86ExtraCardDrivers
788 # ifndef DevelDrivers
789 # define DevelDrivers nv
792 # endif /* XorgServer */
795 #endif /* PpcArchitecture */
798 * Definitions for the sparc architecture
800 #ifdef SparcArchitecture
802 # define BuildXF86MiscExt NO
803 # define BuildMITMiscExt NO
805 # if OSMajorVersion > 3 || OSMajorVersion == 3 && OSMinorVersion >= 2
806 # define HasWeakSymbols YES
809 # if OSMajorVersion == 2 || OSMajorVersion == 3 && OSMinorVersion < 2
810 # define ServerOSDefines -DDDXOSINIT
811 # define ServerExtraDefines -DAVOID_GLYPHBLT -DPIXPRIV -DXFree86Server \
812 DebugDefines -DINCLUDE_CG2_HEADER \
813 -DX_BYTE_ORDER=$(X_BYTE_ORDER)
814 # define XOrgServer NO
816 # define XorgServer YES
821 # ifndef Xsun24Server
822 # define Xsun24Server YES
825 # define XsunServer YES
827 # ifndef XsunMonoServer
828 # define XsunMonoServer YES
830 # ifndef InstallXserverSetUID
831 # define InstallXserverSetUID NO
834 # else /* XF86Server */
836 # ifndef Xsun24Server
837 # define Xsun24Server NO
840 # define XsunServer NO
842 # ifndef XsunMonoServer
843 # define XsunMonoServer NO
845 # ifndef DoLoadableServer
846 # define DoLoadableServer YES
849 # define XF86CardDrivers wsfb
850 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
851 # define BuildXInputExt YES
852 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DDDXOSINIT
853 # define ServerExtraDefines GccGasOption XFree86ServerDefines
857 # define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
859 # define BuildXF86VidModeExt NO
860 # define BuildXF86DGA NO
861 # ifndef BuildXInputExt
862 # define BuildXInputExt NO
865 #endif /* SparcArchitecture */
868 * Definitions for the sparc64 architecture
871 #ifdef Sparc64Architecture
873 # if OSMajorVersion == 3 && OSMinorVersion > 1 || OSMajorVersion > 3
874 # define HasWeakSymbols YES
878 # define XorgServer YES
881 # define ServerExtraDefines GccGasOption -D_XSERVER64 XFree86ServerDefines
882 # define ServerOSDefines XFree86ServerOSDefines -DDDXOSINIT
883 # define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
886 # ifndef DoLoadableServer
887 # define DoLoadableServer YES
889 # define XF86OSCardDrivers wsfb
890 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
894 #endif /* Sparc64Architecture */
897 * Definitions for the vax architecture
899 #ifdef VaxArchitecture
902 # define BuildServer NO
905 /* For the X11R5 server */
906 # define CompressAllFonts NO
907 # define InstallFontAliases InstallFontAliasesNoComment
908 # define UseRgbTxt NO
911 # define ServerExtraDefines -DXFree86Server
912 # define UnalignedReferencesAllowed YES
913 # define HasSharedLibraries NO
914 # define HasDlopen NO
916 # define BuildGlxExt NO
917 # define BuildGLXLibrary NO
920 #endif /* VaxArchitecture */
922 /* End or architecture specific section */
925 * Generic settings for all architectures
926 * which can be overridden by architecture specific sections above
929 #ifdef HasGcc2ForCplusplus
930 CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
931 2>&1 | sed -n 's/^ \(\/.*[cg]++.*\)/-I\1/p'
932 #define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
935 #ifndef StandardDefines
936 # define StandardDefines -DCSRG_BASED
939 #ifndef StandardIncludes
940 # define StandardIncludes -I/usr/X11R6/include -I/usr/local/include
943 #ifndef TopMotifInclude
944 # define TopMotifInclude /usr/local/include
947 #if !defined(OptimizedCDebugFlags)
948 # define OptimizedCDebugFlags -O2
951 #ifndef ServerOSDefines
952 # define ServerOSDefines /**/
955 #ifndef ServerExtraDefines
956 # define ServerExtraDefines GccGasOption
959 #ifndef HasWeakSymbols
960 # define HasWeakSymbols NO
964 * Multi-thread safe libs
966 /* #if HasWeakSymbols == YES && (OSMajorVersion == 2 && OSMinorVersion >= 6 || OSMajorVersion >= 3)
967 # define HasPosixThreads YES
968 # define ThreadedX YES
969 # define NeedUIThrStubs YES
970 # define ThreadsCompileFlag -pthread
971 # define ThreadsLibraries -pthread
972 # define SystemMTDefines -D_REENTRANT
974 # define ThreadedX NO
978 /* Set this to YES when getpwuid_r is added to libc_r */
979 #define HasThreadSafeAPI NO
981 #ifndef ExtraLibraries
982 # define ExtraLibraries /**/
985 #ifndef DoLoadableServer
986 #define DoLoadableServer NO
989 #ifndef XVirtualFramebufferServer
991 # define BuildServer YES
992 # define XVirtualFramebufferServer YES
997 # define BuildServer YES
998 # define XnestServer YES
1001 #ifndef BuildScreenSaverLibrary
1002 # define BuildScreenSaverLibrary YES
1005 #ifndef CompressAllFonts
1006 # define CompressAllFonts YES
1009 #ifndef SharedLibXdmGreet
1010 # define SharedLibXdmGreet NO
1013 #define HasFreetype2 NO
1015 #define BuildXterm BuildClients
1018 * XFree86 uses its own (more portable) database routines to speed up
1019 * the RGB database lookups
1020 * However, if you want to use ndbm anyway, you can set that to NO in
1024 # define UseRgbTxt YES
1027 #ifndef OSBinaryType
1029 # define OSBinaryType [ELF]
1031 # define OSBinaryType /**/
1036 # define HasDlopen YES
1041 # if (OSMajorVersion < 3 || OSMajorVersion == 3 && OSMinorVersion == 0)
1042 # define DlLibrary -ldl
1044 # define DlLibrary -Wl,--export-dynamic
1047 # define DlLibrary /**/
1051 /* Suppress warnings dependant from compiler versions */
1052 #if !defined(GccWarningOptions)
1053 # if (defined __clang__)
1054 # define GccWarningOptions -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result
1056 # define GccWarningOptions -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch
1060 #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
1061 #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
1063 #define CplusplusLibC -lstdc++
1064 #ifndef CplusplusOptions
1065 #define CplusplusOptions GccWarningOptions
1067 #ifndef LibraryCplusplusOptions
1068 #define LibraryCplusplusOptions GccWarningOptions
1071 #define DependFileName .depend
1073 #define ArchitectureDefines -DOPENBSD_ARCHITECTURE
1075 #define BuildLibPathVar LD_LIBRARY_PATH
1078 #define KornShell /usr/local/bin/ksh93
1082 #define DtKornShell /usr/local/dt/bin/dtksh
1085 #define AvoidNullMakeCommand YES
1087 /* This must come last */
1088 #include <bsdLib.rules>