source: trunk/third/motif/config/imakemdep.h @ 12415

Revision 12415, 7.9 KB checked in by ghudson, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12414, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
3 * ALL RIGHTS RESERVED
4*/
5/*
6 * Motif Release 1.2
7*/
8/*   $RCSfile: imakemdep.h,v $ $Revision: 1.1.1.1 $ $Date: 1999-01-30 03:16:29 $ */
9/*
10 * $XConsortium: imakemdep.h,v 1.38 91/08/25 11:36:39 rws Exp $
11 *
12 * This file contains machine-dependent constants for the imake utility.
13 * When porting imake, read each of the steps below and add in any necessary
14 * definitions.  Do *not* edit ccimake.c or imake.c!
15 */
16
17#ifdef CCIMAKE
18/*
19 * Step 1:  imake_ccflags
20 *     Define any special flags that will be needed to get imake.c to compile.
21 *     These will be passed to the compile along with the contents of the
22 *     make variable BOOTSTRAPCFLAGS.
23 */
24#ifdef hpux
25#ifdef hp9000s800
26#define imake_ccflags "-DSYSV"
27#else
28#define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
29#endif
30#endif
31
32#if defined(macII) || defined(_AUX_SOURCE)
33#define imake_ccflags "-DmacII -DSYSV"
34#endif
35
36#ifdef stellar
37#define imake_ccflags "-DSYSV"
38#endif
39
40#ifdef att
41#define imake_ccflags "-Xc -DSVR4"
42#endif
43
44#ifdef sony
45#ifdef SYSTYPE_SYSV
46#define imake_ccflags "-DSVR4"
47#else
48#include <sys/param.h>
49#if NEWSOS < 41
50#define imake_ccflags "-Dbsd43 -DNOSTDHDRS"
51#else
52#define imake_ccflags "-Dbsd43"
53#endif
54#endif
55#endif
56
57#ifdef CRAY
58/* -DX_NOT_STDC_ENV is just so we can bootstrap with cc instead of scc */
59#define imake_ccflags "-DSYSV -DUSG -DX_NOT_STDC_ENV"
60#endif
61
62#ifdef _IBMR2
63#define imake_ccflags "-Daix -DSYSV -D_IBMR2"
64#else
65#ifdef aix
66#define imake_ccflags "-Daix -DSYSV"
67#endif
68#endif
69
70#ifdef Mips
71#  if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
72#    define imake_ccflags "-DMips -DBSD43"
73#  else
74#    define imake_ccflags "-DMips -DSYSV"
75#  endif
76#endif
77
78#ifdef is68k
79#define imake_ccflags "-Dluna -Duniosb"
80#endif
81
82#ifdef SYSV386
83# ifdef SVR4
84#  define imake_ccflags "-Xc -DSVR4"
85# else
86#  define imake_ccflags "-DSYSV"
87# endif
88#endif
89
90#ifdef __convex__
91#define imake_ccflags "-fn -tm c1"
92#endif
93
94#ifdef apollo
95#define imake_ccflags "-DX_NOT_POSIX"
96#endif
97
98#else /* not CCIMAKE */
99#ifndef MAKEDEPEND
100/*
101 * Step 2:  dup2
102 *     If your OS doesn't have a dup2() system call to duplicate one file
103 *     descriptor onto another, define such a mechanism here (if you don't
104 *     already fall under the existing category(ies).
105 */
106#if defined(SYSV) && !defined(CRAY) && !defined(Mips)
107#define dup2(fd1,fd2)   ((fd1 == fd2) ? fd1 : (close(fd2), \
108                                               fcntl(fd1, F_DUPFD, fd2)))
109#endif
110
111
112/*
113 * Step 3:  FIXUP_CPP_WHITESPACE
114 *     If your cpp collapses tabs macro expansions into a single space and
115 *     replaces escaped newlines with a space, define this symbol.  This will
116 *     cause imake to attempt to patch up the generated Makefile by looking
117 *     for lines that have colons in them (this is why the rules file escapes
118 *     all colons).  One way to tell if you need this is to see whether or not
119 *     your Makefiles have no tabs in them and lots of @@ strings.
120 */
121#if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx)
122#define FIXUP_CPP_WHITESPACE
123#endif
124
125
126/*
127 * Step 4:  DEFAULT_CPP
128 *     If the C preprocessor does not live in /lib/cpp, set this symbol to
129 *     the appropriate location.
130 */
131#ifdef apollo
132#define DEFAULT_CPP "/usr/lib/cpp"
133#endif
134#if defined(_IBMR2) && !defined(DEFAULT_CPP)
135#define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp"
136#endif
137
138/*
139 * Step 5:  cpp_argv
140 *     The following table contains the cpp flags that should be passed to
141 *     cpp whenever a Makefile is being generated.  If your preprocessor
142 *     doesn't predefine any unique symbols, choose one and add it to the
143 *     end of this table.  Then, do the following:
144 *
145 *         a.  Use this symbol at the top of Imake.tmpl when setting MacroFile.
146 *         b.  Put this symbol in the definition of BootstrapCFlags in your
147 *             <platform>.cf file.
148 *         c.  When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol"
149 *             to the end of the command line.
150 *
151 *     Note that you may define more than one symbols (useful for platforms
152 *     that support multiple operating systems).
153 */
154
155#define ARGUMENTS 50    /* number of arguments in various arrays */
156char *cpp_argv[ARGUMENTS] = {
157#ifdef USE_CC_E
158        "cc",           /* replaced by the actual cpp program to exec */
159        "-E",
160#else
161        "cpp",          /* replaced by the actual cpp program to exec */
162#endif /* USE_CC_E */
163        "-I.",          /* add current directory to include path */
164#ifdef unix
165        "-Uunix",       /* remove unix symbol so that filename unix.c okay */
166#endif
167#ifdef M4330
168        "-DM4330",      /* Tektronix */
169#endif
170#ifdef M4310
171        "-DM4310",      /* Tektronix */
172#endif
173#if defined(macII) || defined(_AUX_SOURCE)
174        "-DmacII",      /* Apple A/UX */
175#endif
176#ifdef att
177        "-Datt",        /* AT&T products */
178#endif
179#ifdef sony
180        "-Dsony",       /* Sony */
181#ifndef SYSTYPE_SYSV
182        "-Dbsd43",
183#endif
184#endif
185#ifdef _IBMR2
186        "-D_IBMR2",     /* IBM RS-6000 (we ensured that aix is defined above */
187#ifndef aix
188#define aix             /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
189#endif
190#endif /* _IBMR2 */
191#ifdef aix
192        "-Daix",        /* AIX instead of AOS */
193#ifndef ibm
194#define ibm             /* allow BOOTSTRAPCFLAGS="-Daix" */
195#endif
196#endif /* aix */
197#ifdef ibm
198        "-Dibm",        /* IBM PS/2 and RT under both AOS and AIX */
199#endif
200#ifdef luna
201        "-Dluna",       /* OMRON luna 68K and 88K */
202#ifdef luna1
203        "-Dluna1",
204#endif
205#ifdef luna88k          /* need not on UniOS-Mach Vers. 1.13 */
206        "-traditional", /* for some older version            */
207#endif                  /* instead of "-DXCOMM=\\#"          */
208#ifdef uniosb
209        "-Duniosb",
210#endif
211#ifdef uniosu
212        "-Duniosu",
213#endif
214#endif /* luna */
215#ifdef CRAY             /* Cray */
216        "-Ucray",
217#endif
218#ifdef Mips
219        "-DMips",       /* Define and use Mips for Mips Co. OS/mach. */
220# if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
221        "-DBSD43",      /* Mips RISCOS supports two environments */
222# else
223        "-DSYSV",       /* System V environment is the default */
224# endif
225#endif /* Mips */
226#ifdef MOTOROLA
227        "-DMOTOROLA",    /* Motorola Delta Systems */
228# ifdef SYSV
229        "-DSYSV",
230# endif
231# ifdef SVR4
232        "-DSVR4",
233# endif
234#endif /* MOTOROLA */
235#ifdef SYSV386           /* System V/386 folks */
236        "-DSYSV386",
237# ifdef SVR4
238        "-DSVR4",
239# endif
240# ifdef ISC
241        "-DISC",         /* ISC 2.2.1 */
242# endif
243# ifdef SCO
244        "-DSCO",
245# endif
246# ifdef ESIX
247        "-DESIX",
248# endif
249# ifdef ATT
250        "-DATT",
251# endif
252# ifdef DELL
253        "-DDELL",
254#endif
255#endif
256#if defined(__OSF1__) || defined(__osf__)
257        "-D__OSF1__",
258# ifdef __mips__
259        "-D__mips__",
260# endif
261# ifdef __i386__
262        "-D__i386__",
263# endif
264#endif
265#ifdef __GNUC__
266        "-traditional",
267#endif
268};
269#else /* else MAKEDEPEND */
270/*
271 * Step 6:  predefs
272 *     If your compiler and/or preprocessor define any specific symbols, add
273 *     them to the the following table.  The definition of struct symtab is
274 *     in util/makedepend/def.h.
275 */
276struct symtab   predefs[] = {
277#ifdef apollo
278        {"apollo", "1"},
279#endif
280#ifdef ibm032
281        {"ibm032", "1"},
282#endif
283#ifdef ibm
284        {"ibm", "1"},
285#endif
286#ifdef aix
287        {"aix", "1"},
288#endif
289#ifdef sun
290        {"sun", "1"},
291#endif
292#ifdef hpux
293        {"hpux", "1"},
294#endif
295#ifdef vax
296        {"vax", "1"},
297#endif
298#ifdef VMS
299        {"VMS", "1"},
300#endif
301#ifdef cray
302        {"cray", "1"},
303#endif
304#ifdef CRAY
305        {"CRAY", "1"},
306#endif
307#ifdef att
308        {"att", "1"},
309#endif
310#ifdef mips
311        {"mips", "1"},
312#endif
313#ifdef ultrix
314        {"ultrix", "1"},
315#endif
316#ifdef stellar
317        {"stellar", "1"},
318#endif
319#ifdef mc68000
320        {"mc68000", "1"},
321#endif
322#ifdef mc68020
323        {"mc68020", "1"},
324#endif
325#ifdef __GNUC__
326        {"__GNUC__", "1"},
327#endif
328#if __STDC__
329        {"__STDC__", "1"},
330#endif
331#ifdef __HIGHC__
332        {"__HIGHC__", "1"},
333#endif
334#ifdef CMU
335        {"CMU", "1"},
336#endif
337#ifdef luna
338        {"luna", "1"},
339#ifdef luna1
340        {"luna1", "1"},
341#endif
342#ifdef luna2
343        {"luna2", "1"},
344#endif
345#ifdef luna88k
346        {"luna88k", "1"},
347#endif
348#ifdef uniosb
349        {"uniosb", "1"},
350#endif
351#ifdef uniosu
352        {"uniosu", "1"},
353#endif
354#endif
355#ifdef ieeep754
356        {"ieeep754", "1"},
357#endif
358#ifdef is68k
359        {"is68k", "1"},
360#endif
361#ifdef m68k
362        {"m68k", "1"},
363#endif
364#ifdef m88k
365        {"m88k", "1"},
366#endif
367#ifdef bsd43
368        {"bsd43", "1"},
369#endif
370#ifdef hcx
371        {"hcx", 1},
372#endif
373#ifdef __OSF1__
374        {"__OSF1__", "1"},
375#endif
376        /* add any additional symbols before this line */
377        {NULL, NULL}
378};
379
380#endif /* MAKEDEPEND */
381#endif /* CCIMAKE */
Note: See TracBrowser for help on using the repository browser.