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