linux: move dependancy handling out of linux.cf and into new lnxDep.rules file.
[oweals/cde.git] / cde / config / cf / NetBSD.cf
1 XCOMM platform:  $XConsortium: NetBSD.cf /main/16 1996/10/31 14:47:14 kaleb $
2
3
4
5 XCOMM platform:  $XFree86: xc/config/cf/NetBSD.cf,v 3.44 1996/10/23 13:07:55 dawes Exp $
6
7 #ifndef OSName
8 #define OSName                  DefaultOSName
9 #endif
10 #ifndef OSMajorVersion
11 #define OSMajorVersion          DefaultOSMajorVersion
12 #endif
13 #ifndef OSMinorVersion
14 #define OSMinorVersion          DefaultOSMinorVersion
15 #endif
16 /* 1 = A, 2 = B, 3 = C */
17 #ifndef OSTeenyVersion
18 #define OSTeenyVersion          DefaultOSTeenyVersion
19 #endif
20
21
22 #ifndef OSVendor
23 #define OSVendor        /**/
24 #endif
25 XCOMM operating system:  OSName
26
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
32
33 /*
34  * C library features
35  */
36 #if defined(NetBSDArchitecture) && (OsMajorVersion == 1 && OsMinorVersion >= 2)
37 #  define HasPoll                       YES
38 #endif
39 #define HasNdbm                 YES
40 #define HasPutenv               YES
41 #define HasSnprintf             YES
42 #define HasBSD44Sockets         YES
43 #define Malloc0ReturnsNull      NO
44 #define SetTtyGroup             YES
45 #define DBMLibrary              /**/
46 #ifndef HasLibCrypt
47 # define HasLibCrypt            YES
48 #endif
49 #ifndef HasShm
50 # if OSMajorVersion == 0 && OSMinorVersion == 9 && OSTeenyVersion == 2
51 /*
52  * Shm memory was removed in 0.9B because it was encumbered.
53  * A free version was added in 0.9C
54  */
55 #  define HasShm                NO
56 # else
57 #  define HasShm                YES
58 # endif
59 #endif
60 #define HasWChar32              YES
61 /*
62  * There's a bug in NetBSD 1.0, 1.1 and 1.2 dlsym()
63  */
64 #if OSMajorVersion == 1 && OSMinorVersion <= 2
65 #  define HasDlsymBug           YES
66 #endif
67
68 /*
69  * Compiler Features
70  */
71 #undef HasGcc
72 #define HasGcc                  YES
73 #define HasGcc2                 YES
74 #ifndef HasGcc2ForCplusplus
75 #define HasGcc2ForCplusplus     YES
76 #endif
77 #define GccUsesGas              YES
78 #define UseGas                  YES
79 #define GnuCpp                  YES
80
81 #define NeedConstPrototypes     YES
82 #define NeedFunctionPrototypes  YES
83 #define NeedNestedPrototypes    YES
84 #define NeedVarargsPrototypes   YES
85 #define NeedWidePrototypes      NO
86
87 #define MkdirHierCmd            mkdir -p
88
89 #define PerlCmd                 /usr/pkg/bin/perl
90
91 #define CppCmd                  /usr/bin/cpp
92 #define StandardCppDefines      -traditional
93 #define PreProcessCmd           CppCmd
94 #define PreIncDir               /usr/include
95
96 #undef CcCmd
97 #define CcCmd                   gcc
98 #if UseInstalled
99 #define DefaultCCOptions        /**/
100 #else
101 #define DefaultCCOptions        -pipe
102 #endif
103
104 #define CplusplusLibC           -lm -lstdc++
105
106 #define GccGasOption            -DGCCUSESGAS
107 #define AsmDefines              -DUSE_GAS
108
109
110 #ifdef i386Architecture
111 # define OptimizedCDebugFlags   -O2
112 # if OSMajorVersion < 1
113 #  define ServerOSDefines       XFree86ServerOSDefines -DDDXTIME -DXNO_SYSCONF
114 # else
115 #  define ServerOSDefines       XFree86ServerOSDefines -DDDXTIME
116 # endif
117 # if OSMajorVersion == 1 && OSMinorVersion >= 1 || OSMajorVersion >= 2
118 #  define ServerExtraSysLibs    -li386
119 # endif
120 #else
121 # define OptimizedCDebugFlags   -O2
122 # if defined(SparcArchitecture)
123 #  define ServerOSDefines       -DDDXOSINIT
124 # else
125 #  define ServerOSDefines       /**/
126 # endif
127 #endif
128 #ifdef i386Architecture
129 # define ServerExtraDefines GccGasOption XFree86ServerDefines
130 # ifndef XFree86ConsoleDefines
131 #  define XFree86ConsoleDefines -DPCCONS_SUPPORT -DPCVT_SUPPORT
132 # endif
133 #else
134 # define ServerExtraDefines GccGasOption
135 #endif
136
137 #define StandardDefines -DCSRG_BASED
138 #define XawI18nDefines  -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
139
140 #if OSMajorVersion > 0
141 # ifndef BuildDynamicLoading
142 # define BuildDynamicLoading    YES
143 # endif
144 #endif
145
146 #ifndef ExtraLibraries
147 #define ExtraLibraries          /**/
148 #endif
149 #ifndef UseGnuMalloc
150 # define UseGnuMalloc           YES
151 #endif
152 #ifndef GnuMallocLibrary
153 #define GnuMallocLibrary        -lgnumalloc
154 #endif
155
156 /*
157  * Make & install Features
158  */
159
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
169
170 #ifdef  InstallCmd
171 # undef  InstallCmd
172 # define InstallCmd             /usr/bin/install
173 #endif
174
175 #ifndef ExtraFilesToClean
176 # define ExtraFilesToClean      *.core
177 #endif
178
179 /*
180  * Documentation formatting
181  */
182 #define NeqnCmd                 neqn -Tlatin1
183 #define EqnCmd                  eqn -Tps
184 #define TroffCmd                groff -Tps
185
186 /*
187  * To use the NetBSD Aperture driver
188  */
189 #if defined(i386Architecture)
190 #ifndef HasNetBSDApertureDrv
191 #define HasNetBSDApertureDrv    NO
192 #endif
193 #endif
194
195 #define MakeHasPosixVariableSubstitutions       YES
196
197 /*
198  * ForceSubdirs - force make to build subdirectories
199  * 
200  * For BSD 4.4 make 
201  */
202 #define ForceSubdirs(dirs)                                              @@\
203 dirs:   .EXEC                                                           @@\
204         @cd $@ ; echo "making all in $(CURRENT_DIR)/$@..."; \           @@\
205         $(MAKE) $(MFLAGS) PassCDebugFlags all                           @@\
206                                                                         @@\
207 .EXEC:
208
209
210 #include <bsdLib.rules>
211
212 #ifdef i386Architecture
213 # include <xfree86.cf>
214 #endif
215
216 /*
217  * Definitions for the SUN server on NetBSD/sparc
218  */
219 #ifdef SparcArchitecture
220 #ifndef Xsun24Server
221 #define Xsun24Server    NO
222 #endif
223 #ifndef XsunServer
224 #define XsunServer      YES
225 #endif
226 #ifndef XsunMonoServer
227 #define XsunMonoServer  YES
228 #endif
229 #ifndef BuildScreenSaverLibrary
230 #define BuildScreenSaverLibrary YES
231 #endif
232 /*
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 
236  * site.def
237  */
238 #ifndef UseRgbTxt
239 #define UseRgbTxt       YES
240 #endif
241 #endif
242
243 /*
244  * Definition for compiling on MIPS machines
245  */
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)
252 #endif
253
254
255 /* For DtHelp TIFF processing routines. */
256 #ifdef AMD64Architecture
257 #define LSBBitOrder             YES
258 #endif
259
260 #ifdef ARMArchitecture
261 #define LSBBitOrder             YES
262 #endif
263
264 #ifdef i386Architecture
265 #define LSBBitOrder             YES
266 #endif
267
268
269 /*
270  * Generic settings for all architectures
271  * which can be overridden by architecture specific sections above
272  */
273
274 #ifdef HasGcc2
275 CXXDEPENDINCLUDE != CppCmd -x c++ -Wp,-v < /dev/null \
276                     2>&1 | sed -n 's/ \(.*[cg]++.*\)/-I\1/p'
277 #define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
278 #endif
279
280 #ifndef StandardIncludes
281 # define StandardIncludes       -I/usr/pkg/include -I/usr/local/include
282 #endif
283
284 #ifndef MTop
285 #define MTop                    $(TOP)/imports/motif
286 #endif
287
288 #ifndef TopMotifInclude
289 # define TopMotifInclude        /usr/pkg/include
290 #endif
291
292 #ifndef ExtraLoadFlags
293 # define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH):$(CDE_INSTALLATION_TOP)/lib
294 #endif
295
296 #ifndef SharedTtReqs
297 # define SharedTtReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
298 #endif
299
300 #ifndef SharedDtSvcReqs
301 # define SharedDtSvcReqs $(LDPRELIBS) SharedXReqs $(CXXLIB) -Wl,-rpath,$(USRLIBDIRPATH)
302 #endif
303
304 #ifndef SharedCsaReqs
305 # define SharedCsaReqs -lXt $(LDPOSTLIBS) -Wl,-rpath,$(USRLIBDIRPATH)
306 #endif
307
308 #ifndef KornShell
309 #define KornShell               /usr/pkg/bin/ksh93
310 #endif