Adjust cpp location for FreeBSD
[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 struct symtab   predefs[] = {
666 #ifdef apollo
667         {"apollo", "1"},
668 #endif
669 #ifdef ibm032
670         {"ibm032", "1"},
671 #endif
672 #ifdef ibm
673         {"ibm", "1"},
674 #endif
675 #ifdef aix
676         {"aix", "1"},
677 #endif
678 #ifdef sun
679         {"sun", "1"},
680 #endif
681 #ifdef sun2
682         {"sun2", "1"},
683 #endif
684 #ifdef sun3
685         {"sun3", "1"},
686 #endif
687 #ifdef sun4
688         {"sun4", "1"},
689 #endif
690 #ifdef sparc
691         {"sparc", "1"},
692 #endif
693 #ifdef __sparc__
694         {"__sparc__", "1"},
695 #endif
696 #ifdef hpux
697         {"hpux", "1"},
698 #endif
699 #ifdef __hpux
700         {"__hpux", "1"},
701 #endif
702 #ifdef __hp9000s800
703         {"__hp9000s800", "1"},
704 #endif
705 #ifdef __hp9000s700
706         {"__hp9000s700", "1"},
707 #endif
708 #ifdef vax
709         {"vax", "1"},
710 #endif
711 #ifdef VMS
712         {"VMS", "1"},
713 #endif
714 #ifdef cray
715         {"cray", "1"},
716 #endif
717 #ifdef CRAY
718         {"CRAY", "1"},
719 #endif
720 #ifdef _CRAY
721         {"_CRAY", "1"},
722 #endif
723 #ifdef att
724         {"att", "1"},
725 #endif
726 #ifdef mips
727         {"mips", "1"},
728 #endif
729 #ifdef __mips__
730         {"__mips__", "1"},
731 #endif
732 #ifdef ultrix
733         {"ultrix", "1"},
734 #endif
735 #ifdef stellar
736         {"stellar", "1"},
737 #endif
738 #ifdef mc68000
739         {"mc68000", "1"},
740 #endif
741 #ifdef mc68020
742         {"mc68020", "1"},
743 #endif
744 #ifdef __GNUC__
745         {"__GNUC__", "1"},
746 #endif
747 #if __STDC__
748         {"__STDC__", "1"},
749 #endif
750 #ifdef __HIGHC__
751         {"__HIGHC__", "1"},
752 #endif
753 #ifdef CMU
754         {"CMU", "1"},
755 #endif
756 #ifdef luna
757         {"luna", "1"},
758 #ifdef luna1
759         {"luna1", "1"},
760 #endif
761 #ifdef luna2
762         {"luna2", "1"},
763 #endif
764 #ifdef luna88k
765         {"luna88k", "1"},
766 #endif
767 #ifdef uniosb
768         {"uniosb", "1"},
769 #endif
770 #ifdef uniosu
771         {"uniosu", "1"},
772 #endif
773 #endif
774 #ifdef ieeep754
775         {"ieeep754", "1"},
776 #endif
777 #ifdef is68k
778         {"is68k", "1"},
779 #endif
780 #ifdef m68k
781         {"m68k", "1"},
782 #endif
783 #ifdef m88k
784         {"m88k", "1"},
785 #endif
786 #ifdef __m88k__
787         {"__m88k__", "1"},
788 #endif
789 #ifdef bsd43
790         {"bsd43", "1"},
791 #endif
792 #ifdef hcx
793         {"hcx", "1"},
794 #endif
795 #ifdef sony
796         {"sony", "1"},
797 #ifdef SYSTYPE_SYSV
798         {"SYSTYPE_SYSV", "1"},
799 #endif
800 #ifdef _SYSTYPE_SYSV
801         {"_SYSTYPE_SYSV", "1"},
802 #endif
803 #endif
804 #ifdef __OSF__
805         {"__OSF__", "1"},
806 #endif
807 #ifdef __osf__
808         {"__osf__", "1"},
809 #endif
810 #ifdef __alpha
811         {"__alpha", "1"},
812 #endif
813 #ifdef __DECC
814         {"__DECC",  "1"},
815 #endif
816 #ifdef __decc
817         {"__decc",  "1"},
818 #endif
819 #ifdef __unix__
820         {"__unix__", "1"},
821 #endif
822 #ifdef __uxp__
823         {"__uxp__", "1"},
824 #endif
825 #ifdef __sxg__
826         {"__sxg__", "1"},
827 #endif
828 #ifdef _SEQUENT_
829         {"_SEQUENT_", "1"},
830         {"__STDC__", "1"},
831 #endif
832 #ifdef __bsdi__
833         {"__bsdi__", "1"},
834 #endif
835 #ifdef nec_ews_svr2
836         {"nec_ews_svr2", "1"},
837 #endif
838 #ifdef nec_ews_svr4
839         {"nec_ews_svr4", "1"},
840 #endif
841 #ifdef _nec_ews_svr4
842         {"_nec_ews_svr4", "1"},
843 #endif
844 #ifdef _nec_up
845         {"_nec_up", "1"},
846 #endif
847 #ifdef SX
848         {"SX", "1"},
849 #endif
850 #ifdef nec
851         {"nec", "1"},
852 #endif
853 #ifdef _nec_ft
854         {"_nec_ft", "1"},
855 #endif
856 #ifdef PC_UX
857         {"PC_UX", "1"},
858 #endif
859 #ifdef sgi
860         {"sgi", "1"},
861 #endif
862 #ifdef __sgi
863         {"__sgi", "1"},
864 #endif
865 #ifdef __FreeBSD__
866         {"__FreeBSD__", "1"},
867 #endif
868 #ifdef __OpenBSD__
869         {"__OpenBSD__", "1"},
870 #endif
871 #ifdef __NetBSD__
872         {"__NetBSD__", "1"},
873 #endif
874 #ifdef __EMX__
875         {"__EMX__", "1"},
876 #endif
877 # ifdef ia64
878         {"ia64", "1"},
879 # endif
880 # ifdef __ia64__
881         {"__ia64__", "1"},
882 # endif
883 # if defined (amd64) || defined (x86_64)
884         {"amd64", "1"},
885         {"x86_64", "1"},
886 # endif
887 # if defined (__amd64__) || defined (__x86_64__)
888         {"__amd64__", "1"},
889         {"__x86_64__", "1"},
890 # endif
891 # ifdef __i386
892         {"__i386", "1"},
893 # endif
894 # ifdef __i386__
895         {"__i386__", "1"},
896 # endif
897 # ifdef __i486__
898         {"__i486__", "1"},
899 # endif
900 # ifdef __i586__
901         {"__i586__", "1"},
902 # endif
903 # ifdef __i686__
904         {"__i686__", "1"},
905 # endif
906 # ifdef __k6__
907         {"__k6__", "1"},
908 # endif
909 # ifdef i386
910         {"i386", "1"},
911 # endif
912 # ifdef i486
913         {"i486", "1"},
914 # endif
915 # ifdef i586
916         {"i586", "1"},
917 # endif
918 # ifdef i686
919         { "i686", "1"},
920 # endif
921 # ifdef k6
922         {"k6", "1"},
923 # endif
924 # ifdef sparc
925         {"sparc", "1"},
926 # endif
927 # ifdef __sparc__
928         {"__sparc__", "1"},
929 # endif
930 #if defined(__ppc__)
931         {"__ppc__", "1"},
932 #endif
933 #if defined(__ppc64__)
934         {"__ppc64__", "1"},
935 #endif
936 # ifdef __powerpc__
937         {"__powerpc__", "1"},
938 # endif
939 # ifdef __powerpc64__
940         {"__powerpc64__", "1"},
941 # endif
942 #if defined(__BIG_ENDIAN__)
943       {"__BIG_ENDIAN__", "1"},
944 #endif
945 #if defined(__LITTLE_ENDIAN__)
946       {"__LITTLE_ENDIAN__", "1"},
947 #endif
948 #if defined(__vxworks)
949       {"vxworks", "1"},
950 #endif
951         /* add any additional symbols before this line */
952         {NULL, NULL}
953 };
954
955 #endif /* MAKEDEPEND */
956 #endif /* CCIMAKE */