10eb10989Smrg/*
20eb10989Smrg
30eb10989SmrgCopyright (c) 1993, 1994, 1998  The Open Group
40eb10989Smrg
50eb10989SmrgPermission to use, copy, modify, distribute, and sell this software and its
60eb10989Smrgdocumentation for any purpose is hereby granted without fee, provided that
70eb10989Smrgthe above copyright notice appear in all copies and that both that
80eb10989Smrgcopyright notice and this permission notice appear in supporting
90eb10989Smrgdocumentation.
100eb10989Smrg
110eb10989SmrgThe above copyright notice and this permission notice shall be included in
120eb10989Smrgall copies or substantial portions of the Software.
130eb10989Smrg
140eb10989SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
150eb10989SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
160eb10989SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
170eb10989SmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
180eb10989SmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
190eb10989SmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
200eb10989Smrg
210eb10989SmrgExcept as contained in this notice, the name of The Open Group shall not be
220eb10989Smrgused in advertising or otherwise to promote the sale, use or other dealings
230eb10989Smrgin this Software without prior written authorization from The Open Group.
240eb10989Smrg
250eb10989Smrg*/
260eb10989Smrg
270eb10989Smrg
28d43532a6Smrg/*
29fadff096Smrg * This file contains machine-dependent constants for the makedepend utility.
30fadff096Smrg * When porting makedepend, add in any necessary definitions for selecting
31fadff096Smrg * the right headers to include on your platform.
320eb10989Smrg */
330eb10989Smrg
34fadff096Smrgstruct predef_symtab {
35fadff096Smrg    const char *s_name;
36fadff096Smrg    const char *s_value;
37fadff096Smrg};
380eb10989Smrg
3963165362Smrg#if !defined (CROSSCOMPILE) || defined (CROSSCOMPILE_CPP)
4063165362Smrg/* predefs:
410eb10989Smrg *     If your compiler and/or preprocessor define any specific symbols, add
42fadff096Smrg *     them to the the following table.
430eb10989Smrg */
440eb10989Smrg#undef DEF_EVALUATE
450eb10989Smrg#undef DEF_STRINGIFY
460eb10989Smrg#define DEF_EVALUATE(__x) #__x
470eb10989Smrg#define DEF_STRINGIFY(_x) DEF_EVALUATE(_x)
48fadff096Smrgstatic const struct predef_symtab predefs[] = {
490eb10989Smrg#ifdef apollo
50fadff096Smrg    {"apollo", "1"},
510eb10989Smrg#endif
520eb10989Smrg#if defined(clipper) || defined(__clipper__)
53fadff096Smrg    {"clipper", "1"},
54fadff096Smrg    {"__clipper__", "1"},
55fadff096Smrg    {"clix", "1"},
56fadff096Smrg    {"__clix__", "1"},
570eb10989Smrg#endif
580eb10989Smrg#ifdef ibm032
59fadff096Smrg    {"ibm032", "1"},
600eb10989Smrg#endif
610eb10989Smrg#ifdef ibm
62fadff096Smrg    {"ibm", "1"},
630eb10989Smrg#endif
640eb10989Smrg#ifdef aix
65fadff096Smrg    {"aix", "1"},
660eb10989Smrg#endif
670eb10989Smrg#ifdef sun
68fadff096Smrg    {"sun", "1"},
690eb10989Smrg#endif
700eb10989Smrg#ifdef sun2
71fadff096Smrg    {"sun2", "1"},
720eb10989Smrg#endif
730eb10989Smrg#ifdef sun3
74fadff096Smrg    {"sun3", "1"},
750eb10989Smrg#endif
760eb10989Smrg#ifdef sun4
77fadff096Smrg    {"sun4", "1"},
780eb10989Smrg#endif
7963165362Smrg#ifdef __sun
80fadff096Smrg    {"__sun", "1"},
8163165362Smrg#endif
8263165362Smrg#ifdef __SunOS
83fadff096Smrg    {"__SunOS", "1"},
8463165362Smrg#endif
8563165362Smrg#ifdef __SVR4
86fadff096Smrg    {"__SVR4", "1"},
8763165362Smrg#endif
880eb10989Smrg#ifdef sparc
89fadff096Smrg    {"sparc", "1"},
900eb10989Smrg#endif
910eb10989Smrg#ifdef __sparc
92fadff096Smrg    {"__sparc", "1"},
930eb10989Smrg#endif
940eb10989Smrg#ifdef __sparcv9
95fadff096Smrg    {"__sparcv9", "1"},
960eb10989Smrg#endif
970eb10989Smrg#ifdef __sparc__
98fadff096Smrg    {"__sparc__", "1"},
990eb10989Smrg#endif
1000eb10989Smrg#ifdef __sparcv9__
101fadff096Smrg    {"__sparcv9__", "1"},
1020eb10989Smrg#endif
1030eb10989Smrg#ifdef hpux
104fadff096Smrg    {"hpux", "1"},
1050eb10989Smrg#endif
1060eb10989Smrg#ifdef __hpux
107fadff096Smrg    {"__hpux", "1"},
1080eb10989Smrg#endif
1090eb10989Smrg#ifdef __hp9000s800
110fadff096Smrg    {"__hp9000s800", "1"},
1110eb10989Smrg#endif
1120eb10989Smrg#ifdef __hp9000s700
113fadff096Smrg    {"__hp9000s700", "1"},
1140eb10989Smrg#endif
1150eb10989Smrg#ifdef vax
116fadff096Smrg    {"vax", "1"},
1170eb10989Smrg#endif
1180eb10989Smrg#ifdef VMS
119fadff096Smrg    {"VMS", "1"},
1200eb10989Smrg#endif
1210eb10989Smrg#ifdef cray
122fadff096Smrg    {"cray", "1"},
1230eb10989Smrg#endif
1240eb10989Smrg#ifdef CRAY
125fadff096Smrg    {"CRAY", "1"},
1260eb10989Smrg#endif
1270eb10989Smrg#ifdef _CRAY
128fadff096Smrg    {"_CRAY", "1"},
1290eb10989Smrg#endif
1300eb10989Smrg#ifdef att
131fadff096Smrg    {"att", "1"},
1320eb10989Smrg#endif
1330eb10989Smrg#ifdef mips
134fadff096Smrg    {"mips", "1"},
1350eb10989Smrg#endif
1360eb10989Smrg#ifdef __mips__
137fadff096Smrg    {"__mips__", "1"},
1380eb10989Smrg#endif
1390eb10989Smrg#ifdef ultrix
140fadff096Smrg    {"ultrix", "1"},
1410eb10989Smrg#endif
1420eb10989Smrg#ifdef stellar
143fadff096Smrg    {"stellar", "1"},
1440eb10989Smrg#endif
1450eb10989Smrg#ifdef mc68000
146fadff096Smrg    {"mc68000", "1"},
1470eb10989Smrg#endif
1480eb10989Smrg#ifdef mc68020
149fadff096Smrg    {"mc68020", "1"},
1500eb10989Smrg#endif
1510eb10989Smrg#ifdef __GNUC__
152fadff096Smrg    {"__GNUC__", DEF_STRINGIFY(__GNUC__)},
1530eb10989Smrg#endif
1540eb10989Smrg#ifdef __STRICT_ANSI__
155fadff096Smrg    {"__STRICT_ANSI__", "1"},
1560eb10989Smrg#endif
1570eb10989Smrg#ifdef __STDC__
158fadff096Smrg    {"__STDC__", DEF_STRINGIFY(__STDC__)},
1590eb10989Smrg#endif
1600eb10989Smrg#ifdef __HIGHC__
161fadff096Smrg    {"__HIGHC__", "1"},
1620eb10989Smrg#endif
1630eb10989Smrg#ifdef __OPENSERVER__
164fadff096Smrg    {"__OPENSERVER__", DEF_STRINGIFY(__OPENSERVER__)},
1650eb10989Smrg#endif
1660eb10989Smrg#ifdef _SCO_DS
167fadff096Smrg    {"_SCO_DS", DEF_STRINGIFY(_SCO_DS)},
1680eb10989Smrg#endif
1690eb10989Smrg#ifdef _SCO_DS_LL
170fadff096Smrg    {"_SCO_DS_LL", DEF_STRINGIFY(_SCO_DS_LL)},
1710eb10989Smrg#endif
1720eb10989Smrg#ifdef __SCO_VERSION__
173fadff096Smrg    {"__SCO_VERSION__", DEF_STRINGIFY(__SCO_VERSION__)},
1740eb10989Smrg#endif
1750eb10989Smrg#ifdef __UNIXWARE__
176fadff096Smrg    {"__UNIXWARE__", DEF_STRINGIFY(__UNIXWARE__)},
1770eb10989Smrg#endif
1780eb10989Smrg#ifdef __USLC__
179fadff096Smrg    {"__USLC__", DEF_STRINGIFY(__USLC__)},
1800eb10989Smrg#endif
1810eb10989Smrg#ifdef CMU
182fadff096Smrg    {"CMU", "1"},
1830eb10989Smrg#endif
1840eb10989Smrg#ifdef luna
185fadff096Smrg    {"luna", "1"},
1860eb10989Smrg#ifdef luna1
187fadff096Smrg    {"luna1", "1"},
1880eb10989Smrg#endif
1890eb10989Smrg#ifdef luna2
190fadff096Smrg    {"luna2", "1"},
1910eb10989Smrg#endif
1920eb10989Smrg#ifdef luna88k
193fadff096Smrg    {"luna88k", "1"},
1940eb10989Smrg#endif
1950eb10989Smrg#ifdef uniosb
196fadff096Smrg    {"uniosb", "1"},
1970eb10989Smrg#endif
1980eb10989Smrg#ifdef uniosu
199fadff096Smrg    {"uniosu", "1"},
2000eb10989Smrg#endif
2010eb10989Smrg#endif
2020eb10989Smrg#ifdef ieeep754
203fadff096Smrg    {"ieeep754", "1"},
2040eb10989Smrg#endif
2050eb10989Smrg#ifdef is68k
206fadff096Smrg    {"is68k", "1"},
2070eb10989Smrg#endif
2080eb10989Smrg#ifdef m68k
209fadff096Smrg    {"m68k", "1"},
2100eb10989Smrg#endif
2110eb10989Smrg#ifdef M68k
212fadff096Smrg    {"M68k", "1"},
2130eb10989Smrg#endif
2140eb10989Smrg#ifdef __m68k__
215fadff096Smrg    {"__m68k__", "1"},
2160eb10989Smrg#endif
2170eb10989Smrg#ifdef m88k
218fadff096Smrg    {"m88k", "1"},
2190eb10989Smrg#endif
2200eb10989Smrg#ifdef __m88k__
221fadff096Smrg    {"__m88k__", "1"},
2220eb10989Smrg#endif
2230eb10989Smrg#ifdef bsd43
224fadff096Smrg    {"bsd43", "1"},
2250eb10989Smrg#endif
2260eb10989Smrg#ifdef hcx
227fadff096Smrg    {"hcx", "1"},
2280eb10989Smrg#endif
2290eb10989Smrg#ifdef sony
230fadff096Smrg    {"sony", "1"},
2310eb10989Smrg#ifdef SYSTYPE_SYSV
232fadff096Smrg    {"SYSTYPE_SYSV", "1"},
2330eb10989Smrg#endif
2340eb10989Smrg#ifdef _SYSTYPE_SYSV
235fadff096Smrg    {"_SYSTYPE_SYSV", "1"},
2360eb10989Smrg#endif
2370eb10989Smrg#endif
2380eb10989Smrg#ifdef __OSF__
239fadff096Smrg    {"__OSF__", "1"},
2400eb10989Smrg#endif
2410eb10989Smrg#ifdef __osf__
242fadff096Smrg    {"__osf__", "1"},
2430eb10989Smrg#endif
2440eb10989Smrg#ifdef __amiga__
245fadff096Smrg    {"__amiga__", "1"},
2460eb10989Smrg#endif
2470eb10989Smrg#ifdef __alpha
248fadff096Smrg    {"__alpha", "1"},
2490eb10989Smrg#endif
2500eb10989Smrg#ifdef __alpha__
251fadff096Smrg    {"__alpha__", "1"},
2520eb10989Smrg#endif
2530eb10989Smrg#ifdef __DECC
254fadff096Smrg    {"__DECC", "1"},
2550eb10989Smrg#endif
2560eb10989Smrg#ifdef __decc
257fadff096Smrg    {"__decc", "1"},
2580eb10989Smrg#endif
25963165362Smrg#ifdef __unix
260fadff096Smrg    {"__unix", "1"},
26163165362Smrg#endif
2620eb10989Smrg#ifdef __unix__
263fadff096Smrg    {"__unix__", "1"},
2640eb10989Smrg#endif
2650eb10989Smrg#ifdef __uxp__
266fadff096Smrg    {"__uxp__", "1"},
2670eb10989Smrg#endif
2680eb10989Smrg#ifdef __sxg__
269fadff096Smrg    {"__sxg__", "1"},
2700eb10989Smrg#endif
2710eb10989Smrg#ifdef _SEQUENT_
272fadff096Smrg    {"_SEQUENT_", "1"},
273fadff096Smrg    {"__STDC__", "1"},
2740eb10989Smrg#endif
2750eb10989Smrg#ifdef __bsdi__
276fadff096Smrg    {"__bsdi__", "1"},
2770eb10989Smrg#endif
2780eb10989Smrg#ifdef nec_ews_svr2
279fadff096Smrg    {"nec_ews_svr2", "1"},
2800eb10989Smrg#endif
2810eb10989Smrg#ifdef nec_ews_svr4
282fadff096Smrg    {"nec_ews_svr4", "1"},
2830eb10989Smrg#endif
2840eb10989Smrg#ifdef _nec_ews_svr4
285fadff096Smrg    {"_nec_ews_svr4", "1"},
2860eb10989Smrg#endif
2870eb10989Smrg#ifdef _nec_up
288fadff096Smrg    {"_nec_up", "1"},
2890eb10989Smrg#endif
2900eb10989Smrg#ifdef SX
291fadff096Smrg    {"SX", "1"},
2920eb10989Smrg#endif
2930eb10989Smrg#ifdef nec
294fadff096Smrg    {"nec", "1"},
2950eb10989Smrg#endif
2960eb10989Smrg#ifdef _nec_ft
297fadff096Smrg    {"_nec_ft", "1"},
2980eb10989Smrg#endif
2990eb10989Smrg#ifdef PC_UX
300fadff096Smrg    {"PC_UX", "1"},
3010eb10989Smrg#endif
3020eb10989Smrg#ifdef sgi
303fadff096Smrg    {"sgi", "1"},
3040eb10989Smrg#endif
3050eb10989Smrg#ifdef __sgi
306fadff096Smrg    {"__sgi", "1"},
3070eb10989Smrg#endif
3080eb10989Smrg#ifdef _MIPS_FPSET
309fadff096Smrg    {"_MIPS_FPSET", DEF_STRINGIFY(_MIPS_FPSET)},
3100eb10989Smrg#endif
3110eb10989Smrg#ifdef _MIPS_ISA
312fadff096Smrg    {"_MIPS_ISA", DEF_STRINGIFY(_MIPS_ISA)},
3130eb10989Smrg#endif
3140eb10989Smrg#ifdef _MIPS_SIM
315fadff096Smrg    {"_MIPS_SIM", DEF_STRINGIFY(_MIPS_SIM)},
3160eb10989Smrg#endif
3170eb10989Smrg#ifdef _MIPS_SZINT
318fadff096Smrg    {"_MIPS_SZINT", DEF_STRINGIFY(_MIPS_SZINT)},
3190eb10989Smrg#endif
3200eb10989Smrg#ifdef _MIPS_SZLONG
321fadff096Smrg    {"_MIPS_SZLONG", DEF_STRINGIFY(_MIPS_SZLONG)},
3220eb10989Smrg#endif
3230eb10989Smrg#ifdef _MIPS_SZPTR
324fadff096Smrg    {"_MIPS_SZPTR", DEF_STRINGIFY(_MIPS_SZPTR)},
3250eb10989Smrg#endif
3260eb10989Smrg#ifdef __DragonFly__
327fadff096Smrg    {"__DragonFly__", "1"},
3280eb10989Smrg#endif
3290eb10989Smrg#ifdef __FreeBSD__
330fadff096Smrg    {"__FreeBSD__", "1"},
3310eb10989Smrg#endif
3320eb10989Smrg#ifdef __OpenBSD__
333fadff096Smrg    {"__OpenBSD__", "1"},
3340eb10989Smrg#endif
3350eb10989Smrg#ifdef __NetBSD__
336fadff096Smrg    {"__NetBSD__", "1"},
3370eb10989Smrg#endif
3380eb10989Smrg#ifdef __GNU__
339fadff096Smrg    {"__GNU__", "1"},
3400eb10989Smrg#endif
3410eb10989Smrg#ifdef __ELF__
342fadff096Smrg    {"__ELF__", "1"},
3430eb10989Smrg#endif
3440eb10989Smrg#if defined(__QNX__)
345fadff096Smrg    {"__QNX__", "1"},
3460eb10989Smrg#endif
3470eb10989Smrg#ifdef __QNXNTO__
348fadff096Smrg    {"__QNXNTO__", "1"},
349fadff096Smrg#endif
350fadff096Smrg#ifdef __powerpc__
351fadff096Smrg    {"__powerpc__", "1"},
352fadff096Smrg#endif
353fadff096Smrg#ifdef __powerpc64__
354fadff096Smrg    {"__powerpc64__", "1"},
355fadff096Smrg#endif
356fadff096Smrg#ifdef PowerMAX_OS
357fadff096Smrg    {"PowerMAX_OS", "1"},
358fadff096Smrg#endif
359fadff096Smrg#ifdef ia64
360fadff096Smrg    {"ia64", "1"},
361fadff096Smrg#endif
362fadff096Smrg#ifdef __ia64__
363fadff096Smrg    {"__ia64__", "1"},
364fadff096Smrg#endif
365fadff096Smrg#if defined (amd64) || defined (x86_64)
366fadff096Smrg    {"amd64", "1"},
367fadff096Smrg    {"x86_64", "1"},
368fadff096Smrg#endif
369fadff096Smrg#if defined (__amd64__) || defined (__x86_64__)
370fadff096Smrg    {"__amd64__", "1"},
371fadff096Smrg    {"__x86_64__", "1"},
372fadff096Smrg#endif
373fadff096Smrg#if defined (__amd64) || defined(__x86_64)
374fadff096Smrg    {"__amd64", "1"},
375fadff096Smrg    {"__x86_64", "1"},
376fadff096Smrg#endif
377fadff096Smrg#ifdef __x86
378fadff096Smrg    {"__x86", "1"},
379fadff096Smrg#endif
380fadff096Smrg#ifdef __i386
381fadff096Smrg    {"__i386", "1"},
382fadff096Smrg#endif
383fadff096Smrg#ifdef __i386__
384fadff096Smrg    {"__i386__", "1"},
385fadff096Smrg#endif
386fadff096Smrg#ifdef __i486__
387fadff096Smrg    {"__i486__", "1"},
388fadff096Smrg#endif
389fadff096Smrg#ifdef __i586__
390fadff096Smrg    {"__i586__", "1"},
391fadff096Smrg#endif
392fadff096Smrg#ifdef __i686__
393fadff096Smrg    {"__i686__", "1"},
394fadff096Smrg#endif
395fadff096Smrg#ifdef __k6__
396fadff096Smrg    {"__k6__", "1"},
397fadff096Smrg#endif
398fadff096Smrg#ifdef i386
399fadff096Smrg    {"i386", "1"},
400fadff096Smrg#endif
401fadff096Smrg#ifdef i486
402fadff096Smrg    {"i486", "1"},
403fadff096Smrg#endif
404fadff096Smrg#ifdef i586
405fadff096Smrg    {"i586", "1"},
406fadff096Smrg#endif
407fadff096Smrg#ifdef i686
408fadff096Smrg    {"i686", "1"},
409fadff096Smrg#endif
410fadff096Smrg#ifdef k6
411fadff096Smrg    {"k6", "1"},
412fadff096Smrg#endif
413fadff096Smrg#ifdef sparc
414fadff096Smrg    {"sparc", "1"},
415fadff096Smrg#endif
416fadff096Smrg#ifdef __sparc__
417fadff096Smrg    {"__sparc__", "1"},
418fadff096Smrg#endif
419fadff096Smrg#ifdef __s390__
420fadff096Smrg    {"__s390__", "1"},
421fadff096Smrg#endif
422fadff096Smrg#ifdef __hppa__
423fadff096Smrg    {"__hppa__", "1"},
424fadff096Smrg#endif
425fadff096Smrg#ifdef __sh__
426fadff096Smrg    {"__sh__", "1"},
427fadff096Smrg#endif
428fadff096Smrg#ifdef __sh3_
429fadff096Smrg    {"__sh3__", "1"},
430fadff096Smrg#endif
431fadff096Smrg#ifdef __SH3__
432fadff096Smrg    {"__SH3__", "1"},
433fadff096Smrg#endif
434fadff096Smrg#ifdef __SH4__
435fadff096Smrg    {"__SH4__", "1"},
436fadff096Smrg#endif
437fadff096Smrg#ifdef __SH4NOFPU__
438fadff096Smrg    {"__SH4NOFPU__", "1"},
439fadff096Smrg#endif
4400eb10989Smrg#if defined(__ppc__)
441fadff096Smrg    {"__ppc__", "1"},
4420eb10989Smrg#endif
4430eb10989Smrg#if defined(__ppc64__)
444fadff096Smrg    {"__ppc64__", "1"},
4450eb10989Smrg#endif
4460eb10989Smrg#if defined(__BIG_ENDIAN__)
447fadff096Smrg    {"__BIG_ENDIAN__", "1"},
4480eb10989Smrg#endif
4490eb10989Smrg#if defined(__LITTLE_ENDIAN__)
450fadff096Smrg    {"__LITTLE_ENDIAN__", "1"},
4510eb10989Smrg#endif
4520eb10989Smrg#if defined (__CHAR_BIT__)
453fadff096Smrg    {"__CHAR_BIT__", DEF_STRINGIFY(__CHAR_BIT__)},
4540eb10989Smrg#endif
4550eb10989Smrg#if defined (__BUILTIN_VA_STRUCT)
456fadff096Smrg    {"__BUILTIN_VA_STRUCT", "1"},
4570eb10989Smrg#endif
4580eb10989Smrg#if defined (__BUILTIN_VA_ARG_INCR)
459fadff096Smrg    {"__BUILTIN_VA_ARG_INCR", "1"},
460d43532a6Smrg#endif
461fadff096Smrg    /* add any additional symbols before this line */
462fadff096Smrg    {NULL, NULL}
4630eb10989Smrg};
464fadff096Smrg
4650eb10989Smrg#undef DEF_EVALUATE
4660eb10989Smrg#undef DEF_STRINGIFY
467fadff096Smrg#endif                          /* CROSSCOMPILE */
468