8cbaa1ed1e8a30e05b6502a578a671d73d444e0c
[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 librararies 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(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(__bsdi__) || (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(__NetBSD__) || defined(__OpenBSD__) \
274         || (defined(__FreeBSD__) && defined(CPP_IN_LIBEXEC))
275 #define DEFAULT_CPP "/usr/libexec/cpp"
276 #endif
277 #if defined(__sgi) && defined(__ANSI_CPP__)
278 #define USE_CC_E
279 #endif
280 #ifdef  MACH
281 #define USE_CC_E
282 #endif
283 #ifdef __minix_vmd
284 #define DEFAULT_CPP "/usr/lib/cpp"
285 #endif
286 #if defined(__EMX__)
287 /* expects cpp in PATH */
288 #define DEFAULT_CPP "cpp"
289 #endif
290
291 /*
292  * Step 5:  cpp_argv
293  *     The following table contains the flags that should be passed
294  *     whenever a Makefile is being generated.  If your preprocessor 
295  *     doesn't predefine any unique symbols, choose one and add it to the
296  *     end of this table.  Then, do the following:
297  * 
298  *         a.  Use this symbol in Imake.tmpl when setting MacroFile.
299  *         b.  Put this symbol in the definition of BootstrapCFlags in your
300  *             <platform>.cf file.
301  *         c.  When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol" 
302  *             to the end of the command line.
303  * 
304  *     Note that you may define more than one symbol (useful for platforms 
305  *     that support multiple operating systems).
306  */
307
308 #define ARGUMENTS 50    /* number of arguments in various arrays */
309 char *cpp_argv[ARGUMENTS] = {
310         "cc",           /* replaced by the actual program to exec */
311         "-I.",          /* add current directory to include path */
312 #ifdef unix
313         "-Uunix",       /* remove unix symbol so that filename unix.c okay */
314 #endif
315 #if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(MACH) || defined(USL) || defined(sco) || defined(ISC) || defined(__bsdi__) || defined(linux) || defined(__hpux__) || defined(__vxworks)
316 # ifdef __i386__
317         "-D__i386__",
318 # endif
319 # ifdef __i486__
320         "-D__i486__",
321 # endif
322 # ifdef __i586__
323         "-D__i586__",
324 # endif
325 # ifdef __i686__
326         "-D__i686__",
327 # endif
328 # ifdef __k6__
329         "-D__k6__",
330 # endif
331 # ifdef __ia64__
332         "-D__ia64__",
333 # endif
334 # ifdef __amd64__
335         "-D__amd64__",
336 # endif
337 # ifdef __x86_64__
338         "-D__amd64__",
339 # endif
340 # ifdef __ppc__
341         {"-D__powerpc__", "1"},
342 # endif
343 # ifdef __ppc64__
344         {"-D__powerpc64__", "1"},
345 # endif
346 # ifdef __powerpc__
347         {"-D__powerpc__", "1"},
348 # endif
349 # ifdef __powerpc64__
350         {"-D__powerpc64__", "1"},
351 # endif
352
353 # ifdef __GNUC__
354         "-traditional",
355 # endif
356 #endif
357
358 #ifdef M4330
359         "-DM4330",      /* Tektronix */
360 #endif
361 #ifdef M4310
362         "-DM4310",      /* Tektronix */
363 #endif
364 #if defined(macII) || defined(_AUX_SOURCE)
365         "-DmacII",      /* Apple A/UX */
366 #endif
367 #if defined(USL) || defined(__USLC__)
368         "-DUSL",        /* USL */
369 #endif
370 #ifdef sony
371         "-Dsony",       /* Sony */
372 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) && NEWSOS < 42
373         "-Dbsd43",
374 #endif
375 #endif
376 #ifdef _IBMR2
377         "-D_IBMR2",     /* IBM RS-6000 (we ensured that aix is defined above */
378 #ifndef aix
379 #define aix             /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
380 #endif
381 #endif /* _IBMR2 */
382 #ifdef aix
383         "-Daix",        /* AIX instead of AOS */
384 #ifndef ibm
385 #define ibm             /* allow BOOTSTRAPCFLAGS="-Daix" */
386 #endif
387 #endif /* aix */
388 #ifdef ibm
389         "-Dibm",        /* IBM PS/2 and RT under both AOS and AIX */
390 #endif
391 #ifdef luna
392         "-Dluna",       /* OMRON luna 68K and 88K */
393 #ifdef luna1
394         "-Dluna1",
395 #endif
396 #ifdef luna88k          /* need not on UniOS-Mach Vers. 1.13 */
397         "-traditional", /* for some older version            */
398 #endif                  /* instead of "-DXCOMM=\\#"          */
399 #ifdef uniosb
400         "-Duniosb",
401 #endif
402 #ifdef uniosu
403         "-Duniosu",
404 #endif
405 #endif /* luna */
406 #ifdef _CRAY            /* Cray */
407         "-Ucray",
408 #endif
409 #ifdef Mips
410         "-DMips",       /* Define and use Mips for Mips Co. OS/mach. */
411 # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
412         "-DBSD43",      /* Mips RISCOS supports two environments */
413 # else
414         "-DSYSV",       /* System V environment is the default */
415 # endif
416 #endif /* Mips */
417 #ifdef MOTOROLA
418         "-DMOTOROLA",    /* Motorola Delta Systems */
419 # ifdef SYSV
420         "-DSYSV", 
421 # endif
422 # ifdef SVR4
423         "-DSVR4",
424 # endif
425 #endif /* MOTOROLA */
426 #if defined(M_UNIX) || defined(sco)
427         "-Dsco",
428 # if defined(sco324)
429         "-Dsco324",
430 # endif
431 #endif
432 #ifdef i386
433         "-Di386",
434 # ifdef SVR4
435         "-DSVR4",
436 # endif
437 # ifdef SYSV
438         "-DSYSV",
439 #  ifdef ISC
440         "-DISC",
441 #   ifdef ISC40
442         "-DISC40",       /* ISC 4.0 */
443 #   else
444 #    ifdef ISC202
445         "-DISC202",      /* ISC 2.0.2 */
446 #    else
447 #     ifdef ISC30
448         "-DISC30",       /* ISC 3.0 */
449 #     else
450         "-DISC22",       /* ISC 2.2.1 */
451 #     endif
452 #    endif
453 #   endif
454 #  endif
455 #  ifdef SCO
456         "-DSCO",
457 #   ifdef SCO324
458         "-DSCO324",
459 #   endif
460 #  endif
461 #  ifdef ESIX
462         "-DESIX",
463 #  endif
464 #  ifdef ATT
465         "-DATT",
466 #  endif
467 #  ifdef DELL
468         "-DDELL",
469 #  endif
470 # endif
471 #endif
472 #ifdef SYSV386          /* System V/386 folks, obsolete */
473         "-Di386",
474 # ifdef SVR4
475         "-DSVR4",
476 # endif
477 # ifdef SYSV
478         "-DSYSV",
479 #  ifdef ISC
480         "-DISC",
481 #   ifdef ISC40
482         "-DISC40",       /* ISC 4.0 */
483 #   else
484 #    ifdef ISC202
485         "-DISC202",      /* ISC 2.0.2 */
486 #    else
487 #     ifdef ISC30
488         "-DISC30",       /* ISC 3.0 */
489 #     else
490         "-DISC22",       /* ISC 2.2.1 */
491 #     endif
492 #    endif
493 #   endif
494 #  endif
495 #  ifdef SCO
496         "-DSCO",
497 #   ifdef SCO324
498         "-DSCO324",
499 #   endif
500 #  endif
501 #  ifdef ESIX
502         "-DESIX",
503 #  endif
504 #  ifdef ATT
505         "-DATT",
506 #  endif
507 #  ifdef DELL
508         "-DDELL",
509 #  endif
510 # endif
511 #endif
512 #ifdef __osf__
513         "-D__osf__",
514 # ifdef __mips__
515         "-D__mips__",
516 # endif
517 # ifdef __alpha
518         "-D__alpha",
519 # endif
520 # ifdef __i386__
521         "-D__i386__",
522 # endif
523 # ifdef __GNUC__
524         "-traditional",
525 # endif
526 #endif
527 #ifdef Oki
528         "-DOki",
529 #endif
530 #ifdef sun
531 #if defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__)
532         "-DSVR4",
533 #endif
534 #endif
535 #ifdef WIN32
536         "-DWIN32",
537         "-nologo",
538 #if _MSC_VER < 1000
539         "-batch",
540 #endif
541         "-D__STDC__",
542 #endif
543 #ifdef NCR
544         "-DNCR",        /* NCR */
545 #endif
546 #ifdef linux
547         "-traditional",
548         "-Dlinux",
549 #endif
550 #ifdef __uxp__
551         "-D__uxp__",
552 #endif
553 #ifdef __sxg__
554         "-D__sxg__",
555 #endif
556 #ifdef nec_ews_svr2
557         "-Dnec_ews_svr2",
558 #endif
559 #ifdef AMOEBA
560         "-DAMOEBA",
561 # ifdef CROSS_COMPILE
562         "-DCROSS_COMPILE",
563 #  ifdef CROSS_i80386
564         "-DCROSS_i80386",
565 #  endif
566 #  ifdef CROSS_sparc
567         "-DCROSS_sparc",
568 #  endif
569 #  ifdef CROSS_mc68000
570         "-DCROSS_mc68000",
571 #  endif
572 # else
573 #  ifdef i80386
574         "-Di80386",
575 #  endif
576 #  ifdef sparc
577         "-Dsparc",
578 #  endif
579 #  ifdef mc68000
580         "-Dmc68000",
581 #  endif
582 # endif
583 #endif
584 #if defined(__sgi) && defined(__ANSI_CPP__)
585         "-cckr",
586 #endif
587 #ifdef __minix_vmd
588         "-Dminix",
589 #endif
590
591 #if defined(__EMX__)
592         "-traditional",
593         "-Demxos2",
594 #endif
595
596 };
597
598
599 /*
600  * Step 6: DEFAULT_OS_MAJOR_REV, DEFAULT_OS_MINOR_REV, DEFAULT_OS_TEENY_REV,
601  *      and DEFAULT_OS_NAME.
602  *      If your systems provides a way to generate the default major,
603  *      minor, teeny, or system names at runtime add commands below.
604  *      The syntax of the _REV strings is 'f fmt' where 'f' is an argument
605  *      you would give to uname, and "fmt" is a scanf() format string.
606  *      Supported uname arguments are "snrvm", and if you specify multiple
607  *      arguments they will be separated by spaces.  No more than 5 arguments
608  *      may be given.  Unlike uname() order of arguments matters.
609  */
610 #if defined(aix)
611 /* uname -v returns "x" (e.g. "4"), and uname -r returns "y" (e.g. "1") */
612 # define DEFAULT_OS_MAJOR_REV   "v %[0-9]"
613 # define DEFAULT_OS_MINOR_REV   "r %[0-9]"
614 /* No information available to generate default OSTeenyVersion value. */
615 # define DEFAULT_OS_NAME        "srvm %[^\n]"
616 #elif defined(sun) || defined(sgi) || defined(ultrix) || defined(__uxp__) || defined(linux) || defined(sony)
617 /* uname -r returns "x.y[.z]", e.g. "5.4" or "4.1.3" */
618 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
619 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
620 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d.%[0-9]"
621 # define DEFAULT_OS_NAME        "srvm %[^\n]"
622 #elif defined(hpux)
623 /* uname -r returns "W.x.yz", e.g. "B.10.01" */
624 # define DEFAULT_OS_MAJOR_REV   "r %*[^.].%[0-9]"
625 # define DEFAULT_OS_MINOR_REV   "r %*[^.].%*d.%1s"
626 # define DEFAULT_OS_TEENY_REV   "r %*[^.].%*d.%*c%[0-9]"
627 # define DEFAULT_OS_NAME        "srvm %[^\n]"
628 #elif defined(USL) || defined(__USLC__)
629 /* uname -v returns "x.yz" or "x.y.z", e.g. "2.02" or "2.1.2". */
630 # define DEFAULT_OS_MAJOR_REV   "v %[0-9]"
631 # define DEFAULT_OS_MINOR_REV   "v %*d.%1s"
632 # define DEFAULT_OS_TEENY_REV   "v %*d.%*c%[.0-9]"
633 # define DEFAULT_OS_NAME        "srvm %[^\n]"
634 #elif defined(__osf__)
635 /* uname -r returns "Wx.y", e.g. "V3.2" or "T4.0" */
636 # define DEFAULT_OS_MAJOR_REV   "r %*[^0-9]%[0-9]"
637 # define DEFAULT_OS_MINOR_REV   "r %*[^.].%[0-9]"
638 # define DEFAULT_OS_NAME        "srvm %[^\n]"
639 #elif defined(__uxp__)
640 /* NOTE: "x.y[.z]" above handles UXP/DF.  This is a sample alternative. */
641 /* uname -v returns "VxLy Yzzzzz ....", e.g. "V20L10 Y95021 Increment 5 ..." */
642 # define DEFAULT_OS_MAJOR_REV   "v V%[0-9]"
643 # define DEFAULT_OS_MINOR_REV   "v V%*dL%[0-9]"
644 # define DEFAULT_OS_NAME        "srvm %[^\n]"
645 #elif defined(__FreeBSD__)
646 /* NetBSD, OpenBSD, 386BSD, and BSD/OS too? */
647 /* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
648 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
649 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
650 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d.%[0-9]" 
651 # define DEFAULT_OS_NAME        "srm %[^\n]"
652 #elif defined(__OpenBSD__)
653 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
654 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
655 # define DEFAULT_OS_NAME        "srm %[^\n]"
656 #endif
657
658 #else /* else MAKEDEPEND */
659 /*
660  * Step 7:  predefs
661  *     If your compiler and/or preprocessor define any specific symbols, add
662  *     them to the the following table.  The definition of struct symtab is
663  *     in util/makedepend/def.h.
664  */
665 #undef DEF_EVALUATE
666 #undef DEF_STRINGIFY
667 #define DEF_EVALUATE(__x) #__x
668 #define DEF_STRINGIFY(_x) DEF_EVALUATE(_x)
669
670 struct symtab   predefs[] = {
671 #ifdef apollo
672         {"apollo", "1"},
673 #endif
674 #ifdef ibm032
675         {"ibm032", "1"},
676 #endif
677 #ifdef ibm
678         {"ibm", "1"},
679 #endif
680 #ifdef aix
681         {"aix", "1"},
682 #endif
683 #ifdef sun
684         {"sun", "1"},
685 #endif
686 #ifdef sun2
687         {"sun2", "1"},
688 #endif
689 #ifdef sun3
690         {"sun3", "1"},
691 #endif
692 #ifdef sun4
693         {"sun4", "1"},
694 #endif
695 #ifdef sparc
696         {"sparc", "1"},
697 #endif
698 #ifdef __sparc__
699         {"__sparc__", "1"},
700 #endif
701 #ifdef hpux
702         {"hpux", "1"},
703 #endif
704 #ifdef __hpux
705         {"__hpux", "1"},
706 #endif
707 #ifdef __hp9000s800
708         {"__hp9000s800", "1"},
709 #endif
710 #ifdef __hp9000s700
711         {"__hp9000s700", "1"},
712 #endif
713 #ifdef vax
714         {"vax", "1"},
715 #endif
716 #ifdef VMS
717         {"VMS", "1"},
718 #endif
719 #ifdef cray
720         {"cray", "1"},
721 #endif
722 #ifdef CRAY
723         {"CRAY", "1"},
724 #endif
725 #ifdef _CRAY
726         {"_CRAY", "1"},
727 #endif
728 #ifdef att
729         {"att", "1"},
730 #endif
731 #ifdef mips
732         {"mips", "1"},
733 #endif
734 #ifdef __mips__
735         {"__mips__", "1"},
736 #endif
737 #ifdef ultrix
738         {"ultrix", "1"},
739 #endif
740 #ifdef stellar
741         {"stellar", "1"},
742 #endif
743 #ifdef mc68000
744         {"mc68000", "1"},
745 #endif
746 #ifdef mc68020
747         {"mc68020", "1"},
748 #endif
749 #ifdef __GNUC__
750         {"__GNUC__", DEF_STRINGIFY(__GNUC__)},
751 #endif
752 #if __STDC__
753         {"__STDC__", "1"},
754 #endif
755 #ifdef __HIGHC__
756         {"__HIGHC__", "1"},
757 #endif
758 #ifdef CMU
759         {"CMU", "1"},
760 #endif
761 #ifdef luna
762         {"luna", "1"},
763 #ifdef luna1
764         {"luna1", "1"},
765 #endif
766 #ifdef luna2
767         {"luna2", "1"},
768 #endif
769 #ifdef luna88k
770         {"luna88k", "1"},
771 #endif
772 #ifdef uniosb
773         {"uniosb", "1"},
774 #endif
775 #ifdef uniosu
776         {"uniosu", "1"},
777 #endif
778 #endif
779 #ifdef ieeep754
780         {"ieeep754", "1"},
781 #endif
782 #ifdef is68k
783         {"is68k", "1"},
784 #endif
785 #ifdef m68k
786         {"m68k", "1"},
787 #endif
788 #ifdef m88k
789         {"m88k", "1"},
790 #endif
791 #ifdef __m88k__
792         {"__m88k__", "1"},
793 #endif
794 #ifdef bsd43
795         {"bsd43", "1"},
796 #endif
797 #ifdef hcx
798         {"hcx", "1"},
799 #endif
800 #ifdef sony
801         {"sony", "1"},
802 #ifdef SYSTYPE_SYSV
803         {"SYSTYPE_SYSV", "1"},
804 #endif
805 #ifdef _SYSTYPE_SYSV
806         {"_SYSTYPE_SYSV", "1"},
807 #endif
808 #endif
809 #ifdef __OSF__
810         {"__OSF__", "1"},
811 #endif
812 #ifdef __osf__
813         {"__osf__", "1"},
814 #endif
815 #ifdef __alpha
816         {"__alpha", "1"},
817 #endif
818 #ifdef __DECC
819         {"__DECC",  "1"},
820 #endif
821 #ifdef __decc
822         {"__decc",  "1"},
823 #endif
824 #ifdef __unix__
825         {"__unix__", "1"},
826 #endif
827 #ifdef __uxp__
828         {"__uxp__", "1"},
829 #endif
830 #ifdef __sxg__
831         {"__sxg__", "1"},
832 #endif
833 #ifdef _SEQUENT_
834         {"_SEQUENT_", "1"},
835         {"__STDC__", "1"},
836 #endif
837 #ifdef __bsdi__
838         {"__bsdi__", "1"},
839 #endif
840 #ifdef nec_ews_svr2
841         {"nec_ews_svr2", "1"},
842 #endif
843 #ifdef nec_ews_svr4
844         {"nec_ews_svr4", "1"},
845 #endif
846 #ifdef _nec_ews_svr4
847         {"_nec_ews_svr4", "1"},
848 #endif
849 #ifdef _nec_up
850         {"_nec_up", "1"},
851 #endif
852 #ifdef SX
853         {"SX", "1"},
854 #endif
855 #ifdef nec
856         {"nec", "1"},
857 #endif
858 #ifdef _nec_ft
859         {"_nec_ft", "1"},
860 #endif
861 #ifdef PC_UX
862         {"PC_UX", "1"},
863 #endif
864 #ifdef sgi
865         {"sgi", "1"},
866 #endif
867 #ifdef __sgi
868         {"__sgi", "1"},
869 #endif
870 #ifdef __FreeBSD__
871         {"__FreeBSD__", "1"},
872 #endif
873 #ifdef __OpenBSD__
874         {"__OpenBSD__", "1"},
875 #endif
876 #ifdef __NetBSD__
877         {"__NetBSD__", "1"},
878 #endif
879 #ifdef __EMX__
880         {"__EMX__", "1"},
881 #endif
882 # ifdef ia64
883         {"ia64", "1"},
884 # endif
885 # ifdef __ia64__
886         {"__ia64__", "1"},
887 # endif
888 # if defined (amd64) || defined (x86_64)
889         {"amd64", "1"},
890         {"x86_64", "1"},
891 # endif
892 # if defined (__amd64__) || defined (__x86_64__)
893         {"__amd64__", "1"},
894         {"__x86_64__", "1"},
895 # endif
896 # ifdef __i386
897         {"__i386", "1"},
898 # endif
899 # ifdef __i386__
900         {"__i386__", "1"},
901 # endif
902 # ifdef __i486__
903         {"__i486__", "1"},
904 # endif
905 # ifdef __i586__
906         {"__i586__", "1"},
907 # endif
908 # ifdef __i686__
909         {"__i686__", "1"},
910 # endif
911 # ifdef __k6__
912         {"__k6__", "1"},
913 # endif
914 # ifdef i386
915         {"i386", "1"},
916 # endif
917 # ifdef i486
918         {"i486", "1"},
919 # endif
920 # ifdef i586
921         {"i586", "1"},
922 # endif
923 # ifdef i686
924         { "i686", "1"},
925 # endif
926 # ifdef k6
927         {"k6", "1"},
928 # endif
929 # ifdef sparc
930         {"sparc", "1"},
931 # endif
932 # ifdef __sparc__
933         {"__sparc__", "1"},
934 # endif
935 #if defined(__ppc__)
936         {"__ppc__", "1"},
937 #endif
938 #if defined(__ppc64__)
939         {"__ppc64__", "1"},
940 #endif
941 # ifdef __powerpc__
942         {"__powerpc__", "1"},
943 # endif
944 # ifdef __powerpc64__
945         {"__powerpc64__", "1"},
946 # endif
947 #if defined(__BIG_ENDIAN__)
948       {"__BIG_ENDIAN__", "1"},
949 #endif
950 #if defined(__LITTLE_ENDIAN__)
951       {"__LITTLE_ENDIAN__", "1"},
952 #endif
953 #if defined(__vxworks)
954       {"vxworks", "1"},
955 #endif
956         /* add any additional symbols before this line */
957         {NULL, NULL}
958 };
959
960 #endif /* MAKEDEPEND */
961 #endif /* CCIMAKE */