1 XCOMM platform: $Xorg: linux.cf,v 1.3 2000/08/17 19:41:47 cpqbld Exp $
7 XCOMM platform: $XFree86: xc/config/cf/linux.cf,v 3.165 2001/04/19 19:54:43 dawes Exp $
9 #ifndef LinuxElfDefault
10 # define LinuxElfDefault YES
14 # define UseElfFormat LinuxElfDefault
19 # define OSBinaryType [ELF]
21 # ifdef AlphaArchitecture
22 # define OSBinaryType [ECOFF]
24 # define OSBinaryType [a.out]
30 # define OSName DefaultOSName OSBinaryType
34 # define OSVendor /**/
36 #ifndef OSMajorVersion
37 # define OSMajorVersion DefaultOSMajorVersion
39 #ifndef OSMinorVersion
40 # define OSMinorVersion DefaultOSMinorVersion
42 #ifndef OSTeenyVersion
43 # define OSTeenyVersion DefaultOSTeenyVersion
46 #ifndef LinuxDistribution
47 # define LinuxDistribution DefaultLinuxDistribution
49 Add "#define LinuxDistribution Linux<mumble>" to your site.def or host.def.
50 Currently only LinuxSuSE, LinuxRedHat and LinuxDebian will be figured out
52 Valid values are (from the list at www.linux.org in Oct. '97):
69 # define LinuxDistName DefaultLinuxDistName
71 #ifndef LinuxCLibMajorVersion
72 # define LinuxCLibMajorVersion DefaultLinuxCLibMajorVersion
74 #ifndef LinuxCLibMinorVersion
75 # define LinuxCLibMinorVersion DefaultLinuxCLibMinorVersion
77 #ifndef LinuxCLibTeenyVersion
78 # define LinuxCLibTeenyVersion DefaultLinuxCLibTeenyVersion
81 #ifndef LinuxBinUtilsMajorVersion
82 # define LinuxBinUtilsMajorVersion DefaultLinuxBinUtilsMajorVersion
85 XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
86 XCOMM libc: (LinuxCLibMajorVersion./**/LinuxCLibMinorVersion./**/LinuxCLibTeenyVersion)
87 XCOMM binutils: (LinuxBinUtilsMajorVersion)
89 #if LinuxDistribution == LinuxDebian
90 # define SystemManDirectory /usr/share/man
93 # define TkLibDir /usr/lib
94 # define TkIncDir /usr/include
95 # define TkLibName tk8.3
96 # define XF86SetupUsesStaticTk NO
98 # define TclLibDir /usr/lib
99 # define TclIncDir /usr/include
100 # define TclLibName tcl8.3
101 # define XF86SetupUsesStaticTcl NO
102 /* un-comment this when it is un-broken */
103 /* # define JoystickSupport YES */
104 # define InstallXinitConfig YES
105 # define InstallXdmConfig YES
106 # define InstallFSConfig YES
107 # define DebuggableLibraries YES
108 # define ForceNormalLib YES
109 # define BuildSpecsDocs YES
110 # define SpecsDocDirs CTEXT GL ICCCM X11 Xext Xv i18n xterm
111 # define XAppLoadDir EtcX11Directory/app-defaults
112 # define XFileSearchPathDefault Concat4(EtcX11Directory/%L/%T/%N%C,%S:EtcX11Directory/%l/%T/%N%C,%S:EtcX11Directory/%T/%N%C,%S:EtcX11Directory/%L/%T/%N%S:EtcX11Directory/%l/%T/%N%S:EtcX11Directory/%T/%N%S):Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
113 /* the relative symlink created by this rule causes problems for us */
114 # if InstallAppDefFiles
115 # define InstallAppDefaultsLong(file,class) @@\
116 InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
118 # define InstallAppDefaultsLong(file,class) @@\
119 InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
120 # endif /* InstallAppDefFiles */
121 # define SharedLibXdmGreet NO
122 # define LinkGLToUsrInclude NO
123 # define LinkGLToUsrLib NO
124 # define SharedLibFont NO
126 # define BuildGLXLibrary YES
127 # define BuildGLULibrary YES
128 # define BuildRman NO
129 # define BuildHtmlManPages NO
130 # define FSUseSyslog YES
135 # define DebianMaintainer "xfree86@packages.debian.org"
140 # ifdef DebianMaintainer
141 # define BuilderEMailAddr "submit@bugs.debian.org"
142 # define XFree86Devel YES
143 # define BuildAllSpecsDocs YES
144 /* we build-depend on libfreetype6-dev (FreeType 2.x) */
145 # define BuildFreetype2Library NO
146 # define HasFreetype2 YES
147 /* m68k has no 2.4 kernel yet */
148 # ifndef Mc68020Architecture
149 # define HasLinuxInput YES
151 # define HasXdmAuth YES
152 # define HasLatex YES
153 /* at present, glide2 only works on i386 */
154 # ifdef i386Architecture
155 # define HasGlide2 YES
156 # define Glide2IncDir /usr/include/glide
157 # endif /* i386Architecture */
158 /* at present, glide3 only works on alpha and i386 */
159 # if defined(i386Architecture) || defined(AlphaArchitecture)
160 # define HasGlide3 YES
161 # define Glide3IncDir /usr/include/glide3
162 # endif /* i386Architecture || AlphaArchitecture */
163 /* extended instruction set support */
164 # ifdef i386Architecture
165 # define HasMMXSupport YES
166 # define Has3DNowSupport YES
167 /* 2.4 is not yet the official (or predominant) kernel in unstable */
168 # define HasKatmaiSupport NO
169 # endif /* i386Architecture */
170 # endif /* DebianMaintainer */
171 #endif /* LinuxDebian */
173 #if LinuxDistribution == LinuxRedHat
174 #define FSUseSyslog YES
178 * The Linux BinUtils major version. 25 => 2.5.x, which is what is included
181 * This remains for compatibility only.
184 #ifndef BinUtilsMajorVersion
185 # define BinUtilsMajorVersion LinuxBinUtilsMajorVersion
188 #if (LinuxCLibMajorVersion >= 6 || LinuxDistribution == LinuxSuSE)
189 # define LinuxLocaleDefines /**/
191 # define LinuxLocaleDefines -DX_LOCALE
194 #ifndef LinuxAdditionalIncludes
195 # define LinuxAdditionalIncludes /**/
198 #ifndef LinuxGnuSourceDefines
200 # define LinuxGnuSourceDefines /**/
202 # define LinuxGnuSourceDefines -D_GNU_SOURCE
206 #if LinuxCLibMajorVersion >= 6
207 # define LinuxSourceDefines -D_POSIX_C_SOURCE=199309L \
208 -D_POSIX_SOURCE -D_XOPEN_SOURCE \
209 -D_BSD_SOURCE -D_SVID_SOURCE \
210 LinuxAdditionalIncludes LinuxGnuSourceDefines \
212 # define XawI18nDefines -DHAS_WCHAR_H -DHAS_WCTYPE_H -DNO_WIDEC_H
213 # define HasPosixThreads YES
214 # define ThreadedX YES
215 # define HasThreadSafeAPI YES
216 # define ThreadsLibraries -lpthread
217 # define SystemMTDefines -D_REENTRANT
219 # define HasLibCrypt YES
221 /* netscape wraps select but not poll as of communicator 4.72 */
226 # define LinuxSourceDefines -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2 \
227 -D_BSD_SOURCE -D_SVID_SOURCE \
228 LinuxGnuSourceDefines LinuxLocaleDefines
229 # define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
231 # define HasLibCrypt NO
235 #ifndef InstallXloadSetGID
236 #define InstallXloadSetGID NO
239 /* <linux/input.h> support mainly for USB support */
240 #ifndef HasLinuxInput
241 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 4)
242 # define HasLinuxInput YES
246 /* On x86, determine whether to build with MTRR support */
247 #ifndef HasMTRRSupport
248 # ifdef i386Architecture
249 /* There is no certain way to know if <asm/mtrr.h> is available,
250 but it made it into kernel 2.2, so... */
251 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 2)
252 # define HasMTRRSupport YES
254 # define HasMTRRSupport NO
257 # define HasMTRRSupport NO /* no for non-ix86 */
261 #ifndef XF86INT10_BUILD
262 # ifdef i386Architecture
263 # define XF86INT10_BUILD X86VM
265 # define XF86INT10_BUILD X86EMU_GENERIC
269 /* The DRM module requires kernel services that appeared in late 2.1.x
270 kernels and are known to be present in 2.2.x kernels. */
272 # if defined(i386Architecture)
273 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 2)
274 # define BuildXF86DRI YES
276 # define BuildXF86DRI NO
278 # elif defined(AlphaArchitecture)
279 # define BuildXF86DRI YES
280 # elif defined(Arm32Architecture)
281 # define BuildXF86DRI NO
282 # elif defined(HPArchitecture)
283 # define BuildXF86DRI NO
284 # elif defined(x86_64Architecture)
285 # define BuildXF86DRI YES
286 # elif defined(ia64Architecture)
287 # define BuildXF86DRI YES
288 # elif defined(Mc68020Architecture)
289 # define BuildXF86DRI NO
290 # elif defined(MipsArchitecture)
291 # define BuildXF86DRI NO
292 # elif defined(PpcArchitecture)
293 # define BuildXF86DRI YES
294 # elif defined(s390Architecture)
295 # define BuildXF86DRI NO
296 # elif defined(SparcArchitecture)
297 # define BuildXF86DRI YES
299 # define BuildXF86DRI NO
304 * Build shared libGL and the DRI modules without -fPIC. This improves
305 * performance. Do this only on architectures that can handle missing PIC
306 * symbols in shared libraries.
309 # if defined(AlphaArchitecture) || defined(Arm32Architecture) || defined(i386Architecture) || defined(SparcArchitecture)
310 # define BuildLibGlxWithoutPIC YES
314 /* The DRM module requires kernel services that appeared in late 2.1.x
315 kernels and are known to be present in 2.2.x kernels. Unfortunately,
316 the kernel API is a moving target and the module may break with new
317 kernel revisions. So, we'll only build the module for kernels that are
318 known to be supported by the module. */
320 # if defined(i386Architecture) || defined(x86_64Architecture) || defined(ia64Architecture) || defined(SparcArchitecture) || defined(AlphaArchitecture)
321 # if OSMajorVersion == 2
322 /* Only tested for Linux 2.2.0 through 2.2.12 */
323 # if OSMinorVersion == 2 && OSTeenyVersion <= 12
324 # define BuildXF86DRM YES
326 /* Only tested for Linux 2.3.0 through 2.3.18 */
327 # if OSMinorVersion == 3 && OSTeenyVersion <= 18
328 # define BuildXF86DRM YES
330 /* Note: add more conditions when 2.4.x and 2.5.x are released */
331 # define BuildXF86DRM NO
335 /* Note: add more conditions when 3.0.x and 3.1.x are released */
336 # define BuildXF86DRM NO
339 # define BuildXF86DRM NO
344 # if defined(i386Architecture) || defined(x86_64Architecture) || defined(ia64Architecture)
345 /* The AGPGART header file is included in os-support/linux, which
346 allows all drivers that depend on AGP to build properly. */
347 # define HasAgpGart YES
349 # define HasAgpGart NO
353 /* Support for Intel's Katmai Native Instructions, also known as the
354 * Streaming SIMD Extensions, was introduced in the 2.4.x kernels.
356 #ifndef HasKatmaiSupport
357 # ifdef i386Architecture
358 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 4)
359 # define HasKatmaiSupport YES
361 # define HasKatmaiSupport NO
364 # define HasKatmaiSupport NO
369 * Support for MMX isn't present in the Assembler used in Red Hat 4.2, so
370 * don't enable it for libc5 as a reasonable default.
372 #ifndef HasMMXSupport
373 # ifdef i386Architecture
374 # if (LinuxCLibMajorVersion > 5)
375 # define HasMMXSupport YES
377 # define HasMMXSupport NO
380 # define HasMMXSupport NO
385 * Support for 3DNow isn't present in the Assembler used in Red Hat 4.2, so
386 * don't enable it for libc5 as a reasonable default.
388 * XXX This is preliminary.
390 #ifndef Has3DNowSupport
391 # ifdef i386Architecture
392 # if (LinuxCLibMajorVersion > 5)
393 # define Has3DNowSupport YES
395 # define Has3DNowSupport NO
398 # define Has3DNowSupport NO
403 * libGLU doesn't build correctly on a libc5 system.
405 #if !defined(BuildGLULibrary) && (LinuxCLibMajorVersion < 6)
406 # define BuildGLULibrary NO
410 * The Rush extension support.
412 #ifndef BuildXF86RushExt
413 # define BuildXF86RushExt YES
416 #ifndef LinuxFBDevSupport
417 # define LinuxFBDevSupport YES
420 /* For compatibility */
421 #define SourceDefines LinuxSourceDefines
423 #define BuildLibPathVar LD_LIBRARY_PATH
424 #define GccUsesGas YES
428 # define HasDlopen YES
430 #ifndef HasShadowPasswd
432 # define HasShadowPasswd YES
434 # define HasShadowPasswd NO
437 #define HasPutenv YES
439 #define HasSockets YES
440 #if UseElfFormat || defined(AlphaArchitecture)
441 #define HasSnprintf YES
442 #define HasMkstemp YES
444 #if OSMajorVersion >= 2
445 #define HasUsableFileMmap YES
448 #define HasNCurses YES
455 #define AvoidNullMakeCommand YES
456 #ifndef DebuggableLibraries
457 #define DebuggableLibraries NO
459 #define CompressAllFonts YES
460 #define Malloc0ReturnsNull YES
461 #define NeedConstPrototypes YES
462 #define NeedFunctionPrototypes YES
463 #define NeedNestedPrototypes YES
464 #define NeedVarargsPrototypes YES
465 #ifndef NeedWidePrototypes
466 #define NeedWidePrototypes NO
468 #define SetTtyGroup YES
470 #ifndef UseStaticTermcapLib
471 #define UseStaticTermcapLib NO
474 #ifndef HasCookieMaker
475 #define HasCookieMaker YES
476 #define MkCookieCmd mcookie
481 * This will cause builds/installs to terminate on errors, as on other
484 #define BourneShell /bin/sh -e
487 #define MkdirHierCmd mkdir -p
491 # ifdef MipsArchitecture
493 # define AsCmd gcc -c -x assembler-with-cpp
495 # ifndef DoLoadableServer
496 # define DoLoadableServer NO
498 # endif /* MipsArchitecure */
508 # define AsmDefines -D__ELF__
509 # define CplusplusCmd c++
510 # ifndef LinuxUsesNcurses
511 # if LinuxCLibMajorVersion >= 6 || (LinuxDistribution == LinuxSuSE)
512 # define LinuxUsesNcurses YES
514 # define LinuxUsesNcurses NO
517 # ifndef TermcapLibrary
518 # if UseStaticTermcapLib
519 # if LinuxUsesNcurses
520 # define TermcapLibrary StaticLibrary(/usr/lib,ncurses)
522 # define TermcapLibrary StaticLibrary(/usr/lib/termcap,termcap)
525 # if LinuxUsesNcurses
526 # define TermcapLibrary -lncurses
528 # define TermcapLibrary -ltermcap
533 # ifdef AlphaArchitecture
534 # define CcCmd gcc -b alpha-linuxecoff
535 # define CplusplusCmd g++ -b alpha-linuxecoff
536 # define AsCmd /usr/alpha-linuxecoff/bin/as
537 # define LdCmd /usr/alpha-linuxecoff/bin/ld -m alpha
538 # define AsmDefines -DUSE_GAS -U__ELF__
539 # endif /* AlphaArchitecture */
540 # ifdef HPArchitecture
542 # define CplusplusCmd g++
545 # define AsmDefines -DUSE_GAS -U__ELF__
546 # endif /* HPArchitecture */
547 # ifdef x86_64Architecture
549 # define CplusplusCmd g++
552 # define AsmDefines -DUSE_GAS -U__ELF__
553 # endif /* x86_64Architecture */
554 # ifdef ia64Architecture
556 # define CplusplusCmd g++
559 # define AsmDefines -DUSE_GAS -U__ELF__
560 # endif /* ia64Architecture */
561 # ifdef i386Architecture
562 # define CcCmd gcc -b i486-linuxaout
563 # define CplusplusCmd g++ -b i486-linuxaout
564 # define AsCmd /usr/i486-linuxaout/bin/as
565 # define LdCmd /usr/i486-linuxaout/bin/ld -m i386linux
566 # define AsmDefines -DUSE_GAS -U__ELF__
567 # endif /* i386Architecture */
568 # ifdef Mc68020Architecture
569 # define CcCmd gcc -b m68k-linuxaout
570 # define CplusplusCmd g++ -b m68k-linuxaout
571 # define AsCmd /usr/m68k-linuxaout/bin/as
572 # define LdCmd /usr/m68k-linuxaout/bin/ld -m m68klinux
573 # define AsmDefines -DUSE_GAS -U__ELF__
574 # endif /* Mc68020Architecture */
578 # ifdef AlphaArchitecture
579 # define CcCmd gcc -b alpha-linux
580 # define AsCmd /usr/alpha-linux/bin/as
581 # define LdCmd ld -m elf64alpha
582 # define AsmDefines -D__ELF__
583 # define CplusplusCmd c++ -b alpha-linux
584 # endif /* AlphaArchitecture */
585 # ifdef x86_64Architecture
587 # define CplusplusCmd g++
590 # define AsmDefines -D__ELF__
591 # endif /* x86_64Architecture */
592 # ifdef ia64Architecture
594 # define CplusplusCmd g++
597 # define AsmDefines -D__ELF__
598 # endif /* ia64Architecture */
599 # ifdef HPArchitecture
601 # define CplusplusCmd g++
604 # define AsmDefines -D__ELF__
605 # define SharedLibXau YES
606 # endif /* HPArchitecture */
607 # ifdef i386Architecture
608 # define CcCmd gcc -b i486-linux
609 # define AsCmd /usr/i486-linux/bin/as
610 # define LdCmd ld -m elf_i386
611 # define AsmDefines -D__ELF__
612 # define CplusplusCmd c++ -b i486-linux
613 # endif /* i386Architecture */
614 # ifdef Mc68020Architecture
615 # define CcCmd gcc -b m68k-linux
616 # define AsCmd /usr/m68k-linux/bin/as
617 # define LdCmd ld -m m68kelf
618 # define AsmDefines -D__ELF__
619 # define CplusplusCmd c++ -b m68k-linux
620 # endif /* Mc68020Architecture */
625 # define AsmDefines -DUSE_GAS
629 # ifndef DoLoadableServer
630 # ifdef HPArchitecture
631 # define DoLoadableServer NO
633 # define DoLoadableServer YES
638 # define CppCmd /lib/cpp
640 /* Some Linux distributions have yacc, some don't. All have bison. */
641 #define YaccCmd bison -y
642 #define LexCmd flex -l
645 #define PreProcessCmd CcCmd -E
646 #define PostIncDir DefaultGccIncludeDir
647 #define LdCombineFlags -r
649 # define LdPostLib /* Never needed */
651 #define HasWChar32 YES
652 #define StandardCppOptions -traditional
653 #define StandardCppDefines StandardDefines
655 #define HasVarRun YES
656 #define VarDbDirectory $(VARDIR)/lib
658 #ifndef XF86OSCardDrivers
659 # define XF86OSCardDrivers v4l
663 # define HasPlugin YES
664 # define VendorHasX11R6_3libXext YES /* XC or XFree86 >= 3.3.1 */
667 #ifdef i386Architecture
668 # ifndef OptimizedCDebugFlags
669 # define OptimizedCDebugFlags -O
671 # define LinuxMachineDefines -D__i386__
672 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
673 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
674 #endif /* i386Architecture */
676 #ifdef s390Architecture
677 # define DefaultCCOptions -fsigned-char
678 # ifndef OptimizedCDebugFlags
679 # define OptimizedCDebugFlags -O2
681 # define LinuxMachineDefines -D__s390__
682 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
683 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
684 #endif /* s390Architecture */
686 #ifdef AlphaArchitecture
687 # ifndef OptimizedCDebugFlags
688 # define OptimizedCDebugFlags -O
690 # define LinuxMachineDefines -D__alpha__
691 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
692 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64 -DJENSEN_SUPPORT
693 # ifdef UseCompaqMathLibrary
694 # define MathLibrary -lcpml -lm
696 #endif /* AlphaArchitecture */
698 #ifdef Arm32Architecture
699 # define DefaultCCOptions -fsigned-char
700 # ifndef OptimizedCDebugFlags
701 # define OptimizedCDebugFlags -O3
703 # define LinuxMachineDefines -D__arm__ -D__arm32__ -U__arm -Uarm
704 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
705 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
706 #endif /* Arm32Achitecture */
708 #ifdef x86_64Architecture
709 # ifndef OptimizedCDebugFlags
710 # define OptimizedCDebugFlags -O2
712 # define LinuxMachineDefines -D__x86_64__
713 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
714 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
715 #endif /* x86_64Architecture */
717 #ifdef ia64Architecture
718 # ifndef OptimizedCDebugFlags
719 # define OptimizedCDebugFlags -O2
721 # define LinuxMachineDefines -D__ia64__
722 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
723 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
724 #endif /* ia64Architecture */
726 #ifdef Mc68020Architecture
727 # ifndef OptimizedCDebugFlags
728 # define OptimizedCDebugFlags -O2
730 # define LinuxMachineDefines -D__mc68000__
731 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
732 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
733 #endif /* Mc68020Architecture */
735 #ifdef PpcArchitecture
736 # define DefaultCCOptions -fsigned-char
737 # ifndef OptimizedCDebugFlags
738 # define OptimizedCDebugFlags -O
740 # define LinuxMachineDefines -D__powerpc__
741 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
742 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
743 #endif /* PpcArchitecture */
745 #ifdef SparcArchitecture
746 # ifndef OptimizedCDebugFlags
747 # define OptimizedCDebugFlags -O2
749 # define LinuxMachineDefines -D__sparc__
750 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
751 # define ServerExtraDefines -DHAVE_DOMAINS -DGCCUSESGAS XFree86ServerDefines
752 # define AsVISOption -Av9a
753 # ifdef Sparc64Architecture
754 # define AsOutputArchSize 64
756 # define AsOutputArchSize 32
760 #ifdef MipsArchitecture
761 # ifndef OptimizedCDebugFlags
762 # define OptimizedCDebugFlags -O2
764 # define LinuxMachineDefines -D__mips__
765 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
766 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
769 #ifdef HPArchitecture
770 # define OptimizedCDebugFlags -O2
771 # define LinuxMachineDefines -D__hppa__
772 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
773 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
776 #ifdef SuperHArchitecture
777 # ifndef SuperHArchOptFlags
778 # ifdef SuperH4Architecture
779 # define SuperHArchOptFlags -m4
780 # elif defined(SuperH4NOFPUArchitecture)
781 # define SuperHArchOptFlags -m4-nofpu
783 # define SuperHArchOptFlags -m3
786 # ifndef SuperHebArchitecture
787 # ifdef SuperHebArchitecture
788 # define SuperHEndianFlags -mb
790 # define SuperHEndianFlags -ml
793 # ifndef OptimizedCDebugFlags
794 # define OptimizedCDebugFlags -O2 SuperHArchOptFlags SuperHEndianFlags
796 # define LinuxMachineDefines -D__sh__
797 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
798 # define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
801 #ifndef StandardDefines
802 # define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines
806 # define DlLibrary -rdynamic -ldl
808 # define DlLibrary /**/
811 #define ServerExtraSysLibs /**/
814 #define PamLibraries -lpam DlLibrary
817 #ifndef PamMiscLibraries
818 #define PamMiscLibraries -lpam_misc
822 # define ConnectionFlags -DUNIXCONN -DTCPCONN -DDNETCONN
823 # define ExtraLibraries -ldnet
825 # define ConnectionFlags -DUNIXCONN -DTCPCONN
828 /* Some of these man page defaults are overriden in the above OS sections */
830 # define ManSuffix 1x
833 # define ManDir $(MANSOURCEPATH)1
836 # define LibManSuffix 3x
839 # define LibmanDir $(MANSOURCEPATH)3
841 #ifndef FileManSuffix
842 # define FileManSuffix 5x
845 # define FileManDir $(MANSOURCEPATH)5
848 #ifndef StaticLibrary
849 # define StaticLibrary(libpath,libname) -Wl,-Bstatic Concat(-L,libpath) Concat(-l,libname) -Wl,-Bdynamic
852 #ifndef LinkGLToUsrLib
853 # define LinkGLToUsrLib YES
855 # ifndef LinkGLToUsrInclude
856 # define LinkGLToUsrInclude YES
860 #define HasGnuMake YES
862 #define MakeNamedTargetSubdir(dir,flags,subname)\
863 $(MAKE) -C dir $(MFLAGS) $(PARALLELMFLAGS) flags subname
865 #define ArchitectureDefines -DLINUX_ARCHITECTURE
867 #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
868 #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
870 #ifdef s390Architecture
871 # define HasXServer NO
874 #include <lnxLib.rules>
876 # include <kdrive.cf>
878 # include <xfree86.cf>
881 #ifndef XFree86ServerOSDefines
882 # define XFree86ServerOSDefines