imakemdep.h revision 63165362
1/*
2
3Copyright (c) 1993, 1994, 1998  The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25*/
26
27
28/*
29 * This file contains machine-dependent constants for the imake utility.
30 * When porting imake, read each of the steps below and add in any necessary
31 * definitions.  In general you should *not* edit ccimake.c or imake.c!
32 */
33
34#ifdef __UNIXOS2__
35#define lstat stat
36#endif
37
38#if !defined (CROSSCOMPILE) || defined (CROSSCOMPILE_CPP)
39/* predefs:
40 *     If your compiler and/or preprocessor define any specific symbols, add
41 *     them to the the following table.  The definition of struct symtab is
42 *     in util/makedepend/def.h.
43 */
44#undef DEF_EVALUATE
45#undef DEF_STRINGIFY
46#define DEF_EVALUATE(__x) #__x
47#define DEF_STRINGIFY(_x) DEF_EVALUATE(_x)
48static const struct symtab	predefs[] = {
49#ifdef apollo
50	{"apollo", "1"},
51#endif
52#if defined(clipper) || defined(__clipper__)
53	{"clipper", "1"},
54	{"__clipper__", "1"},
55	{"clix", "1"},
56	{"__clix__", "1"},
57#endif
58#ifdef ibm032
59	{"ibm032", "1"},
60#endif
61#ifdef ibm
62	{"ibm", "1"},
63#endif
64#ifdef aix
65	{"aix", "1"},
66#endif
67#ifdef sun
68	{"sun", "1"},
69#endif
70#ifdef sun2
71	{"sun2", "1"},
72#endif
73#ifdef sun3
74	{"sun3", "1"},
75#endif
76#ifdef sun4
77	{"sun4", "1"},
78#endif
79#ifdef __sun
80	{"__sun", "1"},
81#endif
82#ifdef __SunOS
83	{"__SunOS", "1"},
84#endif
85#ifdef __SVR4
86	{"__SVR4", "1"},
87#endif
88#ifdef sparc
89	{"sparc", "1"},
90#endif
91#ifdef __sparc
92	{"__sparc", "1"},
93#endif
94#ifdef __sparcv9
95	{"__sparcv9", "1"},
96#endif
97#ifdef __sparc__
98	{"__sparc__", "1"},
99#endif
100#ifdef __sparcv9__
101	{"__sparcv9__", "1"},
102#endif
103#ifdef hpux
104	{"hpux", "1"},
105#endif
106#ifdef __hpux
107	{"__hpux", "1"},
108#endif
109#ifdef __hp9000s800
110	{"__hp9000s800", "1"},
111#endif
112#ifdef __hp9000s700
113	{"__hp9000s700", "1"},
114#endif
115#ifdef vax
116	{"vax", "1"},
117#endif
118#ifdef VMS
119	{"VMS", "1"},
120#endif
121#ifdef cray
122	{"cray", "1"},
123#endif
124#ifdef CRAY
125	{"CRAY", "1"},
126#endif
127#ifdef _CRAY
128	{"_CRAY", "1"},
129#endif
130#ifdef att
131	{"att", "1"},
132#endif
133#ifdef mips
134	{"mips", "1"},
135#endif
136#ifdef __mips__
137	{"__mips__", "1"},
138#endif
139#ifdef ultrix
140	{"ultrix", "1"},
141#endif
142#ifdef stellar
143	{"stellar", "1"},
144#endif
145#ifdef mc68000
146	{"mc68000", "1"},
147#endif
148#ifdef mc68020
149	{"mc68020", "1"},
150#endif
151#ifdef __GNUC__
152	{"__GNUC__", DEF_STRINGIFY(__GNUC__)},
153#endif
154#ifdef __STRICT_ANSI__
155	{"__STRICT_ANSI__", "1"},
156#endif
157#ifdef __STDC__
158	{"__STDC__", DEF_STRINGIFY(__STDC__)},
159#endif
160#ifdef __HIGHC__
161	{"__HIGHC__", "1"},
162#endif
163#ifdef __OPENSERVER__
164	{"__OPENSERVER__", DEF_STRINGIFY(__OPENSERVER__)},
165#endif
166#ifdef _SCO_DS
167	{"_SCO_DS", DEF_STRINGIFY(_SCO_DS)},
168#endif
169#ifdef _SCO_DS_LL
170	{"_SCO_DS_LL", DEF_STRINGIFY(_SCO_DS_LL)},
171#endif
172#ifdef __SCO_VERSION__
173	{"__SCO_VERSION__", DEF_STRINGIFY(__SCO_VERSION__)},
174#endif
175#ifdef __UNIXWARE__
176	{"__UNIXWARE__", DEF_STRINGIFY(__UNIXWARE__)},
177#endif
178#ifdef __USLC__
179	{"__USLC__", DEF_STRINGIFY(__USLC__)},
180#endif
181#ifdef CMU
182	{"CMU", "1"},
183#endif
184#ifdef luna
185	{"luna", "1"},
186#ifdef luna1
187	{"luna1", "1"},
188#endif
189#ifdef luna2
190	{"luna2", "1"},
191#endif
192#ifdef luna88k
193	{"luna88k", "1"},
194#endif
195#ifdef uniosb
196	{"uniosb", "1"},
197#endif
198#ifdef uniosu
199	{"uniosu", "1"},
200#endif
201#endif
202#ifdef ieeep754
203	{"ieeep754", "1"},
204#endif
205#ifdef is68k
206	{"is68k", "1"},
207#endif
208#ifdef m68k
209        {"m68k", "1"},
210#endif
211#ifdef M68k
212        {"M68k", "1"},
213#endif
214#ifdef __m68k__
215	{"__m68k__", "1"},
216#endif
217#ifdef m88k
218        {"m88k", "1"},
219#endif
220#ifdef __m88k__
221	{"__m88k__", "1"},
222#endif
223#ifdef bsd43
224	{"bsd43", "1"},
225#endif
226#ifdef hcx
227	{"hcx", "1"},
228#endif
229#ifdef sony
230	{"sony", "1"},
231#ifdef SYSTYPE_SYSV
232	{"SYSTYPE_SYSV", "1"},
233#endif
234#ifdef _SYSTYPE_SYSV
235	{"_SYSTYPE_SYSV", "1"},
236#endif
237#endif
238#ifdef __OSF__
239	{"__OSF__", "1"},
240#endif
241#ifdef __osf__
242	{"__osf__", "1"},
243#endif
244#ifdef __amiga__
245	{"__amiga__", "1"},
246#endif
247#ifdef __alpha
248	{"__alpha", "1"},
249#endif
250#ifdef __alpha__
251	{"__alpha__", "1"},
252#endif
253#ifdef __DECC
254	{"__DECC",  "1"},
255#endif
256#ifdef __decc
257	{"__decc",  "1"},
258#endif
259#ifdef __unix
260	{"__unix", "1"},
261#endif
262#ifdef __unix__
263	{"__unix__", "1"},
264#endif
265#ifdef __uxp__
266	{"__uxp__", "1"},
267#endif
268#ifdef __sxg__
269	{"__sxg__", "1"},
270#endif
271#ifdef _SEQUENT_
272	{"_SEQUENT_", "1"},
273	{"__STDC__", "1"},
274#endif
275#ifdef __bsdi__
276	{"__bsdi__", "1"},
277#endif
278#ifdef nec_ews_svr2
279	{"nec_ews_svr2", "1"},
280#endif
281#ifdef nec_ews_svr4
282	{"nec_ews_svr4", "1"},
283#endif
284#ifdef _nec_ews_svr4
285	{"_nec_ews_svr4", "1"},
286#endif
287#ifdef _nec_up
288	{"_nec_up", "1"},
289#endif
290#ifdef SX
291	{"SX", "1"},
292#endif
293#ifdef nec
294	{"nec", "1"},
295#endif
296#ifdef _nec_ft
297	{"_nec_ft", "1"},
298#endif
299#ifdef PC_UX
300	{"PC_UX", "1"},
301#endif
302#ifdef sgi
303	{"sgi", "1"},
304#endif
305#ifdef __sgi
306	{"__sgi", "1"},
307#endif
308#ifdef _MIPS_FPSET
309	{"_MIPS_FPSET", DEF_STRINGIFY(_MIPS_FPSET)},
310#endif
311#ifdef _MIPS_ISA
312	{"_MIPS_ISA", DEF_STRINGIFY(_MIPS_ISA)},
313#endif
314#ifdef _MIPS_SIM
315	{"_MIPS_SIM", DEF_STRINGIFY(_MIPS_SIM)},
316#endif
317#ifdef _MIPS_SZINT
318	{"_MIPS_SZINT", DEF_STRINGIFY(_MIPS_SZINT)},
319#endif
320#ifdef _MIPS_SZLONG
321	{"_MIPS_SZLONG", DEF_STRINGIFY(_MIPS_SZLONG)},
322#endif
323#ifdef _MIPS_SZPTR
324	{"_MIPS_SZPTR", DEF_STRINGIFY(_MIPS_SZPTR)},
325#endif
326#ifdef __DragonFly__
327	{"__DragonFly__", "1"},
328#endif
329#ifdef __FreeBSD__
330	{"__FreeBSD__", "1"},
331#endif
332#ifdef __OpenBSD__
333	{"__OpenBSD__", "1"},
334#endif
335#ifdef __NetBSD__
336	{"__NetBSD__", "1"},
337#endif
338#ifdef __GNU__
339	{"__GNU__", "1"},
340#endif
341#ifdef __ELF__
342	{"__ELF__", "1"},
343#endif
344#ifdef __UNIXOS2__
345	{"__UNIXOS2__", "1"},
346#endif
347#if defined(__QNX__)
348        {"__QNX__", "1"},
349#endif
350#ifdef __QNXNTO__
351        {"__QNXNTO__", "1"},
352#endif
353# ifdef __powerpc__
354	{"__powerpc__", "1"},
355# endif
356# ifdef __powerpc64__
357	{"__powerpc64__", "1"},
358# endif
359# ifdef PowerMAX_OS
360	{"PowerMAX_OS", "1"},
361# endif
362# ifdef ia64
363	{"ia64", "1"},
364# endif
365# ifdef __ia64__
366	{"__ia64__", "1"},
367# endif
368# if defined (amd64) || defined (x86_64)
369	{"amd64", "1"},
370	{"x86_64", "1"},
371# endif
372# if defined (__amd64__) || defined (__x86_64__)
373	{"__amd64__", "1"},
374	{"__x86_64__", "1"},
375# endif
376# if defined (__amd64) || defined(__x86_64)
377	{"__amd64", "1"},
378	{"__x86_64", "1"},
379# endif
380# ifdef __x86
381	{"__x86", "1"},
382# endif
383# ifdef __i386
384	{"__i386", "1"},
385# endif
386# ifdef __i386__
387	{"__i386__", "1"},
388# endif
389# ifdef __i486__
390	{"__i486__", "1"},
391# endif
392# ifdef __i586__
393	{"__i586__", "1"},
394# endif
395# ifdef __i686__
396	{"__i686__", "1"},
397# endif
398# ifdef __k6__
399	{"__k6__", "1"},
400# endif
401# ifdef i386
402	{"i386", "1"},
403# endif
404# ifdef i486
405	{"i486", "1"},
406# endif
407# ifdef i586
408	{"i586", "1"},
409# endif
410# ifdef i686
411	{ "i686", "1"},
412# endif
413# ifdef k6
414	{"k6", "1"},
415# endif
416# ifdef sparc
417	{"sparc", "1"},
418# endif
419# ifdef __sparc__
420	{"__sparc__", "1"},
421# endif
422# ifdef __s390__
423	{"__s390__", "1"},
424# endif
425# ifdef __hppa__
426	{"__hppa__", "1"},
427# endif
428# ifdef __sh__
429	{"__sh__", "1"},
430# endif
431# ifdef __sh3_
432	{"__sh3__", "1"},
433# endif
434# ifdef __SH3__
435	{"__SH3__", "1"},
436# endif
437# ifdef __SH4__
438	{"__SH4__", "1"},
439# endif
440# ifdef __SH4NOFPU__
441	{"__SH4NOFPU__", "1"},
442# endif
443#if defined(__ppc__)
444        {"__ppc__", "1"},
445#endif
446#if defined(__ppc64__)
447        {"__ppc64__", "1"},
448#endif
449#if defined(__BIG_ENDIAN__)
450      {"__BIG_ENDIAN__", "1"},
451#endif
452#if defined(__LITTLE_ENDIAN__)
453      {"__LITTLE_ENDIAN__", "1"},
454#endif
455#if defined (__CHAR_BIT__)
456	{"__CHAR_BIT__", DEF_STRINGIFY(__CHAR_BIT__)},
457#endif
458#if defined (__BUILTIN_VA_STRUCT)
459	{"__BUILTIN_VA_STRUCT", "1"},
460#endif
461#if defined (__BUILTIN_VA_ARG_INCR)
462	{"__BUILTIN_VA_ARG_INCR", "1"},
463#endif
464	/* add any additional symbols before this line */
465	{NULL, NULL}
466};
467#undef DEF_EVALUATE
468#undef DEF_STRINGIFY
469#endif /* CROSSCOMPILE */
470
471
472
473