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