]> andersk Git - moira.git/blob - util/imake/imakemdep.h
Diane Delgado's changes for a fixed table-locking order
[moira.git] / util / imake / imakemdep.h
1 /*
2  * $XConsortium: imakemdep.h,v 1.10 89/12/18 16:56:38 jim Exp $
3  * 
4  * This file contains machine-dependent constants for the imake utility.  When
5  * porting imake, read each of the steps below and add in any necessary
6  * definitions.  Do *not* edit ccimake.c or imake.c!
7  */
8
9 #ifdef CCIMAKE
10 /*
11  * Step 1:  imake_ccflags
12  *     Define any special flags that will be needed to get imake.c to compile.
13  *     These will be passed to the compile along with the contents of the
14  *     make variable BOOTSTRAPCFLAGS.
15  */
16
17 #ifdef sparc
18 #define imake_ccflags "-DSYSV"
19 #endif
20
21 #ifdef hpux
22 #define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
23 #endif
24
25 #ifdef macII
26 #define imake_ccflags "-DSYSV"
27 #endif
28
29 #ifdef stellar
30 #define imake_ccflags "-DSYSV"
31 #endif
32
33 #ifdef att
34 #define imake_ccflags "-DSYSV -DUSG"
35 #endif
36
37 #ifdef CRAY
38 #define imake_ccflags "-DSYSV -DUSG"
39 #endif
40
41 #ifdef aix
42 #define imake_ccflags "-Daix -DSYSV"
43 #endif
44
45 #ifdef umips
46 #ifdef SYSTYPE_SYSV
47 #define imake_ccflags "-DSYSV -I../../lib/X/mips -I/usr/include/bsd ../../lib/X/mips/mipssysvc.c -lbsd"
48 #endif
49 #endif
50
51 #ifdef ultrix
52 #include <dbm.h>
53 #ifdef BYTESIZ
54 #define imake_ccflags "-O -DULTRIX31"
55 #else
56 #define ULTRIX40
57 #define imake_ccflags "-O -DULTRIX40"
58 #endif
59 #endif
60
61 #else /* not CCIMAKE */
62 #ifndef MAKEDEPEND
63 /*
64  * Step 2:  dup2
65  *     If your OS doesn't have a dup2() system call to duplicate one file
66  *     descriptor onto another, define such a mechanism here (if you don't
67  *     already fall under the existing category(ies).
68  */
69 #if defined(SYSV) && !defined(CRAY)
70 #define dup2(fd1,fd2)   ((fd1 == fd2) ? fd1 : (close(fd2), \
71                                                fcntl(fd1, F_DUPFD, fd2)))
72 #endif
73
74
75 /*
76  * Step 3:  FIXUP_CPP_WHITESPACE
77  *     If your cpp collapses tabs macro expansions into a single space and
78  *     replaces escaped newlines with a space, define this symbol.  This will
79  *     cause imake to attempt to patch up the generated Makefile by looking
80  *     for lines that have colons in them (this is why the rules file escapes
81  *     all colons).  One way to tell if you need this is to see whether or not
82  *     your Makefiles have no tabs in them and lots of @@ strings.
83  */
84 #if defined(sun) || defined(SYSV) || defined(_AIX)
85 #define FIXUP_CPP_WHITESPACE
86 #endif
87
88
89 /*
90  * Step 4:  DEFAULT_CPP
91  *     If the C preprocessor does not live in /lib/cpp, set this symbol to 
92  *     the appropriate location.
93  */
94 #ifdef apollo
95 #define DEFAULT_CPP "/usr/lib/cpp"
96 #endif
97
98
99 /*
100  * Step 5:  cpp_argv
101  *     The following table contains the cpp flags that should be passed to 
102  *     cpp whenever a Makefile is being generated.  If your preprocessor 
103  *     doesn't predefine any unique symbols, choose one and add it to the
104  *     end of this table.  Then, do the following:
105  * 
106  *         a.  Use this symbol at the top of Imake.tmpl when setting MacroFile.
107  *         b.  Put this symbol in the definition of BootstrapCFlags in your
108  *             <platform>.cf file.
109  *         c.  When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol" 
110  *             to the end of the command line.
111  * 
112  *     Note that you may define more than one symbols (useful for platforms 
113  *     that support multiple operating systems).
114  */
115
116 #define ARGUMENTS 50    /* number of arguments in various arrays */
117 char *cpp_argv[ARGUMENTS] = {
118         "cpp",          /* replaced by the actual cpp program to exec */
119         "-I.",          /* add current directory to include path */
120 #ifdef unix
121         "-Uunix",       /* remove unix symbol so that filename unix.c okay */
122 #endif
123 #ifdef M4330
124         "-DM4330",      /* Tektronix */
125 #endif
126 #ifdef M4310
127         "-DM4310",      /* Tektronix */
128 #endif
129 #ifdef macII
130         "-DmacII",      /* Apple A/UX */
131 #endif
132 #ifdef att
133         "-Datt",        /* AT&T products */
134 #endif
135 #ifdef aix
136         "-Daix",        /* AIX instead of AOS */
137 #ifndef ibm
138 #define ibm             /* allow BOOTSTRAPCFLAGS="-Daix" */
139 #endif
140 #endif
141 #ifdef ibm
142         "-Dibm",        /* IBM PS/2 and RT under both AOS and AIX */
143 #endif
144 #ifdef ULTRIX31
145         "-DULTRIX31",
146 #endif
147 #ifdef ULTRIX40
148         "-DULTRIX40",
149 #endif
150 };
151 #else /* else MAKEDEPEND */
152 /*
153  * Step 6:  predefs
154  *     If your compiler and/or preprocessor define any specific symbols, add
155  *     them to the the following table.  The definition of struct symtab is
156  *     in util/makedepend/main.c.
157  */
158 struct symtab   predefs[] = {
159 #ifdef apollo
160         {"apollo", "1"},
161 #endif
162 #ifdef ibm032
163         {"ibm032", "1"},
164 #endif
165 #ifdef ibm
166         {"ibm", "1"},
167 #endif
168 #ifdef aix
169         {"aix", "1"},
170 #endif
171 #ifdef sun
172         {"sun", "1"},
173 #endif
174 #ifdef hpux
175         {"hpux", "1"},
176 #endif
177 #ifdef vax
178         {"vax", "1"},
179 #endif
180 #ifdef VMS
181         {"VMS", "1"},
182 #endif
183 #ifdef cray
184         {"cray", "1"},
185 #endif
186 #ifdef CRAY
187         {"CRAY", "1"},
188 #endif
189 #ifdef att
190         {"att", "1"},
191 #endif
192 #ifdef mips
193         {"mips", "1"},
194 #endif
195 #ifdef ultrix
196         {"ultrix", "1"},
197 #endif
198 #ifdef stellar
199         {"stellar", "1"},
200 #endif
201 #ifdef mc68000
202         {"mc68000", "1"},
203 #endif
204 #ifdef mc68020
205         {"mc68020", "1"},
206 #endif
207 #ifdef __GNUC__
208         {"__GNUC__", "1"},
209 #endif
210 #ifdef __STDC__
211         {"__STDC__", "1"},
212 #endif
213 #ifdef __HIGHC__
214         {"__HIGHC__", "1"},
215 #endif
216 #ifdef CMU
217         {"CMU", "1"},
218 #endif
219         /* add any additional symbols before this line */
220         {NULL, NULL}
221 };
222
223 #endif /* MAKEDEPEND */
224 #endif /* CCIMAKE */
This page took 0.05639 seconds and 5 git commands to generate.