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 # ifndef OptimizedCDebugFlags
112 # define OptimizedCDebugFlags -O2 -fno-strict-aliasing
114 # if OSMajorVersion < 1
115 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
117 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
119 # if OSMajorVersion == 1 && OSMinorVersion >= 1 || OSMajorVersion >= 2
120 # define ServerExtraSysLibs -li386
123 # ifndef OptimizedCDebugFlags
124 # define OptimizedCDebugFlags -O2 -fno-strict-aliasing
126 # if defined(SparcArchitecture)
127 # define ServerOSDefines -DDDXOSINIT
129 # define ServerOSDefines /**/
132 #ifdef i386Architecture
133 # define ServerExtraDefines GccGasOption XFree86ServerDefines
134 # ifndef XFree86ConsoleDefines
135 # define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
138 # define ServerExtraDefines GccGasOption
141 #define StandardDefines -DCSRG_BASED
142 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
144 #if OSMajorVersion > 0
145 # ifndef BuildDynamicLoading
146 # define BuildDynamicLoading YES
150 #ifndef ExtraLibraries
151 #define ExtraLibraries /**/
154 # define UseGnuMalloc YES
156 #ifndef GnuMallocLibrary
157 #define GnuMallocLibrary -lgnumalloc
161 * Make & install Features
164 #define HasMakefileSafeInclude YES
165 #define IncludeMakefile(file) @@# dependencies are in .depend
166 #define DependFileName .depend
167 #define AvoidNullMakeCommand YES
168 #define StripInstalledPrograms YES
169 #define CompressAllFonts YES
170 #define DefaultUserPath .:/bin:/usr/bin:/usr/local/bin:$(BINDIR)
171 #define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
172 #define BuildLibPathVar LD_LIBRARY_PATH
176 # define InstallCmd /usr/bin/install
179 #ifndef ExtraFilesToClean
180 # define ExtraFilesToClean *.core
184 * Documentation formatting
186 #define NeqnCmd neqn -Tlatin1
187 #define EqnCmd eqn -Tps
188 #define TroffCmd groff -Tps
191 * To use the NetBSD Aperture driver
193 #if defined(i386Architecture)
194 #ifndef HasNetBSDApertureDrv
195 #define HasNetBSDApertureDrv NO
199 #define MakeHasPosixVariableSubstitutions YES
202 * ForceSubdirs - force make to build subdirectories
206 #define ForceSubdirs(dirs) @@\
208 @cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \ @@\
209 $(MAKE) $(MFLAGS) PassCDebugFlags all @@\
214 #include <bsdLib.rules>
216 #ifdef i386Architecture
217 # include <xfree86.cf>
221 * Definitions for the SUN server on NetBSD/sparc
223 #ifdef SparcArchitecture
225 #define Xsun24Server NO
228 #define XsunServer YES
230 #ifndef XsunMonoServer
231 #define XsunMonoServer YES
233 #ifndef BuildScreenSaverLibrary
234 #define BuildScreenSaverLibrary YES
237 * XFree86 uses its own (more portable) database routines to speed up
238 * the RGB database lookups
239 * However, if you want to use ndbm anyway, you can set that to NO in
243 #define UseRgbTxt YES
248 * Definition for compiling on MIPS machines
250 #ifdef MipsArchitecture
251 #define PositionIndependentCFlags
252 #define SharedLibraryLoadFlags -x -shared --whole-archive -soname `echo $@ |
253 sed 's/\.[0-9]*$$//'`
254 #define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB)
255 #define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) $(EXTENSIONLIB)
259 /* For DtHelp TIFF processing routines. */
260 #ifdef AMD64Architecture
261 #define LSBBitOrder YES
264 #ifdef ARMArchitecture
265 #define LSBBitOrder YES
268 #ifdef i386Architecture
269 #define LSBBitOrder YES
274 * Generic settings for all architectures
275 * which can be overridden by architecture specific sections above
279 CXXDEPENDINCLUDE != CppCmd -x c++ -Wp,-v < /dev/null \
280 2>&1 | sed -n 's/ \(.*[cg]++.*\)/-I\1/p'
281 #define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
284 #ifndef StandardIncludes
285 # define StandardIncludes -I/usr/pkg/include -I/usr/local/include
289 #define MTop $(TOP)/imports/motif
292 #ifndef TopMotifInclude
293 # define TopMotifInclude /usr/pkg/include
296 #ifndef ExtraLoadFlags
297 # define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH):$(CDE_INSTALLATION_TOP)/lib
301 # define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
304 #ifndef SharedDtSvcReqs
305 # define SharedDtSvcReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
308 #ifndef SharedDtHelpReqs
309 # define SharedDtHelpReqs $(LDPRELIBS) $(ICONVSYSLIB) SharedXReqs -Wl,-rpath,$(USRLIBDIRPATH)
312 #ifndef SharedCsaReqs
313 # define SharedCsaReqs -lXt $(LDPOSTLIBS) -Wl,-rpath,$(USRLIBDIRPATH)
317 #define KornShell /usr/pkg/bin/ksh93