Remove UXPDS 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 __sxg__
160 #define imake_ccflags "-DSYSV -DUSG -DNOSTDHDRS"
161 #endif
162
163 #ifdef sequent
164 #define imake_ccflags "-DX_NOT_STDC_ENV -DX_NOT_POSIX"
165 #endif
166
167 #ifdef _SEQUENT_
168 #define imake_ccflags "-DSYSV -DUSG"
169 #endif
170
171 #if defined(SX) || defined(PC_UX)
172 #define imake_ccflags "-DSYSV"
173 #endif
174
175 #ifdef nec_ews_svr2
176 #define imake_ccflags "-DUSG"
177 #endif
178
179 #if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up) || defined(_nec_ft)
180 #define imake_ccflags "-DSVR4"
181 #endif
182
183 #ifdef  MACH
184 #define imake_ccflags "-DNOSTDHDRS"
185 #endif
186
187 #ifdef  __FreeBSD__
188 #include <sys/param.h>
189 #if defined(__FreeBSD_version)
190 #if __FreeBSD_version < 500000
191 #define imake_ccflags "-DCPP_IN_LIBEXEC"
192 #endif
193 #else
194 #define imake_ccflags "-DCPP_IN_LIBEXEC"
195 #endif
196 #endif
197
198 /* this is for OS/2 under EMX. This won't work with DOS */
199 #if defined(__EMX__)
200 #define imake_ccflags "-DBSD43"
201 #endif
202
203 #else /* not CCIMAKE */
204 #ifndef MAKEDEPEND
205 /*
206  * Step 2:  dup2
207  *     If your OS doesn't have a dup2() system call to duplicate one file
208  *     descriptor onto another, define such a mechanism here (if you don't
209  *     already fall under the existing category(ies).
210  */
211 #if defined(SYSV) && !defined(_CRAY) && !defined(Mips) && !defined(_SEQUENT_) && !defined(sco)
212 #define dup2(fd1,fd2)   ((fd1 == fd2) ? fd1 : (close(fd2), \
213                                                fcntl(fd1, F_DUPFD, fd2)))
214 #endif
215
216
217 /*
218  * Step 3:  FIXUP_CPP_WHITESPACE
219  *     If your cpp collapses tabs macro expansions into a single space and
220  *     replaces escaped newlines with a space, define this symbol.  This will
221  *     cause imake to attempt to patch up the generated Makefile by looking
222  *     for lines that have colons in them (this is why the rules file escapes
223  *     all colons).  One way to tell if you need this is to see whether or not
224  *     your Makefiles have no tabs in them and lots of @@ strings.
225  */
226 #if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(WIN32) || defined(sco) || defined(__llvm__) || (defined(AMOEBA) && defined(CROSS_COMPILE))
227 #define FIXUP_CPP_WHITESPACE
228 #endif
229 #ifdef WIN32
230 #define REMOVE_CPP_LEADSPACE
231 #define INLINE_SYNTAX
232 #define MAGIC_MAKE_VARS
233 #endif
234
235 /*
236  * Step 4:  USE_CC_E, DEFAULT_CC, DEFAULT_CPP
237  *     If you want to use cc -E instead of cpp, define USE_CC_E.
238  *     If use cc -E but want a different compiler, define DEFAULT_CC.
239  *     If the cpp you need is not in /lib/cpp, define DEFAULT_CPP.
240  */
241 #ifdef hpux
242 #define USE_CC_E
243 #endif
244 #ifdef WIN32
245 #define USE_CC_E
246 #define DEFAULT_CC "cl"
247 #endif
248 #ifdef apollo
249 #define DEFAULT_CPP "/usr/lib/cpp"
250 #endif
251 #if defined(_IBMR2) && !defined(DEFAULT_CPP)
252 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
253 #endif
254 #if defined(sun) && (defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__))
255 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
256 #endif
257 #if defined(__NetBSD__) || (defined(__FreeBSD__) && !defined(CPP_IN_LIBEXEC))
258 #define DEFAULT_CPP "/usr/bin/cpp"
259 #endif
260 #ifdef __sxg__
261 #define DEFAULT_CPP "/usr/lib/cpp"
262 #endif
263 #ifdef _CRAY
264 #define DEFAULT_CPP "/lib/pcpp"
265 #endif
266 #if defined(__386BSD__) || defined(__OpenBSD__) \
267         || (defined(__FreeBSD__) && defined(CPP_IN_LIBEXEC))
268 #define DEFAULT_CPP "/usr/libexec/cpp"
269 #endif
270 #if defined(__FreeBSD__) && (__FreeBSD__ >= 10) && !defined(__llvm__)
271 #undef DEFAULT_CPP
272 #endif
273 #if defined(__sgi) && defined(__ANSI_CPP__)
274 #define USE_CC_E
275 #endif
276 #ifdef  MACH
277 #define USE_CC_E
278 #endif
279 #ifdef __minix_vmd
280 #define DEFAULT_CPP "/usr/lib/cpp"
281 #endif
282 #if defined(__EMX__)
283 /* expects cpp in PATH */
284 #define DEFAULT_CPP "cpp"
285 #endif
286
287 /*
288  * Step 5:  cpp_argv
289  *     The following table contains the flags that should be passed
290  *     whenever a Makefile is being generated.  If your preprocessor 
291  *     doesn't predefine any unique symbols, choose one and add it to the
292  *     end of this table.  Then, do the following:
293  * 
294  *         a.  Use this symbol in Imake.tmpl when setting MacroFile.
295  *         b.  Put this symbol in the definition of BootstrapCFlags in your
296  *             <platform>.cf file.
297  *         c.  When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol" 
298  *             to the end of the command line.
299  * 
300  *     Note that you may define more than one symbol (useful for platforms 
301  *     that support multiple operating systems).
302  */
303
304 #define ARGUMENTS 50    /* number of arguments in various arrays */
305 char *cpp_argv[ARGUMENTS] = {
306         "cc",           /* replaced by the actual program to exec */
307         "-I.",          /* add current directory to include path */
308 #ifdef unix
309         "-Uunix",       /* remove unix symbol so that filename unix.c okay */
310 #endif
311 #if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(MACH) || defined(USL) || defined(sco) || defined(ISC) || defined(linux) || defined(__hpux__) || defined(__vxworks)
312 # ifdef __i386__
313         "-D__i386__",
314 # endif
315 # ifdef __i486__
316         "-D__i486__",
317 # endif
318 # ifdef __i586__
319         "-D__i586__",
320 # endif
321 # ifdef __i686__
322         "-D__i686__",
323 # endif
324 # ifdef __k6__
325         "-D__k6__",
326 # endif
327 # ifdef __ia64__
328         "-D__ia64__",
329 # endif
330 # ifdef __amd64__
331         "-D__amd64__",
332 # endif
333 # ifdef __x86_64__
334         "-D__amd64__",
335 # endif
336 # ifdef __ppc__
337         {"-D__powerpc__", "1"},
338 # endif
339 # ifdef __ppc64__
340         {"-D__powerpc64__", "1"},
341 # endif
342 # ifdef __powerpc__
343         {"-D__powerpc__", "1"},
344 # endif
345 # ifdef __powerpc64__
346         {"-D__powerpc64__", "1"},
347 # endif
348
349 # if defined(__GNUC__) && !defined(__llvm__)
350         "-traditional",
351 # endif
352 # ifdef __llvm__
353         "-fms-extensions",
354         "-Wno-invalid-token-paste",
355         "-Wno-invalid-pp-token",
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 __sxg__
552         "-D__sxg__",
553 #endif
554 #ifdef nec_ews_svr2
555         "-Dnec_ews_svr2",
556 #endif
557 #ifdef AMOEBA
558         "-DAMOEBA",
559 # ifdef CROSS_COMPILE
560         "-DCROSS_COMPILE",
561 #  ifdef CROSS_i80386
562         "-DCROSS_i80386",
563 #  endif
564 #  ifdef CROSS_sparc
565         "-DCROSS_sparc",
566 #  endif
567 #  ifdef CROSS_mc68000
568         "-DCROSS_mc68000",
569 #  endif
570 # else
571 #  ifdef i80386
572         "-Di80386",
573 #  endif
574 #  ifdef sparc
575         "-Dsparc",
576 #  endif
577 #  ifdef mc68000
578         "-Dmc68000",
579 #  endif
580 # endif
581 #endif
582 #if defined(__sgi) && defined(__ANSI_CPP__)
583         "-cckr",
584 #endif
585 #ifdef __minix_vmd
586         "-Dminix",
587 #endif
588
589 #if defined(__EMX__)
590         "-traditional",
591         "-Demxos2",
592 #endif
593
594 };
595
596
597 /*
598  * Step 6: DEFAULT_OS_MAJOR_REV, DEFAULT_OS_MINOR_REV, DEFAULT_OS_TEENY_REV,
599  *      and DEFAULT_OS_NAME.
600  *      If your systems provides a way to generate the default major,
601  *      minor, teeny, or system names at runtime add commands below.
602  *      The syntax of the _REV strings is 'f fmt' where 'f' is an argument
603  *      you would give to uname, and "fmt" is a scanf() format string.
604  *      Supported uname arguments are "snrvm", and if you specify multiple
605  *      arguments they will be separated by spaces.  No more than 5 arguments
606  *      may be given.  Unlike uname() order of arguments matters.
607  */
608 #if defined(aix)
609 /* uname -v returns "x" (e.g. "4"), and uname -r returns "y" (e.g. "1") */
610 # define DEFAULT_OS_MAJOR_REV   "v %[0-9]"
611 # define DEFAULT_OS_MINOR_REV   "r %[0-9]"
612 /* No information available to generate default OSTeenyVersion value. */
613 # define DEFAULT_OS_NAME        "srvm %[^\n]"
614 #elif defined(sun) || defined(sgi) || defined(ultrix) || defined(linux) || defined(sony)
615 /* uname -r returns "x.y[.z]", e.g. "5.4" or "4.1.3" */
616 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
617 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
618 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d.%[0-9]"
619 # define DEFAULT_OS_NAME        "srvm %[^\n]"
620 #elif defined(hpux)
621 /* uname -r returns "W.x.yz", e.g. "B.10.01" */
622 # define DEFAULT_OS_MAJOR_REV   "r %*[^.].%[0-9]"
623 # define DEFAULT_OS_MINOR_REV   "r %*[^.].%*d.%1s"
624 # define DEFAULT_OS_TEENY_REV   "r %*[^.].%*d.%*c%[0-9]"
625 # define DEFAULT_OS_NAME        "srvm %[^\n]"
626 #elif defined(USL) || defined(__USLC__)
627 /* uname -v returns "x.yz" or "x.y.z", e.g. "2.02" or "2.1.2". */
628 # define DEFAULT_OS_MAJOR_REV   "v %[0-9]"
629 # define DEFAULT_OS_MINOR_REV   "v %*d.%1s"
630 # define DEFAULT_OS_TEENY_REV   "v %*d.%*c%[.0-9]"
631 # define DEFAULT_OS_NAME        "srvm %[^\n]"
632 #elif defined(__osf__)
633 /* uname -r returns "Wx.y", e.g. "V3.2" or "T4.0" */
634 # define DEFAULT_OS_MAJOR_REV   "r %*[^0-9]%[0-9]"
635 # define DEFAULT_OS_MINOR_REV   "r %*[^.].%[0-9]"
636 # define DEFAULT_OS_NAME        "srvm %[^\n]"
637 #elif defined(__FreeBSD__)
638 /* uname -r returns "x.y[.z]-mumble", e.g. "9.0-RELEASE" or "11.0-CURRENT" */
639 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
640 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
641 # define DEFAULT_OS_TEENY_REV   "v %*s %*s %*s r%[0-9]"
642 # define DEFAULT_OS_NAME        "srm %[^\n]"
643 #elif defined(__NetBSD__)
644 /* 386BSD, and BSD/OS too? */
645 /* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
646 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
647 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
648 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d.%[0-9]"
649 # define DEFAULT_OS_NAME        "srm %[^\n]"
650 #elif defined(__OpenBSD__)
651 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
652 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
653 # define DEFAULT_OS_NAME        "srm %[^\n]"
654 #endif
655
656 #else /* else MAKEDEPEND */
657 /*
658  * Step 7:  predefs
659  *     If your compiler and/or preprocessor define any specific symbols, add
660  *     them to the the following table.  The definition of struct symtab is
661  *     in util/makedepend/def.h.
662  */
663 #undef DEF_EVALUATE
664 #undef DEF_STRINGIFY
665 #define DEF_EVALUATE(__x) #__x
666 #define DEF_STRINGIFY(_x) DEF_EVALUATE(_x)
667
668 struct symtab   predefs[] = {
669 #ifdef apollo
670         {"apollo", "1"},
671 #endif
672 #ifdef ibm032
673         {"ibm032", "1"},
674 #endif
675 #ifdef ibm
676         {"ibm", "1"},
677 #endif
678 #ifdef aix
679         {"aix", "1"},
680 #endif
681 #ifdef sun
682         {"sun", "1"},
683 #endif
684 #ifdef sun2
685         {"sun2", "1"},
686 #endif
687 #ifdef sun3
688         {"sun3", "1"},
689 #endif
690 #ifdef sun4
691         {"sun4", "1"},
692 #endif
693 #ifdef sparc
694         {"sparc", "1"},
695 #endif
696 #ifdef __sparc__
697         {"__sparc__", "1"},
698 #endif
699 #ifdef hpux
700         {"hpux", "1"},
701 #endif
702 #ifdef __hpux
703         {"__hpux", "1"},
704 #endif
705 #ifdef __hp9000s800
706         {"__hp9000s800", "1"},
707 #endif
708 #ifdef __hp9000s700
709         {"__hp9000s700", "1"},
710 #endif
711 #ifdef vax
712         {"vax", "1"},
713 #endif
714 #ifdef VMS
715         {"VMS", "1"},
716 #endif
717 #ifdef cray
718         {"cray", "1"},
719 #endif
720 #ifdef CRAY
721         {"CRAY", "1"},
722 #endif
723 #ifdef _CRAY
724         {"_CRAY", "1"},
725 #endif
726 #ifdef att
727         {"att", "1"},
728 #endif
729 #ifdef mips
730         {"mips", "1"},
731 #endif
732 #ifdef __mips__
733         {"__mips__", "1"},
734 #endif
735 #ifdef ultrix
736         {"ultrix", "1"},
737 #endif
738 #ifdef stellar
739         {"stellar", "1"},
740 #endif
741 #ifdef mc68000
742         {"mc68000", "1"},
743 #endif
744 #ifdef mc68020
745         {"mc68020", "1"},
746 #endif
747 #if defined(__GNUC__) && !defined(linux)
748         {"__GNUC__", DEF_STRINGIFY(__GNUC__)},
749 #endif
750 #ifdef __GNUC_MINOR__
751         {"__GNUC_MINOR__", DEF_STRINGIFY(__GNUC_MINOR__)},
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 __sxg__
829         {"__sxg__", "1"},
830 #endif
831 #ifdef _SEQUENT_
832         {"_SEQUENT_", "1"},
833         {"__STDC__", "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 */