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