1 XCOMM platform: $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
4 #define OSName DefaultOSName
7 #define OSMajorVersion DefaultOSMajorVersion
10 #define OSMinorVersion DefaultOSMinorVersion
12 #ifndef OSTeenyVersion
13 #define OSTeenyVersion DefaultOSTeenyVersion
16 #ifndef LinuxDistribution
17 #define LinuxDistribution DefaultLinuxDistribution
19 Add "#define LinuxDistribution Linux<mumble>" to your site.def or host.def.
20 Currently only LinuxSuSE will be figured out automatically.
21 Valid values are (from the list at www.linux.org in Oct. '97):
37 #ifndef LinuxCLibMajorVersion
38 #define LinuxCLibMajorVersion DefaultLinuxCLibMajorVersion
40 #ifndef LinuxCLibMinorVersion
41 #define LinuxCLibMinorVersion DefaultLinuxCLibMinorVersion
43 #ifndef LinuxCLibTeenyVersion
44 #define LinuxCLibTeenyVersion DefaultLinuxCLibTeenyVersion
46 #ifndef LinuxBinUtilsMajorVersion
47 #define LinuxBinUtilsMajorVersion DefaultLinuxBinUtilsMajorVersion
50 XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
51 XCOMM libc: (LinuxCLibMajorVersion./**/LinuxCLibMinorVersion./**/LinuxCLibTeenyVersion)
52 XCOMM binutils: (LinuxBinUtilsMajorVersion)
55 #if OSMajorVersion > 1 || (OSMajorVersion == 1 && OSMinorVersion > 1)
56 #define UseElfFormat YES
58 #define UseElfFormat NO
61 #define BuildLibPathVar LD_LIBRARY_PATH
64 #define HasGcc2ForCplusplus YES
65 #define GccUsesGas YES
68 #define HasShadowPasswd YES
71 #define HasSockets YES
72 #if (LinuxDistribution == LinuxRedHat)
76 #define AvoidNullMakeCommand YES
77 #define StripInstalledPrograms YES
78 #define CompressAllFonts YES
79 #define Malloc0ReturnsNull YES
80 #define NeedConstPrototypes YES
81 #define NeedFunctionPrototypes YES
82 #define NeedNestedPrototypes YES
83 #define NeedVarargsPrototypes YES
84 #define NeedWidePrototypes NO
85 #define SetTtyGroup YES
88 #if OSMajorVersion == 1 && OSMinorVersion < 2
89 #define CcCmd gcc -b i486-linuxelf
90 #define CplusplusCmd g++ -b i486-linuxelf
91 #define AsCmd /usr/i486-linuxelf/bin/as
92 #define LdCmd ld -m elf_i386
95 #define CplusplusCmd g++
99 #define AsmDefines -D__ELF__
102 #if OSMajorVersion == 1 && OSMinorVersion > 1
103 #define AsCmd /usr/i486-linuxaout/bin/as
104 #define LdCmd ld -m i386linux
109 #define AsmDefines -DUSE_GAS -U__ELF__
111 #define MkdirHierCmd mkdir -p
112 #define CppCmd /lib/cpp
113 #if OSMajorVersion >= 2
116 #define YaccCmd bison -y
118 #define LexCmd flex -l
120 #define PreProcessCmd CcCmd -E
121 #define PostIncDir DefaultGccIncludeDir
122 #define LdCombineFlags -r
123 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
124 #define HasWChar32 YES
125 #define StandardCppDefines -traditional StandardDefines
126 #define ExtensionOSDefines -DXTESTEXT1
128 #if (LinuxDistribution == LinuxSuSE)
129 #define LinuxLocaleDefines /**/
131 #define LinuxLocaleDefines -DX_LOCALE
134 #if LinuxCLibMajorVersion < 6
135 #define LinuxSourceDefines -D_POSIX_SOURCE \
136 -D_BSD_SOURCE -D_SVID_SOURCE LinuxLocaleDefines
138 # define HasLibCrypt NO
141 #define LinuxSourceDefines -D_POSIX_C_SOURCE=199309L \
143 -D_BSD_SOURCE -D_SVID_SOURCE
144 #define HasPosixThreads YES
145 #define ThreadedX YES
146 #define HasThreadSafeAPI YES
147 #define ThreadsLibraries -lpthread
148 #define SystemMTDefines -D_REENTRANT
150 # define HasLibCrypt YES
154 XCOMM This is needed for CDE currently
155 #define CplusplusStandardDefines StandardDefines -fpermissive
157 #ifdef i386Architecture
158 #define OptimizedCDebugFlags DefaultGcc2i386Opt
159 #define LinuxMachineDefines -D__i386__
161 #define HasPlugin YES
162 #define VendorHasX11R6_3libXext YES /* XC or XFree86 3.3.1 */
164 #endif /* i386Architecture */
166 #ifdef AlphaArchitecture
167 #define OptimizedCDebugFlags -O2
168 #define LinuxMachineDefines -D__alpha__
169 #endif /* AlphaArchitecture */
171 #ifdef Mc68020Architecture
172 #define OptimizedCDebugFlags -O2
173 #define LinuxMachineDefines -D__mc68000__
174 #define StandardCppDefines -traditional StandardDefines
175 #endif /* Mc68020Architecture */
177 #define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines
179 #define ConnectionFlags -DUNIXCONN -DTCPCONN
181 /* Some of these man page defaults are overriden in the above OS sections */
183 # define ManSuffix 1x
186 # define ManDir $(MANSOURCEPATH)1
189 # define LibManSuffix 3x
192 # define LibmanDir $(MANSOURCEPATH)3
194 #ifndef FileManSuffix
195 # define FileManSuffix 5x
198 # define FileManDir $(MANSOURCEPATH)5
201 #define ArchitectureDefines -DLINUX_ARCHITECTURE
203 #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
204 #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
206 #include <lnxLib.rules>
207 #include <xfree86.cf>