ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
imakemdep.h
Go to the documentation of this file.
1
/* $TOG: imakemdep.h /main/101 1997/06/06 09:13:20 bill $ */
2
/*
3
4
Copyright (c) 1993, 1994 X Consortium
5
6
Permission is hereby granted, free of charge, to any person obtaining a copy
7
of this software and associated documentation files (the "Software"), to deal
8
in the Software without restriction, including without limitation the rights
9
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
copies of the Software, and to permit persons to whom the Software is
11
furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23
Except as contained in this notice, the name of the X Consortium shall not be
24
used in advertising or otherwise to promote the sale, use or other dealings
25
in this Software without prior written authorization from the X Consortium.
26
27
*/
28
/* $XFree86: xc/config/imake/imakemdep.h,v 3.24.2.3 1997/07/27 02:41:05 dawes Exp $ */
29
30
31
/*
32
* This file contains machine-dependent constants for the imake utility.
33
* When porting imake, read each of the steps below and add in any necessary
34
* definitions. In general you should *not* edit ccimake.c or imake.c!
35
*/
36
37
#ifdef CCIMAKE
38
/*
39
* Step 1: imake_ccflags
40
* Define any special flags that will be needed to get imake.c to compile.
41
* These will be passed to the compile along with the contents of the
42
* make variable BOOTSTRAPCFLAGS.
43
*/
44
#if defined(clipper) || defined(__clipper__)
45
#define imake_ccflags "-O -DSYSV -DBOOTSTRAPCFLAGS=-DSYSV"
46
#endif
47
48
#ifdef hpux
49
#ifdef hp9000s800
50
#define imake_ccflags "-DSYSV"
51
#else
52
#define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
53
#endif
54
#endif
55
56
#if defined(macII) || defined(_AUX_SOURCE)
57
#define imake_ccflags "-DmacII -DSYSV"
58
#endif
59
60
#ifdef stellar
61
#define imake_ccflags "-DSYSV"
62
#endif
63
64
#if defined(USL) || defined(__USLC__) || defined(Oki) || defined(NCR)
65
#define imake_ccflags "-Xa -DSVR4"
66
#endif
67
68
/* SCO may define __USLC__ so put this after the USL check */
69
#if defined(M_UNIX) || defined(_SCO_DS)
70
#ifdef imake_ccflags
71
#undef imake_ccflags
72
#endif
73
#define imake_ccflags "-Dsco -DSYSV"
74
#endif
75
76
#ifdef sony
77
#if defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
78
#define imake_ccflags "-DSVR4"
79
#else
80
#include <sys/param.h>
81
#if NEWSOS < 41
82
#define imake_ccflags "-Dbsd43 -DNOSTDHDRS"
83
#else
84
#if NEWSOS < 42
85
#define imake_ccflags "-Dbsd43"
86
#endif
87
#endif
88
#endif
89
#endif
90
91
#ifdef _CRAY
92
#define imake_ccflags "-DSYSV -DUSG"
93
#endif
94
95
#if defined(_IBMR2) || defined(aix)
96
#define imake_ccflags "-Daix -DSYSV"
97
#endif
98
99
#ifdef Mips
100
# if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
101
# define imake_ccflags "-DBSD43"
102
# else
103
# define imake_ccflags "-DSYSV"
104
# endif
105
#endif
106
107
#ifdef is68k
108
#define imake_ccflags "-Dluna -Duniosb"
109
#endif
110
111
#ifdef SYSV386
112
# ifdef SVR4
113
# define imake_ccflags "-Xa -DSVR4"
114
# else
115
# define imake_ccflags "-DSYSV"
116
# endif
117
#endif
118
119
#ifdef SVR4
120
# ifdef i386
121
# define imake_ccflags "-Xa -DSVR4"
122
# endif
123
#endif
124
125
#ifdef SYSV
126
# ifdef i386
127
# define imake_ccflags "-DSYSV"
128
# endif
129
#endif
130
131
#ifdef __convex__
132
#define imake_ccflags "-fn -tm c1"
133
#endif
134
135
#ifdef apollo
136
#define imake_ccflags "-DX_NOT_POSIX"
137
#endif
138
139
#ifdef WIN32
140
#if _MSC_VER < 1000
141
#define imake_ccflags "-nologo -batch -D__STDC__"
142
#else
143
#define imake_ccflags "-nologo -D__STDC__"
144
#endif
145
#endif
146
147
#ifdef __uxp__
148
#define imake_ccflags "-DSVR4 -DANSICPP"
149
#endif
150
151
#ifdef __sxg__
152
#define imake_ccflags "-DSYSV -DUSG -DNOSTDHDRS"
153
#endif
154
155
#ifdef sequent
156
#define imake_ccflags "-DX_NOT_STDC_ENV -DX_NOT_POSIX"
157
#endif
158
159
#ifdef _SEQUENT_
160
#define imake_ccflags "-DSYSV -DUSG"
161
#endif
162
163
#if defined(SX) || defined(PC_UX)
164
#define imake_ccflags "-DSYSV"
165
#endif
166
167
#ifdef nec_ews_svr2
168
#define imake_ccflags "-DUSG"
169
#endif
170
171
#if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up) || defined(_nec_ft)
172
#define imake_ccflags "-DSVR4"
173
#endif
174
175
#ifdef MACH
176
#define imake_ccflags "-DNOSTDHDRS"
177
#endif
178
179
/* this is for OS/2 under EMX. This won't work with DOS */
180
#if defined(__EMX__)
181
#define imake_ccflags "-DBSD43"
182
#endif
183
184
#else
/* not CCIMAKE */
185
#ifndef MAKEDEPEND
186
/*
187
* Step 2: dup2
188
* If your OS doesn't have a dup2() system call to duplicate one file
189
* descriptor onto another, define such a mechanism here (if you don't
190
* already fall under the existing category(ies).
191
*/
192
#if defined(SYSV) && !defined(_CRAY) && !defined(Mips) && !defined(_SEQUENT_) && !defined(sco)
193
#define dup2(fd1,fd2) ((fd1 == fd2) ? fd1 : (close(fd2), \
194
fcntl(fd1, F_DUPFD, fd2)))
195
#endif
196
197
198
/*
199
* Step 3: FIXUP_CPP_WHITESPACE
200
* If your cpp collapses tabs macro expansions into a single space and
201
* replaces escaped newlines with a space, define this symbol. This will
202
* cause imake to attempt to patch up the generated Makefile by looking
203
* for lines that have colons in them (this is why the rules file escapes
204
* all colons). One way to tell if you need this is to see whether or not
205
* your Makefiles have no tabs in them and lots of @@ strings.
206
*/
207
#if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(WIN32) || defined(sco) || (defined(AMOEBA) && defined(CROSS_COMPILE))
208
#define FIXUP_CPP_WHITESPACE
209
#endif
210
#ifdef WIN32
211
#define REMOVE_CPP_LEADSPACE
212
#define INLINE_SYNTAX
213
#define MAGIC_MAKE_VARS
214
#endif
215
#ifdef __minix_vmd
216
#define FIXUP_CPP_WHITESPACE
217
#endif
218
219
/*
220
* Step 4: USE_CC_E, DEFAULT_CC, DEFAULT_CPP
221
* If you want to use cc -E instead of cpp, define USE_CC_E.
222
* If use cc -E but want a different compiler, define DEFAULT_CC.
223
* If the cpp you need is not in /lib/cpp, define DEFAULT_CPP.
224
*/
225
#ifdef hpux
226
#define USE_CC_E
227
#endif
228
#ifdef WIN32
229
#define USE_CC_E
230
#define DEFAULT_CC "cl"
231
#endif
232
#ifdef apollo
233
#define DEFAULT_CPP "/usr/lib/cpp"
234
#endif
235
#if defined(clipper) || defined(__clipper__)
236
#define DEFAULT_CPP "/usr/lib/cpp"
237
#endif
238
#if defined(_IBMR2) && !defined(DEFAULT_CPP)
239
#define DEFAULT_CPP "/usr/ccs/lib/cpp"
240
#endif
241
#if defined(sun) && (defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__))
242
#define DEFAULT_CPP "/usr/ccs/lib/cpp"
243
#endif
244
#ifdef __bsdi__
245
#define DEFAULT_CPP "/usr/bin/cpp"
246
#endif
247
#ifdef __uxp__
248
#define DEFAULT_CPP "/usr/ccs/lib/cpp"
249
#endif
250
#ifdef __sxg__
251
#define DEFAULT_CPP "/usr/lib/cpp"
252
#endif
253
#ifdef _CRAY
254
#define DEFAULT_CPP "/lib/pcpp"
255
#endif
256
#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
257
#define DEFAULT_CPP "/usr/libexec/cpp"
258
#endif
259
#if defined(__sgi) && defined(__ANSI_CPP__)
260
#define USE_CC_E
261
#endif
262
#ifdef MACH
263
#define USE_CC_E
264
#endif
265
#ifdef __minix_vmd
266
#define DEFAULT_CPP "/usr/lib/cpp"
267
#endif
268
#if defined(__EMX__)
269
/* expects cpp in PATH */
270
#define DEFAULT_CPP "cpp"
271
#endif
272
273
/*
274
* Step 5: cpp_argv
275
* The following table contains the flags that should be passed
276
* whenever a Makefile is being generated. If your preprocessor
277
* doesn't predefine any unique symbols, choose one and add it to the
278
* end of this table. Then, do the following:
279
*
280
* a. Use this symbol in Imake.tmpl when setting MacroFile.
281
* b. Put this symbol in the definition of BootstrapCFlags in your
282
* <platform>.cf file.
283
* c. When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol"
284
* to the end of the command line.
285
*
286
* Note that you may define more than one symbol (useful for platforms
287
* that support multiple operating systems).
288
*/
289
290
#define ARGUMENTS 50
/* number of arguments in various arrays */
291
char
*
cpp_argv
[
ARGUMENTS
] = {
292
"cc"
,
/* replaced by the actual program to exec */
293
"-I."
,
/* add current directory to include path */
294
#ifdef unix
295
"-Uunix"
,
/* remove unix symbol so that filename unix.c okay */
296
#endif
297
#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(MACH)
298
# ifdef __i386__
299
"-D__i386__"
,
300
# endif
301
# ifdef __GNUC__
302
"-traditional"
,
303
# endif
304
#endif
305
#ifdef M4330
306
"-DM4330"
,
/* Tektronix */
307
#endif
308
#ifdef M4310
309
"-DM4310"
,
/* Tektronix */
310
#endif
311
#if defined(macII) || defined(_AUX_SOURCE)
312
"-DmacII"
,
/* Apple A/UX */
313
#endif
314
#if defined(USL) || defined(__USLC__)
315
"-DUSL"
,
/* USL */
316
#endif
317
#ifdef sony
318
"-Dsony"
,
/* Sony */
319
#if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) && NEWSOS < 42
320
"-Dbsd43"
,
321
#endif
322
#endif
323
#ifdef _IBMR2
324
"-D_IBMR2"
,
/* IBM RS-6000 (we ensured that aix is defined above */
325
#ifndef aix
326
#define aix
/* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
327
#endif
328
#endif
/* _IBMR2 */
329
#ifdef aix
330
"-Daix"
,
/* AIX instead of AOS */
331
#ifndef ibm
332
#define ibm
/* allow BOOTSTRAPCFLAGS="-Daix" */
333
#endif
334
#endif
/* aix */
335
#ifdef ibm
336
"-Dibm"
,
/* IBM PS/2 and RT under both AOS and AIX */
337
#endif
338
#ifdef luna
339
"-Dluna"
,
/* OMRON luna 68K and 88K */
340
#ifdef luna1
341
"-Dluna1"
,
342
#endif
343
#ifdef luna88k
/* need not on UniOS-Mach Vers. 1.13 */
344
"-traditional"
,
/* for some older version */
345
#endif
/* instead of "-DXCOMM=\\#" */
346
#ifdef uniosb
347
"-Duniosb"
,
348
#endif
349
#ifdef uniosu
350
"-Duniosu"
,
351
#endif
352
#endif
/* luna */
353
#ifdef _CRAY
/* Cray */
354
"-Ucray"
,
355
#endif
356
#ifdef Mips
357
"-DMips"
,
/* Define and use Mips for Mips Co. OS/mach. */
358
# if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
359
"-DBSD43"
,
/* Mips RISCOS supports two environments */
360
# else
361
"-DSYSV"
,
/* System V environment is the default */
362
# endif
363
#endif
/* Mips */
364
#ifdef MOTOROLA
365
"-DMOTOROLA"
,
/* Motorola Delta Systems */
366
# ifdef SYSV
367
"-DSYSV"
,
368
# endif
369
# ifdef SVR4
370
"-DSVR4"
,
371
# endif
372
#endif
/* MOTOROLA */
373
#if defined(M_UNIX) || defined(sco)
374
"-Dsco"
,
375
"-DSYSV"
,
376
#endif
377
#ifdef i386
378
"-Di386"
,
379
# ifdef SVR4
380
"-DSVR4"
,
381
# endif
382
# ifdef SYSV
383
"-DSYSV"
,
384
# ifdef ISC
385
"-DISC"
,
386
# ifdef ISC40
387
"-DISC40"
,
/* ISC 4.0 */
388
# else
389
# ifdef ISC202
390
"-DISC202"
,
/* ISC 2.0.2 */
391
# else
392
# ifdef ISC30
393
"-DISC30"
,
/* ISC 3.0 */
394
# else
395
"-DISC22"
,
/* ISC 2.2.1 */
396
# endif
397
# endif
398
# endif
399
# endif
400
# ifdef SCO
401
"-DSCO"
,
402
# ifdef _SCO_DS
403
"-DSCO325 -DSVR4"
,
404
# endif
405
# endif
406
# endif
407
# ifdef ESIX
408
"-DESIX"
,
409
# endif
410
# ifdef ATT
411
"-DATT"
,
412
# endif
413
# ifdef DELL
414
"-DDELL"
,
415
# endif
416
#endif
417
#ifdef SYSV386
/* System V/386 folks, obsolete */
418
"-Di386"
,
419
# ifdef SVR4
420
"-DSVR4"
,
421
# endif
422
# ifdef ISC
423
"-DISC"
,
424
# ifdef ISC40
425
"-DISC40"
,
/* ISC 4.0 */
426
# else
427
# ifdef ISC202
428
"-DISC202"
,
/* ISC 2.0.2 */
429
# else
430
# ifdef ISC30
431
"-DISC30"
,
/* ISC 3.0 */
432
# else
433
"-DISC22"
,
/* ISC 2.2.1 */
434
# endif
435
# endif
436
# endif
437
# endif
438
# ifdef SCO
439
"-DSCO"
,
440
# ifdef _SCO_DS
441
"-DSCO325 -DSVR4"
,
442
# endif
443
# endif
444
# ifdef ESIX
445
"-DESIX"
,
446
# endif
447
# ifdef ATT
448
"-DATT"
,
449
# endif
450
# ifdef DELL
451
"-DDELL"
,
452
# endif
453
#endif
454
#ifdef __osf__
455
"-D__osf__"
,
456
# ifdef __mips__
457
"-D__mips__"
,
458
# endif
459
# ifdef __alpha
460
"-D__alpha"
,
461
# endif
462
# ifdef __alpha__
463
"-D__alpha__"
,
464
# endif
465
# ifdef __i386__
466
"-D__i386__"
,
467
# endif
468
# ifdef __GNUC__
469
"-traditional"
,
470
# endif
471
#endif
472
#ifdef Oki
473
"-DOki"
,
474
#endif
475
#ifdef sun
476
#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__)
477
"-DSVR4"
,
478
#endif
479
#endif
480
#ifdef WIN32
481
"-DWIN32"
,
482
"-nologo"
,
483
#if _MSC_VER < 1000
484
"-batch"
,
485
#endif
486
"-D__STDC__"
,
487
#endif
488
#ifdef NCR
489
"-DNCR"
,
/* NCR */
490
#endif
491
#ifdef linux
492
"-traditional"
,
493
"-Dlinux"
,
494
#endif
495
#ifdef __uxp__
496
"-D__uxp__"
,
497
#endif
498
#ifdef __sxg__
499
"-D__sxg__"
,
500
#endif
501
#ifdef nec_ews_svr2
502
"-Dnec_ews_svr2"
,
503
#endif
504
#ifdef AMOEBA
505
"-DAMOEBA"
,
506
# ifdef CROSS_COMPILE
507
"-DCROSS_COMPILE"
,
508
# ifdef CROSS_i80386
509
"-Di80386"
,
510
# endif
511
# ifdef CROSS_sparc
512
"-Dsparc"
,
513
# endif
514
# ifdef CROSS_mc68000
515
"-Dmc68000"
,
516
# endif
517
# else
518
# ifdef i80386
519
"-Di80386"
,
520
# endif
521
# ifdef sparc
522
"-Dsparc"
,
523
# endif
524
# ifdef mc68000
525
"-Dmc68000"
,
526
# endif
527
# endif
528
#endif
529
#if defined(__sgi) && defined(__ANSI_CPP__)
530
"-cckr"
,
531
#endif
532
#ifdef __minix_vmd
533
"-Dminix"
,
534
#endif
535
536
#if defined(__EMX__)
537
"-traditional"
,
538
"-Demxos2"
,
539
#endif
540
541
};
542
543
544
/*
545
* Step 6: DEFAULT_OS_MAJOR_REV, DEFAULT_OS_MINOR_REV, DEFAULT_OS_TEENY_REV,
546
* and DEFAULT_OS_NAME.
547
* If your systems provides a way to generate the default major,
548
* minor, teeny, or system names at runtime add commands below.
549
* The syntax of the _REV strings is 'f fmt' where 'f' is an argument
550
* you would give to uname, and "fmt" is a scanf() format string.
551
* Supported uname arguments are "snrvm", and if you specify multiple
552
* arguments they will be separated by spaces. No more than 5 arguments
553
* may be given. Unlike uname() order of arguments matters.
554
*
555
* DEFAULT_OS_MAJOR_REV_FROB, DEFAULT_OS_MINOR_REV_FROB,
556
* DEFAULT_OS_TEENY_REV_FROB, and DEFAULT_OS_NAME_FROB can be used to
557
* modify the results of the use of the various strings.
558
*/
559
#if defined(aix)
560
/* uname -v returns "x" (e.g. "4"), and uname -r returns "y" (e.g. "1") */
561
# define DEFAULT_OS_MAJOR_REV "v %[0-9]"
562
# define DEFAULT_OS_MINOR_REV "r %[0-9]"
563
/* No information available to generate default OSTeenyVersion value. */
564
# define DEFAULT_OS_NAME "srvm %[^\n]"
565
#elif defined(sun) || defined(sgi) || defined(ultrix) || defined(__uxp__) || defined(sony)
566
/* uname -r returns "x.y[.z]", e.g. "5.4" or "4.1.3" */
567
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
568
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
569
# define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
570
# define DEFAULT_OS_NAME "srvm %[^\n]"
571
#elif defined(hpux)
572
/* uname -r returns "W.x.yz", e.g. "B.10.01" */
573
# define DEFAULT_OS_MAJOR_REV "r %*[^.].%[0-9]"
574
# define DEFAULT_OS_MINOR_REV "r %*[^.].%*d.%1s"
575
# define DEFAULT_OS_TEENY_REV "r %*[^.].%*d.%*c%[0-9]"
576
# define DEFAULT_OS_NAME "srvm %[^\n]"
577
#elif defined(USL) || defined(__USLC__)
578
/* uname -v returns "x.yz" or "x.y.z", e.g. "2.02" or "2.1.2". */
579
# define DEFAULT_OS_MAJOR_REV "v %[0-9]"
580
# define DEFAULT_OS_MINOR_REV "v %*d.%1s"
581
# define DEFAULT_OS_TEENY_REV "v %*d.%*c%[.0-9]"
582
# define DEFAULT_OS_NAME "srvm %[^\n]"
583
#elif defined(__osf__)
584
/* uname -r returns "Wx.y", e.g. "V3.2" or "T4.0" */
585
# define DEFAULT_OS_MAJOR_REV "r %*[^0-9]%[0-9]"
586
# define DEFAULT_OS_MINOR_REV "r %*[^.].%[0-9]"
587
# define DEFAULT_OS_NAME "srvm %[^\n]"
588
#elif defined(__uxp__)
589
/* NOTE: "x.y[.z]" above handles UXP/DF. This is a sample alternative. */
590
/* uname -v returns "VxLy Yzzzzz ....", e.g. "V20L10 Y95021 Increment 5 ..." */
591
# define DEFAULT_OS_MAJOR_REV "v V%[0-9]"
592
# define DEFAULT_OS_MINOR_REV "v V%*dL%[0-9]"
593
# define DEFAULT_OS_NAME "srvm %[^\n]"
594
#elif defined(linux)
595
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
596
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
597
# define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
598
# define DEFAULT_OS_NAME "srm %[^\n]"
599
#elif defined(ISC)
600
/* ISC all Versions ? */
601
/* uname -r returns "x.y", e.g. "3.2" ,uname -v returns "x" e.g. "2" */
602
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
603
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
604
# define DEFAULT_OS_TEENY_REV "v %[0-9]"
605
/* # define DEFAULT_OS_NAME "srm %[^\n]" */
/* Not useful on ISC */
606
#elif defined(__FreeBSD__)
607
/* BSD/OS too? */
608
/* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
609
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
610
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
611
# define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
612
# define DEFAULT_OS_NAME "srm %[^\n]"
613
/* Use an alternate way to find the teeny version for -STABLE, -SNAP versions */
614
# define DEFAULT_OS_TEENY_REV_FROB(buf, size) \
615
do { \
616
if (*buf == 0) { \
617
int __mib[2]; \
618
size_t __len; \
619
int __osrel; \
620
\
621
__mib[0] = CTL_KERN; \
622
__mib[1] = KERN_OSRELDATE; \
623
__len = sizeof(__osrel); \
624
sysctl(__mib, 2, &__osrel, &__len, NULL, 0); \
625
if (__osrel < 210000) { \
626
if (__osrel < 199607) \
627
buf[0] = '0'; \
628
else if (__osrel < 199612) \
629
buf[0] = '5'; \
630
else if (__osrel == 199612) \
631
buf[0] = '6'; \
632
else \
633
buf[0] = '8';
/* guess */
\
634
} else { \
635
buf[0] = ((__osrel / 1000) % 10) + '0'; \
636
} \
637
buf[1] = 0; \
638
} \
639
} while (0)
640
#elif defined(__OpenBSD__)
641
/* uname -r returns "x.y", e.g. "3.7" */
642
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
643
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
644
# define DEFAULT_OS_NAME "srm %[^\n]"
645
# define DEFAULT_MACHINE_ARCHITECTURE "m %[^\n]"
646
#elif defined(__NetBSD__)
647
/*
648
* uname -r returns "x.y([ABCD...]|_mumble)", e.g.:
649
* 1.2 1.2_BETA 1.2A 1.2B
650
*
651
* That means that we have to do something special to turn the
652
* TEENY revision into a form that we can use (i.e., a string of
653
* decimal digits).
654
*
655
* We also frob the name DEFAULT_OS_NAME so that it looks like the
656
* 'standard' NetBSD name for the version, e.g. "NetBSD/i386 1.2B" for
657
* NetBSD 1.2B on an i386.
658
*/
659
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
660
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
661
# define DEFAULT_OS_TEENY_REV "r %*d.%*d%[A-Z]"
662
# define DEFAULT_OS_TEENY_REV_FROB(buf, size) \
663
do { \
664
if (*(buf) >= 'A' && *(buf) <= 'Z')
/* sanity check */
\
665
snprintf((buf), (size), "%d", *(buf) - 'A' + 1); \
666
else \
667
*(buf) = '\0'; \
668
} while (0)
669
# define DEFAULT_OS_NAME "smr %[^\n]"
670
# define DEFAULT_OS_NAME_FROB(buf, size) \
671
do { \
672
char *__sp; \
673
if ((__sp = strchr((buf), ' ')) != NULL) \
674
*__sp = '/'; \
675
} while (0)
676
#endif
677
678
#else
/* else MAKEDEPEND */
679
/*
680
* Step 7: predefs
681
* If your compiler and/or preprocessor define any specific symbols, add
682
* them to the following table. The definition of struct symtab is
683
* in util/makedepend/def.h.
684
*/
685
struct
symtab
predefs[] = {
686
#ifdef apollo
687
{
"apollo"
,
"1"
},
688
#endif
689
#if defined(clipper) || defined(__clipper__)
690
{
"clipper"
,
"1"
},
691
{
"__clipper__"
,
"1"
},
692
{
"clix"
,
"1"
},
693
{
"__clix__"
,
"1"
},
694
#endif
695
#ifdef ibm032
696
{
"ibm032"
,
"1"
},
697
#endif
698
#ifdef ibm
699
{
"ibm"
,
"1"
},
700
#endif
701
#ifdef aix
702
{
"aix"
,
"1"
},
703
#endif
704
#ifdef sun
705
{
"sun"
,
"1"
},
706
#endif
707
#ifdef sun2
708
{
"sun2"
,
"1"
},
709
#endif
710
#ifdef sun3
711
{
"sun3"
,
"1"
},
712
#endif
713
#ifdef sun4
714
{
"sun4"
,
"1"
},
715
#endif
716
#ifdef sparc
717
{
"sparc"
,
"1"
},
718
#endif
719
#ifdef __sparc__
720
{
"__sparc__"
,
"1"
},
721
#endif
722
#ifdef hpux
723
{
"hpux"
,
"1"
},
724
#endif
725
#ifdef __hpux
726
{
"__hpux"
,
"1"
},
727
#endif
728
#ifdef __hp9000s800
729
{
"__hp9000s800"
,
"1"
},
730
#endif
731
#ifdef __hp9000s700
732
{
"__hp9000s700"
,
"1"
},
733
#endif
734
#ifdef vax
735
{
"vax"
,
"1"
},
736
#endif
737
#ifdef VMS
738
{
"VMS"
,
"1"
},
739
#endif
740
#ifdef cray
741
{
"cray"
,
"1"
},
742
#endif
743
#ifdef CRAY
744
{
"CRAY"
,
"1"
},
745
#endif
746
#ifdef _CRAY
747
{
"_CRAY"
,
"1"
},
748
#endif
749
#ifdef att
750
{
"att"
,
"1"
},
751
#endif
752
#ifdef mips
753
{
"mips"
,
"1"
},
754
#endif
755
#ifdef __mips__
756
{
"__mips__"
,
"1"
},
757
#endif
758
#ifdef ultrix
759
{
"ultrix"
,
"1"
},
760
#endif
761
#ifdef stellar
762
{
"stellar"
,
"1"
},
763
#endif
764
#ifdef mc68000
765
{
"mc68000"
,
"1"
},
766
#endif
767
#ifdef mc68020
768
{
"mc68020"
,
"1"
},
769
#endif
770
#ifdef __GNUC__
771
{
"__GNUC__"
,
"1"
},
772
#endif
773
#if __STDC__
774
{
"__STDC__"
,
"1"
},
775
#endif
776
#ifdef __HIGHC__
777
{
"__HIGHC__"
,
"1"
},
778
#endif
779
#ifdef CMU
780
{
"CMU"
,
"1"
},
781
#endif
782
#ifdef linux
783
{
"linux"
,
"1"
},
784
#endif
785
#ifdef luna
786
{
"luna"
,
"1"
},
787
#ifdef luna1
788
{
"luna1"
,
"1"
},
789
#endif
790
#ifdef luna2
791
{
"luna2"
,
"1"
},
792
#endif
793
#ifdef luna88k
794
{
"luna88k"
,
"1"
},
795
#endif
796
#ifdef uniosb
797
{
"uniosb"
,
"1"
},
798
#endif
799
#ifdef uniosu
800
{
"uniosu"
,
"1"
},
801
#endif
802
#endif
803
#ifdef ieeep754
804
{
"ieeep754"
,
"1"
},
805
#endif
806
#ifdef is68k
807
{
"is68k"
,
"1"
},
808
#endif
809
#ifdef m68k
810
{
"m68k"
,
"1"
},
811
#endif
812
#ifdef m88k
813
{
"m88k"
,
"1"
},
814
#endif
815
#ifdef __m88k__
816
{
"__m88k__"
,
"1"
},
817
#endif
818
#ifdef bsd43
819
{
"bsd43"
,
"1"
},
820
#endif
821
#ifdef hcx
822
{
"hcx"
,
"1"
},
823
#endif
824
#ifdef sony
825
{
"sony"
,
"1"
},
826
#ifdef SYSTYPE_SYSV
827
{
"SYSTYPE_SYSV"
,
"1"
},
828
#endif
829
#ifdef _SYSTYPE_SYSV
830
{
"_SYSTYPE_SYSV"
,
"1"
},
831
#endif
832
#endif
833
#ifdef __OSF__
834
{
"__OSF__"
,
"1"
},
835
#endif
836
#ifdef __osf__
837
{
"__osf__"
,
"1"
},
838
#endif
839
#ifdef __alpha
840
{
"__alpha"
,
"1"
},
841
#endif
842
#ifdef __alpha__
843
{
"__alpha__"
,
"1"
},
844
#endif
845
#ifdef __DECC
846
{
"__DECC"
,
"1"
},
847
#endif
848
#ifdef __decc
849
{
"__decc"
,
"1"
},
850
#endif
851
#ifdef __unix__
852
{
"__unix__"
,
"1"
},
853
#endif
854
#ifdef __uxp__
855
{
"__uxp__"
,
"1"
},
856
#endif
857
#ifdef __sxg__
858
{
"__sxg__"
,
"1"
},
859
#endif
860
#ifdef _SEQUENT_
861
{
"_SEQUENT_"
,
"1"
},
862
{
"__STDC__"
,
"1"
},
863
#endif
864
#ifdef __bsdi__
865
{
"__bsdi__"
,
"1"
},
866
#endif
867
#ifdef nec_ews_svr2
868
{
"nec_ews_svr2"
,
"1"
},
869
#endif
870
#ifdef nec_ews_svr4
871
{
"nec_ews_svr4"
,
"1"
},
872
#endif
873
#ifdef _nec_ews_svr4
874
{
"_nec_ews_svr4"
,
"1"
},
875
#endif
876
#ifdef _nec_up
877
{
"_nec_up"
,
"1"
},
878
#endif
879
#ifdef SX
880
{
"SX"
,
"1"
},
881
#endif
882
#ifdef nec
883
{
"nec"
,
"1"
},
884
#endif
885
#ifdef _nec_ft
886
{
"_nec_ft"
,
"1"
},
887
#endif
888
#ifdef PC_UX
889
{
"PC_UX"
,
"1"
},
890
#endif
891
#ifdef sgi
892
{
"sgi"
,
"1"
},
893
#endif
894
#ifdef __sgi
895
{
"__sgi"
,
"1"
},
896
#endif
897
#ifdef __FreeBSD__
898
{
"__FreeBSD__"
,
"1"
},
899
#endif
900
#ifdef __OpenBSD__
901
{
"__OpenBSD__"
,
"1"
},
902
#endif
903
#ifdef __NetBSD__
904
{
"__NetBSD__"
,
"1"
},
905
#endif
906
#ifdef __ELF__
907
{
"__ELF__"
,
"1"
},
908
#endif
909
#ifdef __EMX__
910
{
"__EMX__"
,
"1"
},
911
#endif
912
#ifdef __APPLE__
913
{
"__APPLE__"
,
"1"
},
914
#endif
915
#ifdef __ppc__
916
{
"__ppc__"
,
"1"
},
917
#endif
918
#ifdef __arm__
919
{
"__arm__"
,
"1"
},
920
#endif
921
#ifdef __x86_64__
922
{
"__x86_64__"
,
"1"
},
923
#endif
924
925
/* add any additional symbols before this line */
926
{
NULL
,
NULL
}
927
};
928
929
#endif
/* MAKEDEPEND */
930
#endif
/* CCIMAKE */
NULL
#define NULL
Definition
ZInflate.c:15
cpp_argv
char * cpp_argv[50]
Definition
imakemdep.h:291
ARGUMENTS
#define ARGUMENTS
Definition
imakemdep.h:290
symtab
Definition
def.h:94
misc
rmkdepend
imakemdep.h
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1