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 $
7 #ifndef OpenBSDArchitecture
10 #define OSName NetBSD 1.2
12 #ifndef OSMajorVersion
13 #define OSMajorVersion 1
15 #ifndef OSMinorVersion
16 #define OSMinorVersion 2
18 /* 1 = A, 2 = B, 3 = C */
19 #ifndef OSTeenyVersion
20 #define OSTeenyVersion 0
26 #define OSName OpenBSD 2.0
28 #ifndef OSMajorVersion
29 #define OSMajorVersion 2
31 #ifndef OSMinorVersion
32 #define OSMinorVersion 0
34 /* 1 = A, 2 = B, 3 = C */
35 #ifndef OSTeenyVersion
36 #define OSTeenyVersion 0
44 XCOMM operating system: OSName
49 #if defined(OpenBSDArchitecture) || \
50 defined(NetBSDArchitecture) && (OsMajorVersion == 1 && OsMinorVersion >= 2)
55 #define HasSnprintf YES
56 #define HasBSD44Sockets YES
57 #define Malloc0ReturnsNull NO
58 #define SetTtyGroup YES
59 #define DBMLibrary /**/
61 # define HasLibCrypt YES
64 # if OSMajorVersion == 0 && OSMinorVersion == 9 && OSTeenyVersion == 2
66 * Shm memory was removed in 0.9B because it was encumbered.
67 * A free version was added in 0.9C
74 #define HasWChar32 YES
76 * There's a bug in NetBSD 1.0, 1.1 and 1.2 dlsym()
78 #if !defined(OpenBSDArchitecture) && OSMajorVersion == 1 && OSMinorVersion <= 2
79 # define HasDlsymBug YES
88 #ifndef HasGcc2ForCplusplus
89 #define HasGcc2ForCplusplus YES
91 #define GccUsesGas YES
95 /* OpenBSD has gcc 2.7.2.1 which fixes the strength-reduce bug */
96 #ifdef OpenBSDArchitecture
97 #define DefaultGcc2i386Opt -O2
100 #define NeedConstPrototypes YES
101 #define NeedFunctionPrototypes YES
102 #define NeedNestedPrototypes YES
103 #define NeedVarargsPrototypes YES
104 #define NeedWidePrototypes NO
106 #define MkdirHierCmd mkdir -p
108 #define CppCmd /usr/libexec/cpp
109 #define StandardCppDefines -traditional
110 #define PreProcessCmd CppCmd
111 #ifndef OpenBSDArchitecture
112 #define PreIncDir /usr/include
114 #define PreIncDir /usr/lib/gcc-lib/i386-unknown-openbsd1.2/2.7.2.1/include
120 #define DefaultCCOptions /**/
122 #define DefaultCCOptions -ansi -Dasm=__asm
125 #define GccGasOption -DGCCUSESGAS
126 #define AsmDefines -DUSE_GAS
129 #ifdef i386Architecture
130 # define OptimizedCDebugFlags -m486 DefaultGcc2i386Opt
131 # if OSMajorVersion < 1
132 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
134 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
136 # if OSMajorVersion == 1 && OSMinorVersion >= 1 || OSMajorVersion >= 2
137 # define ServerExtraSysLibs -li386
140 # define OptimizedCDebugFlags -O2
141 # if defined(SparcArchitecture)
142 # define ServerOSDefines -DDDXOSINIT
144 # define ServerOSDefines /**/
147 #ifdef i386Architecture
148 # define ServerExtraDefines GccGasOption XFree86ServerDefines
149 # ifndef XFree86ConsoleDefines
150 # define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
153 # define ServerExtraDefines GccGasOption
156 #define StandardDefines -DCSRG_BASED
157 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
159 #if OSMajorVersion > 0
160 # ifndef BuildDynamicLoading
161 # define BuildDynamicLoading YES
165 #ifndef ExtraLibraries
166 #define ExtraLibraries /**/
169 #ifndef OpenBSDArchitecture
170 # define UseGnuMalloc YES
172 # define UseGnuMalloc NO
175 #ifndef GnuMallocLibrary
176 #define GnuMallocLibrary -lgnumalloc
180 * Make & install Features
183 #define HasMakefileSafeInclude YES
184 #define IncludeMakefile(file) @@# dependencies are in .depend
185 #define DependFileName .depend
186 #define AvoidNullMakeCommand YES
187 #define StripInstalledPrograms YES
188 #define CompressAllFonts YES
189 #define DefaultUserPath .:/bin:/usr/bin:/usr/local/bin:$(BINDIR)
190 #define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
194 # define InstallCmd /usr/bin/install
197 #ifndef ExtraFilesToClean
198 # define ExtraFilesToClean *.core
202 * Documentation formatting
204 #define NeqnCmd neqn -Tlatin1
205 #define EqnCmd eqn -Tps
206 #define TroffCmd groff -Tps
209 * To use the NetBSD Aperture driver
211 #if defined(i386Architecture)
212 #ifndef HasNetBSDApertureDrv
213 #define HasNetBSDApertureDrv NO
217 #define MakeHasPosixVariableSubstitutions YES
220 * ForceSubdirs - force make to build subdirectories
224 #define ForceSubdirs(dirs) @@\
226 @cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \ @@\
227 $(MAKE) $(MFLAGS) PassCDebugFlags all @@\
231 XCOMM Man pages need to be formatted when installed, so override the default
235 #define FileManSuffix 5
236 #define ManSourcePath $(MANPATH)/cat
238 #define InstallManPageLong(file,destdir,dest) @@\
241 file.0:: file.man @@\
242 @if [ -f file.man ]; \ @@\
244 cat file.man | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.man; \ @@\
245 cp /tmp/$$$$.man file.0; \ @@\
246 $(RM) /tmp/$$$$.man; \ @@\
250 MakeDir($(DESTDIR)destdir) @@\
251 -@if [ -f file.0 ]; \ @@\
253 $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
256 #define InstallGenManPageLong(file,destdir,dest,suffix) @@\
257 InstallManPageLong(file,destdir,dest)
259 #define InstallMultipleManSuffix(list,dest,suff) @@\
261 MakeDir($(DESTDIR)dest) @@\
262 case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
263 for i in list; do \ @@\
265 cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) | $(COL) >/tmp/$$$$.suff; \ @@\
266 $(INSTALL) -c $(INSTMANFLAGS) /tmp/$$$$.suff $(DESTDIR)dest/$$i.0; \ @@\
267 $(RM) /tmp/$$$$.suff); \ @@\
270 #define InstallMultipleMan(list,dest) @@\
271 InstallMultipleManSuffix(list,dest,man)
273 #define InstallManPageAliases(file,destdir,aliases) @@\
275 @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
276 for i in aliases; do \ @@\
278 $(RM) $(DESTDIR)destdir/$$i.0;\ @@\
279 (cd $(DESTDIR)/destdir; $(LN) file.0 $$i.0);\ @@\
283 #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\
284 InstallManPageAliases(file,destdir,aliases)
286 #include <bsdLib.rules>
288 #ifdef i386Architecture
289 # include <xfree86.cf>
293 * Definitions for the SUN server on NetBSD/sparc
295 #ifdef SparcArchitecture
297 #define Xsun24Server NO
300 #define XsunServer YES
302 #ifndef XsunMonoServer
303 #define XsunMonoServer YES
305 #ifndef BuildScreenSaverLibrary
306 #define BuildScreenSaverLibrary YES
309 * XFree86 uses its own (more portable) database routines to speed up
310 * the RGB database lookups
311 * However, if you want to use ndbm anyway, you can set that to NO in
315 #define UseRgbTxt YES
320 * Definition for compiling on MIPS machines
322 #ifdef MipsArchitecture
323 #define PositionIndependentCFlags
324 #define SharedLibraryLoadFlags -x -shared --whole-archive -soname `echo $@ |
325 sed 's/\.[0-9]*$$//'`
326 #define SharedXtReqs $(XLIBONLY) $(SMLIB) $(ICELIB)
327 #define SharedXmuReqs $(LDPRELIB) $(XTOOLONLYLIB) $(XONLYLIB) $(EXTENSIONLIB)