1 XCOMM platform: $XConsortium: NetBSD.cf /main/16 1996/10/31 14:47:14 kaleb $
5 XCOMM platform: $XFree86: xc/config/cf/NetBSD.cf,v 3.44 1996/10/23 13:07:55 dawes Exp $
8 #define OSName DefaultOSName
10 #ifndef OSMajorVersion
11 #define OSMajorVersion DefaultOSMajorVersion
13 #ifndef OSMinorVersion
14 #define OSMinorVersion DefaultOSMinorVersion
16 /* 1 = A, 2 = B, 3 = C */
17 #ifndef OSTeenyVersion
18 #define OSTeenyVersion DefaultOSTeenyVersion
25 XCOMM operating system: OSName
27 #define LibDir /usr/X11R7/lib/X11
28 #define UsrLibDir /usr/X11R7/lib
29 #define ManDirectoryRoot /usr/X11R7/man
30 #define FontDir /usr/X11R7/lib/X11/fonts
31 #define FontEncDir /usr/X11R7/lib/X11/fonts/encodings
36 #if defined(NetBSDArchitecture) && (OsMajorVersion == 1 && OsMinorVersion >= 2)
41 #define HasSnprintf YES
42 #define HasBSD44Sockets YES
43 #define Malloc0ReturnsNull NO
44 #define SetTtyGroup YES
45 #define DBMLibrary /**/
47 # define HasLibCrypt YES
50 # if OSMajorVersion == 0 && OSMinorVersion == 9 && OSTeenyVersion == 2
52 * Shm memory was removed in 0.9B because it was encumbered.
53 * A free version was added in 0.9C
60 #define HasWChar32 YES
62 * There's a bug in NetBSD 1.0, 1.1 and 1.2 dlsym()
64 #if OSMajorVersion == 1 && OSMinorVersion <= 2
65 # define HasDlsymBug YES
74 #ifndef HasGcc2ForCplusplus
75 #define HasGcc2ForCplusplus YES
77 #define GccUsesGas YES
81 #define NeedConstPrototypes YES
82 #define NeedFunctionPrototypes YES
83 #define NeedNestedPrototypes YES
84 #define NeedVarargsPrototypes YES
85 #define NeedWidePrototypes NO
87 #define MkdirHierCmd mkdir -p
89 #define PerlCmd /usr/pkg/bin/perl
91 #define CppCmd /usr/bin/cpp
92 #define StandardCppDefines -traditional
93 #define PreProcessCmd CppCmd
94 #define PreIncDir /usr/include
99 #define DefaultCCOptions /**/
101 #define DefaultCCOptions -pipe
104 #define CplusplusLibC -lm -lstdc++
106 #define GccGasOption -DGCCUSESGAS
107 #define AsmDefines -DUSE_GAS
110 #ifdef i386Architecture
111 # define OptimizedCDebugFlags -O2
112 # if OSMajorVersion < 1
113 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
115 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
117 # if OSMajorVersion == 1 && OSMinorVersion >= 1 || OSMajorVersion >= 2
118 # define ServerExtraSysLibs -li386
121 # define OptimizedCDebugFlags -O2
122 # if defined(SparcArchitecture)
123 # define ServerOSDefines -DDDXOSINIT
125 # define ServerOSDefines /**/
128 #ifdef i386Architecture
129 # define ServerExtraDefines GccGasOption XFree86ServerDefines
130 # ifndef XFree86ConsoleDefines
131 # define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
134 # define ServerExtraDefines GccGasOption
137 #define StandardDefines -DCSRG_BASED
138 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
140 #if OSMajorVersion > 0
141 # ifndef BuildDynamicLoading
142 # define BuildDynamicLoading YES
146 #ifndef ExtraLibraries
147 #define ExtraLibraries /**/
150 # define UseGnuMalloc YES
152 #ifndef GnuMallocLibrary
153 #define GnuMallocLibrary -lgnumalloc
157 * Make & install Features
160 #define HasMakefileSafeInclude YES
161 #define IncludeMakefile(file) @@# dependencies are in .depend
162 #define DependFileName .depend
163 #define AvoidNullMakeCommand YES
164 #define StripInstalledPrograms YES
165 #define CompressAllFonts YES
166 #define DefaultUserPath .:/bin:/usr/bin:/usr/local/bin:$(BINDIR)
167 #define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
168 #define BuildLibPathVar LD_LIBRARY_PATH
172 # define InstallCmd /usr/bin/install
175 #ifndef ExtraFilesToClean
176 # define ExtraFilesToClean *.core
180 * Documentation formatting
182 #define NeqnCmd neqn -Tlatin1
183 #define EqnCmd eqn -Tps
184 #define TroffCmd groff -Tps
187 * To use the NetBSD Aperture driver
189 #if defined(i386Architecture)
190 #ifndef HasNetBSDApertureDrv
191 #define HasNetBSDApertureDrv NO
195 #define MakeHasPosixVariableSubstitutions YES
198 * ForceSubdirs - force make to build subdirectories
202 #define ForceSubdirs(dirs) @@\
204 @cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \ @@\
205 $(MAKE) $(MFLAGS) PassCDebugFlags all @@\
210 #include <bsdLib.rules>
212 #ifdef i386Architecture
213 # include <xfree86.cf>
217 * Definitions for the SUN server on NetBSD/sparc
219 #ifdef SparcArchitecture
221 #define Xsun24Server NO
224 #define XsunServer YES
226 #ifndef XsunMonoServer
227 #define XsunMonoServer YES
229 #ifndef BuildScreenSaverLibrary
230 #define BuildScreenSaverLibrary YES
233 * XFree86 uses its own (more portable) database routines to speed up
234 * the RGB database lookups
235 * However, if you want to use ndbm anyway, you can set that to NO in
239 #define UseRgbTxt YES
244 * Definition for compiling on MIPS machines
246 #ifdef MipsArchitecture
247 #define PositionIndependentCFlags
248 #define SharedLibraryLoadFlags -x -shared --whole-archive -soname `echo $@ |
249 sed 's/\.[0-9]*$$//'`
250 #define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB)
251 #define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) $(EXTENSIONLIB)
255 /* For DtHelp TIFF processing routines. */
256 #ifdef AMD64Architecture
257 #define LSBBitOrder YES
260 #ifdef ARMArchitecture
261 #define LSBBitOrder YES
264 #ifdef i386Architecture
265 #define LSBBitOrder YES
270 * Generic settings for all architectures
271 * which can be overridden by architecture specific sections above
275 CXXDEPENDINCLUDE != CppCmd -x c++ -Wp,-v < /dev/null \
276 2>&1 | sed -n 's/ \(.*[cg]++.*\)/-I\1/p'
277 #define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
280 #ifndef StandardIncludes
281 # define StandardIncludes -I/usr/pkg/include -I/usr/local/include
285 #define MTop $(TOP)/imports/motif
288 #ifndef TopMotifInclude
289 # define TopMotifInclude /usr/pkg/include
292 #ifndef ExtraLoadFlags
293 # define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH):$(CDE_INSTALLATION_TOP)/lib
297 # define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
300 #ifndef SharedDtSvcReqs
301 # define SharedDtSvcReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
304 #ifndef SharedCsaReqs
305 # define SharedCsaReqs -lXt $(LDPOSTLIBS) -Wl,-rpath,$(USRLIBDIRPATH)
309 #define KornShell /usr/pkg/bin/ksh93