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
109 #ifdef i386Architecture
110 # ifndef OptimizedCDebugFlags
111 # define OptimizedCDebugFlags -O2 -fno-strict-aliasing
113 # if OSMajorVersion < 1
114 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
116 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
118 # if OSMajorVersion == 1 && OSMinorVersion >= 1 || OSMajorVersion >= 2
119 # define ServerExtraSysLibs -li386
122 # ifndef OptimizedCDebugFlags
123 # define OptimizedCDebugFlags -O2 -fno-strict-aliasing
125 # if defined(SparcArchitecture)
126 # define ServerOSDefines -DDDXOSINIT
128 # define ServerOSDefines /**/
131 #ifdef i386Architecture
132 # define ServerExtraDefines GccGasOption XFree86ServerDefines
133 # ifndef XFree86ConsoleDefines
134 # define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
137 # define ServerExtraDefines GccGasOption
140 #define StandardDefines -DCSRG_BASED
141 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
143 #if OSMajorVersion > 0
144 # ifndef BuildDynamicLoading
145 # define BuildDynamicLoading YES
149 #ifndef ExtraLibraries
150 #define ExtraLibraries /**/
153 # define UseGnuMalloc YES
155 #ifndef GnuMallocLibrary
156 #define GnuMallocLibrary -lgnumalloc
160 * Make & install Features
163 #define HasMakefileSafeInclude YES
164 #define IncludeMakefile(file) @@# dependencies are in .depend
165 #define DependFileName .depend
166 #define AvoidNullMakeCommand YES
167 #define StripInstalledPrograms YES
168 #define CompressAllFonts YES
169 #define DefaultUserPath .:/bin:/usr/bin:/usr/local/bin:$(BINDIR)
170 #define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
171 #define BuildLibPathVar LD_LIBRARY_PATH
175 # define InstallCmd /usr/bin/install
178 #ifndef ExtraFilesToClean
179 # define ExtraFilesToClean *.core
183 * Documentation formatting
185 #define NeqnCmd neqn -Tlatin1
186 #define EqnCmd eqn -Tps
187 #define TroffCmd groff -Tps
188 #define M4Cmd /usr/bin/m4
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