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