Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | |
michael@0 | 2 | /* $XConsortium: imakemdep.h,v 1.83 95/04/07 19:47:46 kaleb Exp $ */ |
michael@0 | 3 | /* $XFree86: xc/config/imake/imakemdep.h,v 3.12 1995/07/08 10:22:17 dawes Exp $ */ |
michael@0 | 4 | /* |
michael@0 | 5 | |
michael@0 | 6 | Copyright (c) 1993, 1994 X Consortium |
michael@0 | 7 | |
michael@0 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy |
michael@0 | 9 | of this software and associated documentation files (the "Software"), to deal |
michael@0 | 10 | in the Software without restriction, including without limitation the rights |
michael@0 | 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
michael@0 | 12 | copies of the Software, and to permit persons to whom the Software is |
michael@0 | 13 | furnished to do so, subject to the following conditions: |
michael@0 | 14 | |
michael@0 | 15 | The above copyright notice and this permission notice shall be included in |
michael@0 | 16 | all copies or substantial portions of the Software. |
michael@0 | 17 | |
michael@0 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
michael@0 | 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
michael@0 | 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
michael@0 | 21 | X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
michael@0 | 22 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
michael@0 | 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
michael@0 | 24 | |
michael@0 | 25 | Except as contained in this notice, the name of the X Consortium shall not be |
michael@0 | 26 | used in advertising or otherwise to promote the sale, use or other dealings |
michael@0 | 27 | in this Software without prior written authorization from the X Consortium. |
michael@0 | 28 | |
michael@0 | 29 | */ |
michael@0 | 30 | |
michael@0 | 31 | |
michael@0 | 32 | /* |
michael@0 | 33 | * This file contains machine-dependent constants for the imake utility. |
michael@0 | 34 | * When porting imake, read each of the steps below and add in any necessary |
michael@0 | 35 | * definitions. In general you should *not* edit ccimake.c or imake.c! |
michael@0 | 36 | */ |
michael@0 | 37 | |
michael@0 | 38 | #ifdef CCIMAKE |
michael@0 | 39 | /* |
michael@0 | 40 | * Step 1: imake_ccflags |
michael@0 | 41 | * Define any special flags that will be needed to get imake.c to compile. |
michael@0 | 42 | * These will be passed to the compile along with the contents of the |
michael@0 | 43 | * make variable BOOTSTRAPCFLAGS. |
michael@0 | 44 | */ |
michael@0 | 45 | #ifdef hpux |
michael@0 | 46 | #ifdef hp9000s800 |
michael@0 | 47 | #define imake_ccflags "-DSYSV" |
michael@0 | 48 | #else |
michael@0 | 49 | #define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV" |
michael@0 | 50 | #endif |
michael@0 | 51 | #endif |
michael@0 | 52 | |
michael@0 | 53 | #if defined(macII) || defined(_AUX_SOURCE) |
michael@0 | 54 | #define imake_ccflags "-DmacII -DSYSV" |
michael@0 | 55 | #endif |
michael@0 | 56 | |
michael@0 | 57 | #ifdef stellar |
michael@0 | 58 | #define imake_ccflags "-DSYSV" |
michael@0 | 59 | #endif |
michael@0 | 60 | |
michael@0 | 61 | #if defined(USL) || defined(Oki) || defined(NCR) |
michael@0 | 62 | #define imake_ccflags "-Xc -DSVR4" |
michael@0 | 63 | #endif |
michael@0 | 64 | |
michael@0 | 65 | #ifdef sony |
michael@0 | 66 | #if defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV) |
michael@0 | 67 | #define imake_ccflags "-DSVR4" |
michael@0 | 68 | #else |
michael@0 | 69 | #include <sys/param.h> |
michael@0 | 70 | #if NEWSOS < 41 |
michael@0 | 71 | #define imake_ccflags "-Dbsd43 -DNOSTDHDRS" |
michael@0 | 72 | #else |
michael@0 | 73 | #if NEWSOS < 42 |
michael@0 | 74 | #define imake_ccflags "-Dbsd43" |
michael@0 | 75 | #endif |
michael@0 | 76 | #endif |
michael@0 | 77 | #endif |
michael@0 | 78 | #endif |
michael@0 | 79 | |
michael@0 | 80 | #ifdef _CRAY |
michael@0 | 81 | #define imake_ccflags "-DSYSV -DUSG" |
michael@0 | 82 | #endif |
michael@0 | 83 | |
michael@0 | 84 | #if defined(_IBMR2) || defined(aix) |
michael@0 | 85 | #define imake_ccflags "-Daix -DSYSV" |
michael@0 | 86 | #endif |
michael@0 | 87 | |
michael@0 | 88 | #ifdef Mips |
michael@0 | 89 | # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43) |
michael@0 | 90 | # define imake_ccflags "-DBSD43" |
michael@0 | 91 | # else |
michael@0 | 92 | # define imake_ccflags "-DSYSV" |
michael@0 | 93 | # endif |
michael@0 | 94 | #endif |
michael@0 | 95 | |
michael@0 | 96 | #ifdef is68k |
michael@0 | 97 | #define imake_ccflags "-Dluna -Duniosb" |
michael@0 | 98 | #endif |
michael@0 | 99 | |
michael@0 | 100 | #ifdef SYSV386 |
michael@0 | 101 | # ifdef SVR4 |
michael@0 | 102 | # define imake_ccflags "-Xc -DSVR4" |
michael@0 | 103 | # else |
michael@0 | 104 | # define imake_ccflags "-DSYSV" |
michael@0 | 105 | # endif |
michael@0 | 106 | #endif |
michael@0 | 107 | |
michael@0 | 108 | #ifdef SVR4 |
michael@0 | 109 | # ifdef i386 |
michael@0 | 110 | # define imake_ccflags "-Xc -DSVR4" |
michael@0 | 111 | # endif |
michael@0 | 112 | #endif |
michael@0 | 113 | |
michael@0 | 114 | #ifdef SYSV |
michael@0 | 115 | # ifdef i386 |
michael@0 | 116 | # define imake_ccflags "-DSYSV" |
michael@0 | 117 | # endif |
michael@0 | 118 | #endif |
michael@0 | 119 | |
michael@0 | 120 | #ifdef __convex__ |
michael@0 | 121 | #define imake_ccflags "-fn -tm c1" |
michael@0 | 122 | #endif |
michael@0 | 123 | |
michael@0 | 124 | #ifdef apollo |
michael@0 | 125 | #define imake_ccflags "-DX_NOT_POSIX" |
michael@0 | 126 | #endif |
michael@0 | 127 | |
michael@0 | 128 | #ifdef WIN32 |
michael@0 | 129 | #define imake_ccflags "-nologo -batch -D__STDC__" |
michael@0 | 130 | #endif |
michael@0 | 131 | |
michael@0 | 132 | #ifdef __uxp__ |
michael@0 | 133 | #define imake_ccflags "-DSVR4 -DANSICPP" |
michael@0 | 134 | #endif |
michael@0 | 135 | |
michael@0 | 136 | #ifdef __sxg__ |
michael@0 | 137 | #define imake_ccflags "-DSYSV -DUSG -DNOSTDHDRS" |
michael@0 | 138 | #endif |
michael@0 | 139 | |
michael@0 | 140 | #ifdef sequent |
michael@0 | 141 | #define imake_ccflags "-DX_NOT_STDC_ENV -DX_NOT_POSIX" |
michael@0 | 142 | #endif |
michael@0 | 143 | |
michael@0 | 144 | #ifdef _SEQUENT_ |
michael@0 | 145 | #define imake_ccflags "-DSYSV -DUSG" |
michael@0 | 146 | #endif |
michael@0 | 147 | |
michael@0 | 148 | #if defined(SX) || defined(PC_UX) |
michael@0 | 149 | #define imake_ccflags "-DSYSV" |
michael@0 | 150 | #endif |
michael@0 | 151 | |
michael@0 | 152 | #ifdef nec_ews_svr2 |
michael@0 | 153 | #define imake_ccflags "-DUSG" |
michael@0 | 154 | #endif |
michael@0 | 155 | |
michael@0 | 156 | #if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up) || defined(_nec_ft) |
michael@0 | 157 | #define imake_ccflags "-DSVR4" |
michael@0 | 158 | #endif |
michael@0 | 159 | |
michael@0 | 160 | #ifdef MACH |
michael@0 | 161 | #define imake_ccflags "-DNOSTDHDRS" |
michael@0 | 162 | #endif |
michael@0 | 163 | |
michael@0 | 164 | /* this is for OS/2 under EMX. This won't work with DOS */ |
michael@0 | 165 | #if defined(__EMX__) |
michael@0 | 166 | #define imake_ccflags "-DBSD43" |
michael@0 | 167 | #endif |
michael@0 | 168 | |
michael@0 | 169 | #else /* not CCIMAKE */ |
michael@0 | 170 | #ifndef MAKEDEPEND |
michael@0 | 171 | /* |
michael@0 | 172 | * Step 2: dup2 |
michael@0 | 173 | * If your OS doesn't have a dup2() system call to duplicate one file |
michael@0 | 174 | * descriptor onto another, define such a mechanism here (if you don't |
michael@0 | 175 | * already fall under the existing category(ies). |
michael@0 | 176 | */ |
michael@0 | 177 | #if defined(SYSV) && !defined(_CRAY) && !defined(Mips) && !defined(_SEQUENT_) |
michael@0 | 178 | #define dup2(fd1,fd2) ((fd1 == fd2) ? fd1 : (close(fd2), \ |
michael@0 | 179 | fcntl(fd1, F_DUPFD, fd2))) |
michael@0 | 180 | #endif |
michael@0 | 181 | |
michael@0 | 182 | |
michael@0 | 183 | /* |
michael@0 | 184 | * Step 3: FIXUP_CPP_WHITESPACE |
michael@0 | 185 | * If your cpp collapses tabs macro expansions into a single space and |
michael@0 | 186 | * replaces escaped newlines with a space, define this symbol. This will |
michael@0 | 187 | * cause imake to attempt to patch up the generated Makefile by looking |
michael@0 | 188 | * for lines that have colons in them (this is why the rules file escapes |
michael@0 | 189 | * all colons). One way to tell if you need this is to see whether or not |
michael@0 | 190 | * your Makefiles have no tabs in them and lots of @@ strings. |
michael@0 | 191 | */ |
michael@0 | 192 | #if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(WIN32) || (defined(AMOEBA) && defined(CROSS_COMPILE)) |
michael@0 | 193 | #define FIXUP_CPP_WHITESPACE |
michael@0 | 194 | #endif |
michael@0 | 195 | #ifdef WIN32 |
michael@0 | 196 | #define REMOVE_CPP_LEADSPACE |
michael@0 | 197 | #define INLINE_SYNTAX |
michael@0 | 198 | #define MAGIC_MAKE_VARS |
michael@0 | 199 | #endif |
michael@0 | 200 | #ifdef __minix_vmd |
michael@0 | 201 | #define FIXUP_CPP_WHITESPACE |
michael@0 | 202 | #endif |
michael@0 | 203 | |
michael@0 | 204 | /* |
michael@0 | 205 | * Step 4: USE_CC_E, DEFAULT_CC, DEFAULT_CPP |
michael@0 | 206 | * If you want to use cc -E instead of cpp, define USE_CC_E. |
michael@0 | 207 | * If use cc -E but want a different compiler, define DEFAULT_CC. |
michael@0 | 208 | * If the cpp you need is not in /lib/cpp, define DEFAULT_CPP. |
michael@0 | 209 | */ |
michael@0 | 210 | #ifdef hpux |
michael@0 | 211 | #define USE_CC_E |
michael@0 | 212 | #endif |
michael@0 | 213 | #ifdef WIN32 |
michael@0 | 214 | #define USE_CC_E |
michael@0 | 215 | #define DEFAULT_CC "cl" |
michael@0 | 216 | #endif |
michael@0 | 217 | #ifdef apollo |
michael@0 | 218 | #define DEFAULT_CPP "/usr/lib/cpp" |
michael@0 | 219 | #endif |
michael@0 | 220 | #if defined(_IBMR2) && !defined(DEFAULT_CPP) |
michael@0 | 221 | #define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp" |
michael@0 | 222 | #endif |
michael@0 | 223 | #if defined(sun) && defined(SVR4) |
michael@0 | 224 | #define DEFAULT_CPP "/usr/ccs/lib/cpp" |
michael@0 | 225 | #endif |
michael@0 | 226 | #ifdef __bsdi__ |
michael@0 | 227 | #define DEFAULT_CPP "/usr/bin/cpp" |
michael@0 | 228 | #endif |
michael@0 | 229 | #ifdef __uxp__ |
michael@0 | 230 | #define DEFAULT_CPP "/usr/ccs/lib/cpp" |
michael@0 | 231 | #endif |
michael@0 | 232 | #ifdef __sxg__ |
michael@0 | 233 | #define DEFAULT_CPP "/usr/lib/cpp" |
michael@0 | 234 | #endif |
michael@0 | 235 | #ifdef _CRAY |
michael@0 | 236 | #define DEFAULT_CPP "/lib/pcpp" |
michael@0 | 237 | #endif |
michael@0 | 238 | #if defined(__386BSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) |
michael@0 | 239 | #define DEFAULT_CPP "/usr/libexec/cpp" |
michael@0 | 240 | #endif |
michael@0 | 241 | #ifdef MACH |
michael@0 | 242 | #define USE_CC_E |
michael@0 | 243 | #endif |
michael@0 | 244 | #ifdef __minix_vmd |
michael@0 | 245 | #define DEFAULT_CPP "/usr/lib/cpp" |
michael@0 | 246 | #endif |
michael@0 | 247 | #if defined(__EMX__) |
michael@0 | 248 | /* expects cpp in PATH */ |
michael@0 | 249 | #define DEFAULT_CPP "cpp" |
michael@0 | 250 | #endif |
michael@0 | 251 | |
michael@0 | 252 | /* |
michael@0 | 253 | * Step 5: cpp_argv |
michael@0 | 254 | * The following table contains the flags that should be passed |
michael@0 | 255 | * whenever a Makefile is being generated. If your preprocessor |
michael@0 | 256 | * doesn't predefine any unique symbols, choose one and add it to the |
michael@0 | 257 | * end of this table. Then, do the following: |
michael@0 | 258 | * |
michael@0 | 259 | * a. Use this symbol in Imake.tmpl when setting MacroFile. |
michael@0 | 260 | * b. Put this symbol in the definition of BootstrapCFlags in your |
michael@0 | 261 | * <platform>.cf file. |
michael@0 | 262 | * c. When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol" |
michael@0 | 263 | * to the end of the command line. |
michael@0 | 264 | * |
michael@0 | 265 | * Note that you may define more than one symbol (useful for platforms |
michael@0 | 266 | * that support multiple operating systems). |
michael@0 | 267 | */ |
michael@0 | 268 | |
michael@0 | 269 | #define ARGUMENTS 50 /* number of arguments in various arrays */ |
michael@0 | 270 | char *cpp_argv[ARGUMENTS] = { |
michael@0 | 271 | "cc", /* replaced by the actual program to exec */ |
michael@0 | 272 | "-I.", /* add current directory to include path */ |
michael@0 | 273 | #ifdef unix |
michael@0 | 274 | "-Uunix", /* remove unix symbol so that filename unix.c okay */ |
michael@0 | 275 | #endif |
michael@0 | 276 | #if defined(__386BSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(MACH) |
michael@0 | 277 | # ifdef __i386__ |
michael@0 | 278 | "-D__i386__", |
michael@0 | 279 | # endif |
michael@0 | 280 | # ifdef __x86_64__ |
michael@0 | 281 | "-D__x86_64__", |
michael@0 | 282 | # endif |
michael@0 | 283 | # ifdef __GNUC__ |
michael@0 | 284 | "-traditional", |
michael@0 | 285 | # endif |
michael@0 | 286 | #endif |
michael@0 | 287 | #ifdef M4330 |
michael@0 | 288 | "-DM4330", /* Tektronix */ |
michael@0 | 289 | #endif |
michael@0 | 290 | #ifdef M4310 |
michael@0 | 291 | "-DM4310", /* Tektronix */ |
michael@0 | 292 | #endif |
michael@0 | 293 | #if defined(macII) || defined(_AUX_SOURCE) |
michael@0 | 294 | "-DmacII", /* Apple A/UX */ |
michael@0 | 295 | #endif |
michael@0 | 296 | #ifdef USL |
michael@0 | 297 | "-DUSL", /* USL */ |
michael@0 | 298 | #endif |
michael@0 | 299 | #ifdef sony |
michael@0 | 300 | "-Dsony", /* Sony */ |
michael@0 | 301 | #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) && NEWSOS < 42 |
michael@0 | 302 | "-Dbsd43", |
michael@0 | 303 | #endif |
michael@0 | 304 | #endif |
michael@0 | 305 | #ifdef _IBMR2 |
michael@0 | 306 | "-D_IBMR2", /* IBM RS-6000 (we ensured that aix is defined above */ |
michael@0 | 307 | #ifndef aix |
michael@0 | 308 | #define aix /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */ |
michael@0 | 309 | #endif |
michael@0 | 310 | #endif /* _IBMR2 */ |
michael@0 | 311 | #ifdef aix |
michael@0 | 312 | "-Daix", /* AIX instead of AOS */ |
michael@0 | 313 | #ifndef ibm |
michael@0 | 314 | #define ibm /* allow BOOTSTRAPCFLAGS="-Daix" */ |
michael@0 | 315 | #endif |
michael@0 | 316 | #endif /* aix */ |
michael@0 | 317 | #ifdef ibm |
michael@0 | 318 | "-Dibm", /* IBM PS/2 and RT under both AOS and AIX */ |
michael@0 | 319 | #endif |
michael@0 | 320 | #ifdef luna |
michael@0 | 321 | "-Dluna", /* OMRON luna 68K and 88K */ |
michael@0 | 322 | #ifdef luna1 |
michael@0 | 323 | "-Dluna1", |
michael@0 | 324 | #endif |
michael@0 | 325 | #ifdef luna88k /* need not on UniOS-Mach Vers. 1.13 */ |
michael@0 | 326 | "-traditional", /* for some older version */ |
michael@0 | 327 | #endif /* instead of "-DXCOMM=\\#" */ |
michael@0 | 328 | #ifdef uniosb |
michael@0 | 329 | "-Duniosb", |
michael@0 | 330 | #endif |
michael@0 | 331 | #ifdef uniosu |
michael@0 | 332 | "-Duniosu", |
michael@0 | 333 | #endif |
michael@0 | 334 | #endif /* luna */ |
michael@0 | 335 | #ifdef _CRAY /* Cray */ |
michael@0 | 336 | "-Ucray", |
michael@0 | 337 | #endif |
michael@0 | 338 | #ifdef Mips |
michael@0 | 339 | "-DMips", /* Define and use Mips for Mips Co. OS/mach. */ |
michael@0 | 340 | # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43) |
michael@0 | 341 | "-DBSD43", /* Mips RISCOS supports two environments */ |
michael@0 | 342 | # else |
michael@0 | 343 | "-DSYSV", /* System V environment is the default */ |
michael@0 | 344 | # endif |
michael@0 | 345 | #endif /* Mips */ |
michael@0 | 346 | #ifdef MOTOROLA |
michael@0 | 347 | "-DMOTOROLA", /* Motorola Delta Systems */ |
michael@0 | 348 | # ifdef SYSV |
michael@0 | 349 | "-DSYSV", |
michael@0 | 350 | # endif |
michael@0 | 351 | # ifdef SVR4 |
michael@0 | 352 | "-DSVR4", |
michael@0 | 353 | # endif |
michael@0 | 354 | #endif /* MOTOROLA */ |
michael@0 | 355 | #ifdef i386 |
michael@0 | 356 | "-Di386", |
michael@0 | 357 | # ifdef SVR4 |
michael@0 | 358 | "-DSVR4", |
michael@0 | 359 | # endif |
michael@0 | 360 | # ifdef SYSV |
michael@0 | 361 | "-DSYSV", |
michael@0 | 362 | # ifdef ISC |
michael@0 | 363 | "-DISC", |
michael@0 | 364 | # ifdef ISC40 |
michael@0 | 365 | "-DISC40", /* ISC 4.0 */ |
michael@0 | 366 | # else |
michael@0 | 367 | # ifdef ISC202 |
michael@0 | 368 | "-DISC202", /* ISC 2.0.2 */ |
michael@0 | 369 | # else |
michael@0 | 370 | # ifdef ISC30 |
michael@0 | 371 | "-DISC30", /* ISC 3.0 */ |
michael@0 | 372 | # else |
michael@0 | 373 | "-DISC22", /* ISC 2.2.1 */ |
michael@0 | 374 | # endif |
michael@0 | 375 | # endif |
michael@0 | 376 | # endif |
michael@0 | 377 | # endif |
michael@0 | 378 | # ifdef SCO |
michael@0 | 379 | "-DSCO", |
michael@0 | 380 | # ifdef SCO324 |
michael@0 | 381 | "-DSCO324", |
michael@0 | 382 | # endif |
michael@0 | 383 | # endif |
michael@0 | 384 | # endif |
michael@0 | 385 | # ifdef ESIX |
michael@0 | 386 | "-DESIX", |
michael@0 | 387 | # endif |
michael@0 | 388 | # ifdef ATT |
michael@0 | 389 | "-DATT", |
michael@0 | 390 | # endif |
michael@0 | 391 | # ifdef DELL |
michael@0 | 392 | "-DDELL", |
michael@0 | 393 | # endif |
michael@0 | 394 | #endif |
michael@0 | 395 | #ifdef SYSV386 /* System V/386 folks, obsolete */ |
michael@0 | 396 | "-Di386", |
michael@0 | 397 | # ifdef SVR4 |
michael@0 | 398 | "-DSVR4", |
michael@0 | 399 | # endif |
michael@0 | 400 | # ifdef ISC |
michael@0 | 401 | "-DISC", |
michael@0 | 402 | # ifdef ISC40 |
michael@0 | 403 | "-DISC40", /* ISC 4.0 */ |
michael@0 | 404 | # else |
michael@0 | 405 | # ifdef ISC202 |
michael@0 | 406 | "-DISC202", /* ISC 2.0.2 */ |
michael@0 | 407 | # else |
michael@0 | 408 | # ifdef ISC30 |
michael@0 | 409 | "-DISC30", /* ISC 3.0 */ |
michael@0 | 410 | # else |
michael@0 | 411 | "-DISC22", /* ISC 2.2.1 */ |
michael@0 | 412 | # endif |
michael@0 | 413 | # endif |
michael@0 | 414 | # endif |
michael@0 | 415 | # endif |
michael@0 | 416 | # ifdef SCO |
michael@0 | 417 | "-DSCO", |
michael@0 | 418 | # ifdef SCO324 |
michael@0 | 419 | "-DSCO324", |
michael@0 | 420 | # endif |
michael@0 | 421 | # endif |
michael@0 | 422 | # ifdef ESIX |
michael@0 | 423 | "-DESIX", |
michael@0 | 424 | # endif |
michael@0 | 425 | # ifdef ATT |
michael@0 | 426 | "-DATT", |
michael@0 | 427 | # endif |
michael@0 | 428 | # ifdef DELL |
michael@0 | 429 | "-DDELL", |
michael@0 | 430 | # endif |
michael@0 | 431 | #endif |
michael@0 | 432 | #ifdef __osf__ |
michael@0 | 433 | "-D__osf__", |
michael@0 | 434 | # ifdef __mips__ |
michael@0 | 435 | "-D__mips__", |
michael@0 | 436 | # endif |
michael@0 | 437 | # ifdef __alpha |
michael@0 | 438 | "-D__alpha", |
michael@0 | 439 | # endif |
michael@0 | 440 | # ifdef __i386__ |
michael@0 | 441 | "-D__i386__", |
michael@0 | 442 | # endif |
michael@0 | 443 | # ifdef __GNUC__ |
michael@0 | 444 | "-traditional", |
michael@0 | 445 | # endif |
michael@0 | 446 | #endif |
michael@0 | 447 | #ifdef Oki |
michael@0 | 448 | "-DOki", |
michael@0 | 449 | #endif |
michael@0 | 450 | #ifdef sun |
michael@0 | 451 | #ifdef SVR4 |
michael@0 | 452 | "-DSVR4", |
michael@0 | 453 | #endif |
michael@0 | 454 | #endif |
michael@0 | 455 | #ifdef WIN32 |
michael@0 | 456 | "-DWIN32", |
michael@0 | 457 | "-nologo", |
michael@0 | 458 | "-batch", |
michael@0 | 459 | "-D__STDC__", |
michael@0 | 460 | #endif |
michael@0 | 461 | #ifdef NCR |
michael@0 | 462 | "-DNCR", /* NCR */ |
michael@0 | 463 | #endif |
michael@0 | 464 | #ifdef linux |
michael@0 | 465 | "-traditional", |
michael@0 | 466 | "-Dlinux", |
michael@0 | 467 | #endif |
michael@0 | 468 | #ifdef __uxp__ |
michael@0 | 469 | "-D__uxp__", |
michael@0 | 470 | #endif |
michael@0 | 471 | #ifdef __sxg__ |
michael@0 | 472 | "-D__sxg__", |
michael@0 | 473 | #endif |
michael@0 | 474 | #ifdef nec_ews_svr2 |
michael@0 | 475 | "-Dnec_ews_svr2", |
michael@0 | 476 | #endif |
michael@0 | 477 | #ifdef AMOEBA |
michael@0 | 478 | "-DAMOEBA", |
michael@0 | 479 | # ifdef CROSS_COMPILE |
michael@0 | 480 | "-DCROSS_COMPILE", |
michael@0 | 481 | # ifdef CROSS_i80386 |
michael@0 | 482 | "-Di80386", |
michael@0 | 483 | # endif |
michael@0 | 484 | # ifdef CROSS_sparc |
michael@0 | 485 | "-Dsparc", |
michael@0 | 486 | # endif |
michael@0 | 487 | # ifdef CROSS_mc68000 |
michael@0 | 488 | "-Dmc68000", |
michael@0 | 489 | # endif |
michael@0 | 490 | # else |
michael@0 | 491 | # ifdef i80386 |
michael@0 | 492 | "-Di80386", |
michael@0 | 493 | # endif |
michael@0 | 494 | # ifdef sparc |
michael@0 | 495 | "-Dsparc", |
michael@0 | 496 | # endif |
michael@0 | 497 | # ifdef mc68000 |
michael@0 | 498 | "-Dmc68000", |
michael@0 | 499 | # endif |
michael@0 | 500 | # endif |
michael@0 | 501 | #endif |
michael@0 | 502 | #ifdef __minix_vmd |
michael@0 | 503 | "-Dminix", |
michael@0 | 504 | #endif |
michael@0 | 505 | |
michael@0 | 506 | #if defined(__EMX__) |
michael@0 | 507 | "-traditional", |
michael@0 | 508 | "-Demxos2", |
michael@0 | 509 | #endif |
michael@0 | 510 | |
michael@0 | 511 | }; |
michael@0 | 512 | #else /* else MAKEDEPEND */ |
michael@0 | 513 | /* |
michael@0 | 514 | * Step 6: predefs |
michael@0 | 515 | * If your compiler and/or preprocessor define any specific symbols, add |
michael@0 | 516 | * them to the the following table. The definition of struct symtab is |
michael@0 | 517 | * in util/makedepend/def.h. |
michael@0 | 518 | */ |
michael@0 | 519 | #define QUOTEIT(x) #x |
michael@0 | 520 | #define QUOTEEXPANSION(x) QUOTEIT(x) |
michael@0 | 521 | |
michael@0 | 522 | struct symtab predefs[] = { |
michael@0 | 523 | #ifdef apollo |
michael@0 | 524 | {"apollo", "1"}, |
michael@0 | 525 | #endif |
michael@0 | 526 | #ifdef ibm032 |
michael@0 | 527 | {"ibm032", "1"}, |
michael@0 | 528 | #endif |
michael@0 | 529 | #ifdef ibm |
michael@0 | 530 | {"ibm", "1"}, |
michael@0 | 531 | #endif |
michael@0 | 532 | #ifdef aix |
michael@0 | 533 | {"aix", "1"}, |
michael@0 | 534 | #endif |
michael@0 | 535 | #ifdef sun |
michael@0 | 536 | {"sun", "1"}, |
michael@0 | 537 | #endif |
michael@0 | 538 | #ifdef sun2 |
michael@0 | 539 | {"sun2", "1"}, |
michael@0 | 540 | #endif |
michael@0 | 541 | #ifdef sun3 |
michael@0 | 542 | {"sun3", "1"}, |
michael@0 | 543 | #endif |
michael@0 | 544 | #ifdef sun4 |
michael@0 | 545 | {"sun4", "1"}, |
michael@0 | 546 | #endif |
michael@0 | 547 | #ifdef sparc |
michael@0 | 548 | {"sparc", "1"}, |
michael@0 | 549 | #endif |
michael@0 | 550 | #ifdef __sparc__ |
michael@0 | 551 | {"__sparc__", "1"}, |
michael@0 | 552 | #endif |
michael@0 | 553 | #ifdef hpux |
michael@0 | 554 | {"hpux", "1"}, |
michael@0 | 555 | #endif |
michael@0 | 556 | #ifdef __hpux |
michael@0 | 557 | {"__hpux", "1"}, |
michael@0 | 558 | #endif |
michael@0 | 559 | #ifdef __hp9000s800 |
michael@0 | 560 | {"__hp9000s800", "1"}, |
michael@0 | 561 | #endif |
michael@0 | 562 | #ifdef __hp9000s700 |
michael@0 | 563 | {"__hp9000s700", "1"}, |
michael@0 | 564 | #endif |
michael@0 | 565 | #ifdef vax |
michael@0 | 566 | {"vax", "1"}, |
michael@0 | 567 | #endif |
michael@0 | 568 | #ifdef VMS |
michael@0 | 569 | {"VMS", "1"}, |
michael@0 | 570 | #endif |
michael@0 | 571 | #ifdef cray |
michael@0 | 572 | {"cray", "1"}, |
michael@0 | 573 | #endif |
michael@0 | 574 | #ifdef CRAY |
michael@0 | 575 | {"CRAY", "1"}, |
michael@0 | 576 | #endif |
michael@0 | 577 | #ifdef _CRAY |
michael@0 | 578 | {"_CRAY", "1"}, |
michael@0 | 579 | #endif |
michael@0 | 580 | #ifdef att |
michael@0 | 581 | {"att", "1"}, |
michael@0 | 582 | #endif |
michael@0 | 583 | #ifdef mips |
michael@0 | 584 | {"mips", "1"}, |
michael@0 | 585 | #endif |
michael@0 | 586 | #ifdef __mips__ |
michael@0 | 587 | {"__mips__", "1"}, |
michael@0 | 588 | #endif |
michael@0 | 589 | #ifdef ultrix |
michael@0 | 590 | {"ultrix", "1"}, |
michael@0 | 591 | #endif |
michael@0 | 592 | #ifdef stellar |
michael@0 | 593 | {"stellar", "1"}, |
michael@0 | 594 | #endif |
michael@0 | 595 | #ifdef mc68000 |
michael@0 | 596 | {"mc68000", "1"}, |
michael@0 | 597 | #endif |
michael@0 | 598 | #ifdef mc68020 |
michael@0 | 599 | {"mc68020", "1"}, |
michael@0 | 600 | #endif |
michael@0 | 601 | #ifdef __GNUC__ |
michael@0 | 602 | {"__GNUC__", "1"}, |
michael@0 | 603 | #endif |
michael@0 | 604 | #if __STDC__ |
michael@0 | 605 | {"__STDC__", "1"}, |
michael@0 | 606 | #endif |
michael@0 | 607 | #ifdef __HIGHC__ |
michael@0 | 608 | {"__HIGHC__", "1"}, |
michael@0 | 609 | #endif |
michael@0 | 610 | #ifdef CMU |
michael@0 | 611 | {"CMU", "1"}, |
michael@0 | 612 | #endif |
michael@0 | 613 | #ifdef luna |
michael@0 | 614 | {"luna", "1"}, |
michael@0 | 615 | #ifdef luna1 |
michael@0 | 616 | {"luna1", "1"}, |
michael@0 | 617 | #endif |
michael@0 | 618 | #ifdef luna2 |
michael@0 | 619 | {"luna2", "1"}, |
michael@0 | 620 | #endif |
michael@0 | 621 | #ifdef luna88k |
michael@0 | 622 | {"luna88k", "1"}, |
michael@0 | 623 | #endif |
michael@0 | 624 | #ifdef uniosb |
michael@0 | 625 | {"uniosb", "1"}, |
michael@0 | 626 | #endif |
michael@0 | 627 | #ifdef uniosu |
michael@0 | 628 | {"uniosu", "1"}, |
michael@0 | 629 | #endif |
michael@0 | 630 | #endif |
michael@0 | 631 | #ifdef ieeep754 |
michael@0 | 632 | {"ieeep754", "1"}, |
michael@0 | 633 | #endif |
michael@0 | 634 | #ifdef is68k |
michael@0 | 635 | {"is68k", "1"}, |
michael@0 | 636 | #endif |
michael@0 | 637 | #ifdef m68k |
michael@0 | 638 | {"m68k", "1"}, |
michael@0 | 639 | #endif |
michael@0 | 640 | #ifdef m88k |
michael@0 | 641 | {"m88k", "1"}, |
michael@0 | 642 | #endif |
michael@0 | 643 | #ifdef __m88k__ |
michael@0 | 644 | {"__m88k__", "1"}, |
michael@0 | 645 | #endif |
michael@0 | 646 | #ifdef bsd43 |
michael@0 | 647 | {"bsd43", "1"}, |
michael@0 | 648 | #endif |
michael@0 | 649 | #ifdef hcx |
michael@0 | 650 | {"hcx", "1"}, |
michael@0 | 651 | #endif |
michael@0 | 652 | #ifdef sony |
michael@0 | 653 | {"sony", "1"}, |
michael@0 | 654 | #ifdef SYSTYPE_SYSV |
michael@0 | 655 | {"SYSTYPE_SYSV", "1"}, |
michael@0 | 656 | #endif |
michael@0 | 657 | #ifdef _SYSTYPE_SYSV |
michael@0 | 658 | {"_SYSTYPE_SYSV", "1"}, |
michael@0 | 659 | #endif |
michael@0 | 660 | #endif |
michael@0 | 661 | #ifdef __OSF__ |
michael@0 | 662 | {"__OSF__", "1"}, |
michael@0 | 663 | #endif |
michael@0 | 664 | #ifdef __osf__ |
michael@0 | 665 | {"__osf__", "1"}, |
michael@0 | 666 | #endif |
michael@0 | 667 | #ifdef __alpha |
michael@0 | 668 | {"__alpha", "1"}, |
michael@0 | 669 | #endif |
michael@0 | 670 | #ifdef __DECC |
michael@0 | 671 | {"__DECC", "1"}, |
michael@0 | 672 | #endif |
michael@0 | 673 | #ifdef __decc |
michael@0 | 674 | {"__decc", "1"}, |
michael@0 | 675 | #endif |
michael@0 | 676 | #ifdef __uxp__ |
michael@0 | 677 | {"__uxp__", "1"}, |
michael@0 | 678 | #endif |
michael@0 | 679 | #ifdef __sxg__ |
michael@0 | 680 | {"__sxg__", "1"}, |
michael@0 | 681 | #endif |
michael@0 | 682 | #ifdef _SEQUENT_ |
michael@0 | 683 | {"_SEQUENT_", "1"}, |
michael@0 | 684 | {"__STDC__", "1"}, |
michael@0 | 685 | #endif |
michael@0 | 686 | #ifdef __bsdi__ |
michael@0 | 687 | {"__bsdi__", "1"}, |
michael@0 | 688 | #endif |
michael@0 | 689 | #ifdef nec_ews_svr2 |
michael@0 | 690 | {"nec_ews_svr2", "1"}, |
michael@0 | 691 | #endif |
michael@0 | 692 | #ifdef nec_ews_svr4 |
michael@0 | 693 | {"nec_ews_svr4", "1"}, |
michael@0 | 694 | #endif |
michael@0 | 695 | #ifdef _nec_ews_svr4 |
michael@0 | 696 | {"_nec_ews_svr4", "1"}, |
michael@0 | 697 | #endif |
michael@0 | 698 | #ifdef _nec_up |
michael@0 | 699 | {"_nec_up", "1"}, |
michael@0 | 700 | #endif |
michael@0 | 701 | #ifdef SX |
michael@0 | 702 | {"SX", "1"}, |
michael@0 | 703 | #endif |
michael@0 | 704 | #ifdef nec |
michael@0 | 705 | {"nec", "1"}, |
michael@0 | 706 | #endif |
michael@0 | 707 | #ifdef _nec_ft |
michael@0 | 708 | {"_nec_ft", "1"}, |
michael@0 | 709 | #endif |
michael@0 | 710 | #ifdef PC_UX |
michael@0 | 711 | {"PC_UX", "1"}, |
michael@0 | 712 | #endif |
michael@0 | 713 | #ifdef sgi |
michael@0 | 714 | {"sgi", "1"}, |
michael@0 | 715 | #endif |
michael@0 | 716 | #ifdef __sgi |
michael@0 | 717 | {"__sgi", "1"}, |
michael@0 | 718 | #endif |
michael@0 | 719 | #ifdef __FreeBSD__ |
michael@0 | 720 | {"__FreeBSD__", "1"}, |
michael@0 | 721 | #endif |
michael@0 | 722 | #ifdef __NetBSD__ |
michael@0 | 723 | {"__NetBSD__", "1"}, |
michael@0 | 724 | #endif |
michael@0 | 725 | #ifdef __OpenBSD__ |
michael@0 | 726 | {"__OpenBSD__", "1"}, |
michael@0 | 727 | #endif |
michael@0 | 728 | #ifdef __EMX__ |
michael@0 | 729 | {"__EMX__", "1"}, |
michael@0 | 730 | #endif |
michael@0 | 731 | /* ADDED THE FOLLOWING SYMBOLS FOR WINDOWS */ |
michael@0 | 732 | #ifdef _WIN32 |
michael@0 | 733 | {"_WIN32", QUOTEEXPANSION(_WIN32) }, |
michael@0 | 734 | #endif |
michael@0 | 735 | #ifdef _WIN64 |
michael@0 | 736 | {"_WIN64", QUOTEEXPANSION(_WIN64) }, |
michael@0 | 737 | #endif |
michael@0 | 738 | #ifdef _X86 |
michael@0 | 739 | {"_X86", QUOTEEXPANSION(_X86) }, |
michael@0 | 740 | #endif |
michael@0 | 741 | #ifdef _X86_ |
michael@0 | 742 | {"_X86_", QUOTEEXPANSION(_X86_) }, |
michael@0 | 743 | #endif |
michael@0 | 744 | #ifdef _X86_64 |
michael@0 | 745 | {"_X86_64", QUOTEEXPANSION(_X86_64) }, |
michael@0 | 746 | #endif |
michael@0 | 747 | #ifdef _X86_64_ |
michael@0 | 748 | {"_X86_64_", QUOTEEXPANSION(_X86_64_) }, |
michael@0 | 749 | #endif |
michael@0 | 750 | #ifdef _DEBUG |
michael@0 | 751 | {"_DEBUG", QUOTEEXPANSION(_DEBUG) }, |
michael@0 | 752 | #endif |
michael@0 | 753 | #ifdef _DLL |
michael@0 | 754 | {"_DLL", QUOTEEXPANSION(_DLL) }, |
michael@0 | 755 | #endif |
michael@0 | 756 | #ifdef _M_IX86 |
michael@0 | 757 | {"_M_IX86", QUOTEEXPANSION(_M_IX86) }, |
michael@0 | 758 | #endif |
michael@0 | 759 | #ifdef _M_X64 |
michael@0 | 760 | {"_M_X64", QUOTEEXPANSION(_M_X64) }, |
michael@0 | 761 | #endif |
michael@0 | 762 | #ifdef _MSC_FULL_VER |
michael@0 | 763 | {"_MSC_FULL_VER", QUOTEEXPANSION(_MSC_FULL_VER) }, |
michael@0 | 764 | #endif |
michael@0 | 765 | #ifdef _MSC_VER |
michael@0 | 766 | {"_MSC_VER", QUOTEEXPANSION(_MSC_VER) }, |
michael@0 | 767 | #endif |
michael@0 | 768 | #ifdef _MSVC_RUNTIME_CHECKS |
michael@0 | 769 | {"_MSVC_RUNTIME_CHECKS", QUOTEEXPANSION(_MSVC_RUNTIME_CHECKS) }, |
michael@0 | 770 | #endif |
michael@0 | 771 | #ifdef _MT |
michael@0 | 772 | {"_MT", QUOTEEXPANSION(_MT) }, |
michael@0 | 773 | #endif |
michael@0 | 774 | #ifdef _CHAR_UNSIGNED |
michael@0 | 775 | {"_CHAR_UNSIGNED", QUOTEEXPANSION(_CHAR_UNSIGNED) }, |
michael@0 | 776 | #endif |
michael@0 | 777 | /* add any additional symbols before this line */ |
michael@0 | 778 | {NULL, NULL} |
michael@0 | 779 | }; |
michael@0 | 780 | |
michael@0 | 781 | #endif /* MAKEDEPEND */ |
michael@0 | 782 | #endif /* CCIMAKE */ |