imakemdep.h

Go to the documentation of this file.
00001 /* $TOG: imakemdep.h /main/101 1997/06/06 09:13:20 bill $ */
00002 /*
00003 
00004 Copyright (c) 1993, 1994  X Consortium
00005 
00006 Permission is hereby granted, free of charge, to any person obtaining a copy
00007 of this software and associated documentation files (the "Software"), to deal
00008 in the Software without restriction, including without limitation the rights
00009 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00010 copies of the Software, and to permit persons to whom the Software is
00011 furnished to do so, subject to the following conditions:
00012 
00013 The above copyright notice and this permission notice shall be included in
00014 all copies or substantial portions of the Software.
00015 
00016 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00019 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00020 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00021 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00022 
00023 Except as contained in this notice, the name of the X Consortium shall not be
00024 used in advertising or otherwise to promote the sale, use or other dealings
00025 in this Software without prior written authorization from the X Consortium.
00026 
00027 */
00028 /* $XFree86: xc/config/imake/imakemdep.h,v 3.24.2.3 1997/07/27 02:41:05 dawes Exp $ */
00029 
00030 
00031 /*
00032  * This file contains machine-dependent constants for the imake utility.
00033  * When porting imake, read each of the steps below and add in any necessary
00034  * definitions.  In general you should *not* edit ccimake.c or imake.c!
00035  */
00036 
00037 #ifdef CCIMAKE
00038 /*
00039  * Step 1:  imake_ccflags
00040  *     Define any special flags that will be needed to get imake.c to compile.
00041  *     These will be passed to the compile along with the contents of the
00042  *     make variable BOOTSTRAPCFLAGS.
00043  */
00044 #if defined(clipper) || defined(__clipper__)
00045 #define imake_ccflags "-O -DSYSV -DBOOTSTRAPCFLAGS=-DSYSV"
00046 #endif
00047 
00048 #ifdef hpux
00049 #ifdef hp9000s800
00050 #define imake_ccflags "-DSYSV"
00051 #else
00052 #define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
00053 #endif
00054 #endif
00055 
00056 #if defined(macII) || defined(_AUX_SOURCE)
00057 #define imake_ccflags "-DmacII -DSYSV"
00058 #endif
00059 
00060 #ifdef stellar
00061 #define imake_ccflags "-DSYSV"
00062 #endif
00063 
00064 #if defined(USL) || defined(__USLC__) || defined(Oki) || defined(NCR)
00065 #define imake_ccflags "-Xa -DSVR4"
00066 #endif
00067 
00068 /* SCO may define __USLC__ so put this after the USL check */
00069 #if defined(M_UNIX) || defined(_SCO_DS)
00070 #ifdef imake_ccflags
00071 #undef imake_ccflags
00072 #endif
00073 #define imake_ccflags "-Dsco -DSYSV"
00074 #endif
00075 
00076 #ifdef sony
00077 #if defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
00078 #define imake_ccflags "-DSVR4"
00079 #else
00080 #include <sys/param.h>
00081 #if NEWSOS < 41
00082 #define imake_ccflags "-Dbsd43 -DNOSTDHDRS"
00083 #else
00084 #if NEWSOS < 42
00085 #define imake_ccflags "-Dbsd43"
00086 #endif
00087 #endif
00088 #endif
00089 #endif
00090 
00091 #ifdef _CRAY
00092 #define imake_ccflags "-DSYSV -DUSG"
00093 #endif
00094 
00095 #if defined(_IBMR2) || defined(aix)
00096 #define imake_ccflags "-Daix -DSYSV"
00097 #endif
00098 
00099 #ifdef Mips
00100 #  if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
00101 #    define imake_ccflags "-DBSD43"
00102 #  else
00103 #    define imake_ccflags "-DSYSV"
00104 #  endif
00105 #endif
00106 
00107 #ifdef is68k
00108 #define imake_ccflags "-Dluna -Duniosb"
00109 #endif
00110 
00111 #ifdef SYSV386
00112 # ifdef SVR4
00113 #  define imake_ccflags "-Xa -DSVR4"
00114 # else
00115 #  define imake_ccflags "-DSYSV"
00116 # endif
00117 #endif
00118 
00119 #ifdef SVR4
00120 # ifdef i386
00121 #  define imake_ccflags "-Xa -DSVR4"
00122 # endif
00123 #endif
00124 
00125 #ifdef SYSV
00126 # ifdef i386
00127 #  define imake_ccflags "-DSYSV"
00128 # endif
00129 #endif
00130 
00131 #ifdef __convex__
00132 #define imake_ccflags "-fn -tm c1"
00133 #endif
00134 
00135 #ifdef apollo
00136 #define imake_ccflags "-DX_NOT_POSIX"
00137 #endif
00138 
00139 #ifdef WIN32
00140 #if _MSC_VER < 1000
00141 #define imake_ccflags "-nologo -batch -D__STDC__"
00142 #else
00143 #define imake_ccflags "-nologo -D__STDC__"
00144 #endif
00145 #endif
00146 
00147 #ifdef __uxp__
00148 #define imake_ccflags "-DSVR4 -DANSICPP"
00149 #endif
00150 
00151 #ifdef __sxg__
00152 #define imake_ccflags "-DSYSV -DUSG -DNOSTDHDRS"
00153 #endif
00154 
00155 #ifdef sequent
00156 #define imake_ccflags "-DX_NOT_STDC_ENV -DX_NOT_POSIX"
00157 #endif
00158 
00159 #ifdef _SEQUENT_
00160 #define imake_ccflags "-DSYSV -DUSG"
00161 #endif
00162 
00163 #if defined(SX) || defined(PC_UX)
00164 #define imake_ccflags "-DSYSV"
00165 #endif
00166 
00167 #ifdef nec_ews_svr2
00168 #define imake_ccflags "-DUSG"
00169 #endif
00170 
00171 #if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up) || defined(_nec_ft)
00172 #define imake_ccflags "-DSVR4"
00173 #endif
00174 
00175 #ifdef  MACH
00176 #define imake_ccflags "-DNOSTDHDRS"
00177 #endif
00178 
00179 /* this is for OS/2 under EMX. This won't work with DOS */
00180 #if defined(__EMX__)
00181 #define imake_ccflags "-DBSD43"
00182 #endif
00183 
00184 #else /* not CCIMAKE */
00185 #ifndef MAKEDEPEND
00186 /*
00187  * Step 2:  dup2
00188  *     If your OS doesn't have a dup2() system call to duplicate one file
00189  *     descriptor onto another, define such a mechanism here (if you don't
00190  *     already fall under the existing category(ies).
00191  */
00192 #if defined(SYSV) && !defined(_CRAY) && !defined(Mips) && !defined(_SEQUENT_) && !defined(sco)
00193 #define dup2(fd1,fd2)   ((fd1 == fd2) ? fd1 : (close(fd2), \
00194                                                fcntl(fd1, F_DUPFD, fd2)))
00195 #endif
00196 
00197 
00198 /*
00199  * Step 3:  FIXUP_CPP_WHITESPACE
00200  *     If your cpp collapses tabs macro expansions into a single space and
00201  *     replaces escaped newlines with a space, define this symbol.  This will
00202  *     cause imake to attempt to patch up the generated Makefile by looking
00203  *     for lines that have colons in them (this is why the rules file escapes
00204  *     all colons).  One way to tell if you need this is to see whether or not
00205  *     your Makefiles have no tabs in them and lots of @@ strings.
00206  */
00207 #if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx) || defined(WIN32) || defined(sco) || (defined(AMOEBA) && defined(CROSS_COMPILE))
00208 #define FIXUP_CPP_WHITESPACE
00209 #endif
00210 #ifdef WIN32
00211 #define REMOVE_CPP_LEADSPACE
00212 #define INLINE_SYNTAX
00213 #define MAGIC_MAKE_VARS
00214 #endif
00215 #ifdef __minix_vmd
00216 #define FIXUP_CPP_WHITESPACE
00217 #endif
00218 
00219 /*
00220  * Step 4:  USE_CC_E, DEFAULT_CC, DEFAULT_CPP
00221  *     If you want to use cc -E instead of cpp, define USE_CC_E.
00222  *     If use cc -E but want a different compiler, define DEFAULT_CC.
00223  *     If the cpp you need is not in /lib/cpp, define DEFAULT_CPP.
00224  */
00225 #ifdef hpux
00226 #define USE_CC_E
00227 #endif
00228 #ifdef WIN32
00229 #define USE_CC_E
00230 #define DEFAULT_CC "cl"
00231 #endif
00232 #ifdef apollo
00233 #define DEFAULT_CPP "/usr/lib/cpp"
00234 #endif
00235 #if defined(clipper) || defined(__clipper__)
00236 #define DEFAULT_CPP "/usr/lib/cpp"
00237 #endif
00238 #if defined(_IBMR2) && !defined(DEFAULT_CPP)
00239 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
00240 #endif
00241 #if defined(sun) && (defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__))
00242 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
00243 #endif
00244 #ifdef __bsdi__
00245 #define DEFAULT_CPP "/usr/bin/cpp"
00246 #endif
00247 #ifdef __uxp__
00248 #define DEFAULT_CPP "/usr/ccs/lib/cpp"
00249 #endif
00250 #ifdef __sxg__
00251 #define DEFAULT_CPP "/usr/lib/cpp"
00252 #endif
00253 #ifdef _CRAY
00254 #define DEFAULT_CPP "/lib/pcpp"
00255 #endif
00256 #if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
00257 #define DEFAULT_CPP "/usr/libexec/cpp"
00258 #endif
00259 #if defined(__sgi) && defined(__ANSI_CPP__)
00260 #define USE_CC_E
00261 #endif
00262 #ifdef  MACH
00263 #define USE_CC_E
00264 #endif
00265 #ifdef __minix_vmd
00266 #define DEFAULT_CPP "/usr/lib/cpp"
00267 #endif
00268 #if defined(__EMX__)
00269 /* expects cpp in PATH */
00270 #define DEFAULT_CPP "cpp"
00271 #endif
00272 
00273 /*
00274  * Step 5:  cpp_argv
00275  *     The following table contains the flags that should be passed
00276  *     whenever a Makefile is being generated.  If your preprocessor
00277  *     doesn't predefine any unique symbols, choose one and add it to the
00278  *     end of this table.  Then, do the following:
00279  *
00280  *         a.  Use this symbol in Imake.tmpl when setting MacroFile.
00281  *         b.  Put this symbol in the definition of BootstrapCFlags in your
00282  *             <platform>.cf file.
00283  *         c.  When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol"
00284  *             to the end of the command line.
00285  *
00286  *     Note that you may define more than one symbol (useful for platforms
00287  *     that support multiple operating systems).
00288  */
00289 
00290 #define ARGUMENTS 50    /* number of arguments in various arrays */
00291 char *cpp_argv[ARGUMENTS] = {
00292         "cc",           /* replaced by the actual program to exec */
00293         "-I.",          /* add current directory to include path */
00294 #ifdef unix
00295         "-Uunix",       /* remove unix symbol so that filename unix.c okay */
00296 #endif
00297 #if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(MACH)
00298 # ifdef __i386__
00299         "-D__i386__",
00300 # endif
00301 # ifdef __GNUC__
00302         "-traditional",
00303 # endif
00304 #endif
00305 #ifdef M4330
00306         "-DM4330",      /* Tektronix */
00307 #endif
00308 #ifdef M4310
00309         "-DM4310",      /* Tektronix */
00310 #endif
00311 #if defined(macII) || defined(_AUX_SOURCE)
00312         "-DmacII",      /* Apple A/UX */
00313 #endif
00314 #if defined(USL) || defined(__USLC__)
00315         "-DUSL",        /* USL */
00316 #endif
00317 #ifdef sony
00318         "-Dsony",       /* Sony */
00319 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) && NEWSOS < 42
00320         "-Dbsd43",
00321 #endif
00322 #endif
00323 #ifdef _IBMR2
00324         "-D_IBMR2",     /* IBM RS-6000 (we ensured that aix is defined above */
00325 #ifndef aix
00326 #define aix             /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
00327 #endif
00328 #endif /* _IBMR2 */
00329 #ifdef aix
00330         "-Daix",        /* AIX instead of AOS */
00331 #ifndef ibm
00332 #define ibm             /* allow BOOTSTRAPCFLAGS="-Daix" */
00333 #endif
00334 #endif /* aix */
00335 #ifdef ibm
00336         "-Dibm",        /* IBM PS/2 and RT under both AOS and AIX */
00337 #endif
00338 #ifdef luna
00339         "-Dluna",       /* OMRON luna 68K and 88K */
00340 #ifdef luna1
00341         "-Dluna1",
00342 #endif
00343 #ifdef luna88k          /* need not on UniOS-Mach Vers. 1.13 */
00344         "-traditional", /* for some older version            */
00345 #endif                  /* instead of "-DXCOMM=\\#"          */
00346 #ifdef uniosb
00347         "-Duniosb",
00348 #endif
00349 #ifdef uniosu
00350         "-Duniosu",
00351 #endif
00352 #endif /* luna */
00353 #ifdef _CRAY            /* Cray */
00354         "-Ucray",
00355 #endif
00356 #ifdef Mips
00357         "-DMips",       /* Define and use Mips for Mips Co. OS/mach. */
00358 # if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
00359         "-DBSD43",      /* Mips RISCOS supports two environments */
00360 # else
00361         "-DSYSV",       /* System V environment is the default */
00362 # endif
00363 #endif /* Mips */
00364 #ifdef MOTOROLA
00365         "-DMOTOROLA",    /* Motorola Delta Systems */
00366 # ifdef SYSV
00367         "-DSYSV",
00368 # endif
00369 # ifdef SVR4
00370         "-DSVR4",
00371 # endif
00372 #endif /* MOTOROLA */
00373 #if defined(M_UNIX) || defined(sco)
00374         "-Dsco",
00375         "-DSYSV",
00376 #endif
00377 #ifdef i386
00378         "-Di386",
00379 # ifdef SVR4
00380         "-DSVR4",
00381 # endif
00382 # ifdef SYSV
00383         "-DSYSV",
00384 #  ifdef ISC
00385         "-DISC",
00386 #   ifdef ISC40
00387         "-DISC40",       /* ISC 4.0 */
00388 #   else
00389 #    ifdef ISC202
00390         "-DISC202",      /* ISC 2.0.2 */
00391 #    else
00392 #     ifdef ISC30
00393         "-DISC30",       /* ISC 3.0 */
00394 #     else
00395         "-DISC22",       /* ISC 2.2.1 */
00396 #     endif
00397 #    endif
00398 #   endif
00399 #  endif
00400 #  ifdef SCO
00401         "-DSCO",
00402 #   ifdef _SCO_DS
00403     "-DSCO325 -DSVR4",
00404 #   endif
00405 #  endif
00406 # endif
00407 # ifdef ESIX
00408         "-DESIX",
00409 # endif
00410 # ifdef ATT
00411         "-DATT",
00412 # endif
00413 # ifdef DELL
00414         "-DDELL",
00415 # endif
00416 #endif
00417 #ifdef SYSV386           /* System V/386 folks, obsolete */
00418         "-Di386",
00419 # ifdef SVR4
00420         "-DSVR4",
00421 # endif
00422 # ifdef ISC
00423         "-DISC",
00424 #  ifdef ISC40
00425         "-DISC40",       /* ISC 4.0 */
00426 #  else
00427 #   ifdef ISC202
00428         "-DISC202",      /* ISC 2.0.2 */
00429 #   else
00430 #    ifdef ISC30
00431         "-DISC30",       /* ISC 3.0 */
00432 #    else
00433         "-DISC22",       /* ISC 2.2.1 */
00434 #    endif
00435 #   endif
00436 #  endif
00437 # endif
00438 # ifdef SCO
00439         "-DSCO",
00440 #  ifdef _SCO_DS
00441         "-DSCO325 -DSVR4",
00442 #  endif
00443 # endif
00444 # ifdef ESIX
00445         "-DESIX",
00446 # endif
00447 # ifdef ATT
00448         "-DATT",
00449 # endif
00450 # ifdef DELL
00451         "-DDELL",
00452 # endif
00453 #endif
00454 #ifdef __osf__
00455         "-D__osf__",
00456 # ifdef __mips__
00457         "-D__mips__",
00458 # endif
00459 # ifdef __alpha
00460         "-D__alpha",
00461 # endif
00462 # ifdef __alpha__
00463         "-D__alpha__",
00464 # endif
00465 # ifdef __i386__
00466         "-D__i386__",
00467 # endif
00468 # ifdef __GNUC__
00469         "-traditional",
00470 # endif
00471 #endif
00472 #ifdef Oki
00473         "-DOki",
00474 #endif
00475 #ifdef sun
00476 #if defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__)
00477         "-DSVR4",
00478 #endif
00479 #endif
00480 #ifdef WIN32
00481         "-DWIN32",
00482         "-nologo",
00483 #if _MSC_VER < 1000
00484         "-batch",
00485 #endif
00486         "-D__STDC__",
00487 #endif
00488 #ifdef NCR
00489         "-DNCR",        /* NCR */
00490 #endif
00491 #ifdef linux
00492         "-traditional",
00493         "-Dlinux",
00494 #endif
00495 #ifdef __uxp__
00496         "-D__uxp__",
00497 #endif
00498 #ifdef __sxg__
00499         "-D__sxg__",
00500 #endif
00501 #ifdef nec_ews_svr2
00502         "-Dnec_ews_svr2",
00503 #endif
00504 #ifdef AMOEBA
00505         "-DAMOEBA",
00506 # ifdef CROSS_COMPILE
00507         "-DCROSS_COMPILE",
00508 #  ifdef CROSS_i80386
00509         "-Di80386",
00510 #  endif
00511 #  ifdef CROSS_sparc
00512         "-Dsparc",
00513 #  endif
00514 #  ifdef CROSS_mc68000
00515         "-Dmc68000",
00516 #  endif
00517 # else
00518 #  ifdef i80386
00519         "-Di80386",
00520 #  endif
00521 #  ifdef sparc
00522         "-Dsparc",
00523 #  endif
00524 #  ifdef mc68000
00525         "-Dmc68000",
00526 #  endif
00527 # endif
00528 #endif
00529 #if defined(__sgi) && defined(__ANSI_CPP__)
00530         "-cckr",
00531 #endif
00532 #ifdef __minix_vmd
00533         "-Dminix",
00534 #endif
00535 
00536 #if defined(__EMX__)
00537         "-traditional",
00538         "-Demxos2",
00539 #endif
00540 
00541 };
00542 
00543 
00544 /*
00545  * Step 6: DEFAULT_OS_MAJOR_REV, DEFAULT_OS_MINOR_REV, DEFAULT_OS_TEENY_REV,
00546  *      and DEFAULT_OS_NAME.
00547  *      If your systems provides a way to generate the default major,
00548  *      minor, teeny, or system names at runtime add commands below.
00549  *      The syntax of the _REV strings is 'f fmt' where 'f' is an argument
00550  *      you would give to uname, and "fmt" is a scanf() format string.
00551  *      Supported uname arguments are "snrvm", and if you specify multiple
00552  *      arguments they will be separated by spaces.  No more than 5 arguments
00553  *      may be given.  Unlike uname() order of arguments matters.
00554  *
00555  *      DEFAULT_OS_MAJOR_REV_FROB, DEFAULT_OS_MINOR_REV_FROB,
00556  *      DEFAULT_OS_TEENY_REV_FROB, and DEFAULT_OS_NAME_FROB can be used to
00557  *      modify the results of the use of the various strings.
00558  */
00559 #if defined(aix)
00560 /* uname -v returns "x" (e.g. "4"), and uname -r returns "y" (e.g. "1") */
00561 # define DEFAULT_OS_MAJOR_REV   "v %[0-9]"
00562 # define DEFAULT_OS_MINOR_REV   "r %[0-9]"
00563 /* No information available to generate default OSTeenyVersion value. */
00564 # define DEFAULT_OS_NAME        "srvm %[^\n]"
00565 #elif defined(sun) || defined(sgi) || defined(ultrix) || defined(__uxp__) || defined(sony)
00566 /* uname -r returns "x.y[.z]", e.g. "5.4" or "4.1.3" */
00567 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
00568 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
00569 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d.%[0-9]"
00570 # define DEFAULT_OS_NAME        "srvm %[^\n]"
00571 #elif defined(hpux)
00572 /* uname -r returns "W.x.yz", e.g. "B.10.01" */
00573 # define DEFAULT_OS_MAJOR_REV   "r %*[^.].%[0-9]"
00574 # define DEFAULT_OS_MINOR_REV   "r %*[^.].%*d.%1s"
00575 # define DEFAULT_OS_TEENY_REV   "r %*[^.].%*d.%*c%[0-9]"
00576 # define DEFAULT_OS_NAME        "srvm %[^\n]"
00577 #elif defined(USL) || defined(__USLC__)
00578 /* uname -v returns "x.yz" or "x.y.z", e.g. "2.02" or "2.1.2". */
00579 # define DEFAULT_OS_MAJOR_REV   "v %[0-9]"
00580 # define DEFAULT_OS_MINOR_REV   "v %*d.%1s"
00581 # define DEFAULT_OS_TEENY_REV   "v %*d.%*c%[.0-9]"
00582 # define DEFAULT_OS_NAME        "srvm %[^\n]"
00583 #elif defined(__osf__)
00584 /* uname -r returns "Wx.y", e.g. "V3.2" or "T4.0" */
00585 # define DEFAULT_OS_MAJOR_REV   "r %*[^0-9]%[0-9]"
00586 # define DEFAULT_OS_MINOR_REV   "r %*[^.].%[0-9]"
00587 # define DEFAULT_OS_NAME        "srvm %[^\n]"
00588 #elif defined(__uxp__)
00589 /* NOTE: "x.y[.z]" above handles UXP/DF.  This is a sample alternative. */
00590 /* uname -v returns "VxLy Yzzzzz ....", e.g. "V20L10 Y95021 Increment 5 ..." */
00591 # define DEFAULT_OS_MAJOR_REV   "v V%[0-9]"
00592 # define DEFAULT_OS_MINOR_REV   "v V%*dL%[0-9]"
00593 # define DEFAULT_OS_NAME        "srvm %[^\n]"
00594 #elif defined(linux)
00595 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
00596 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
00597 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d.%[0-9]"
00598 # define DEFAULT_OS_NAME        "srm %[^\n]"
00599 #elif defined(ISC)
00600 /* ISC all Versions ? */
00601 /* uname -r returns "x.y", e.g. "3.2" ,uname -v returns "x" e.g. "2" */
00602 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
00603 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
00604 # define DEFAULT_OS_TEENY_REV   "v %[0-9]"
00605 /* # define DEFAULT_OS_NAME        "srm %[^\n]" */ /* Not useful on ISC */
00606 #elif defined(__FreeBSD__)
00607 /* BSD/OS too? */
00608 /* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
00609 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
00610 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
00611 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d.%[0-9]"
00612 # define DEFAULT_OS_NAME        "srm %[^\n]"
00613 /* Use an alternate way to find the teeny version for -STABLE, -SNAP versions */
00614 #  define DEFAULT_OS_TEENY_REV_FROB(buf, size)                          \
00615     do {                                                                \
00616         if (*buf == 0) {                                                \
00617                 int __mib[2];                                           \
00618                 size_t __len;                                           \
00619                 int __osrel;                                            \
00620                                                                         \
00621                 __mib[0] = CTL_KERN;                                    \
00622                 __mib[1] = KERN_OSRELDATE;                              \
00623                 __len = sizeof(__osrel);                                \
00624                 sysctl(__mib, 2, &__osrel, &__len, NULL, 0);            \
00625                 if (__osrel < 210000) {                                 \
00626                         if (__osrel < 199607)                           \
00627                                 buf[0] = '0';                           \
00628                         else if (__osrel < 199612)                      \
00629                                 buf[0] = '5';                           \
00630                         else if (__osrel == 199612)                     \
00631                                 buf[0] = '6';                           \
00632                         else                                            \
00633                                 buf[0] = '8'; /* guess */               \
00634                 } else {                                                \
00635                         buf[0] = ((__osrel / 1000) % 10) + '0';         \
00636                 }                                                       \
00637                 buf[1] = 0;                                             \
00638         }                                                               \
00639     } while (0)
00640 #elif defined(__OpenBSD__)
00641 /* uname -r returns "x.y", e.g. "3.7" */
00642 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
00643 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
00644 # define DEFAULT_OS_NAME        "srm %[^\n]"
00645 # define DEFAULT_MACHINE_ARCHITECTURE "m %[^\n]"
00646 #elif defined(__NetBSD__)
00647 /*
00648  * uname -r returns "x.y([ABCD...]|_mumble)", e.g.:
00649  *      1.2     1.2_BETA        1.2A    1.2B
00650  *
00651  * That means that we have to do something special to turn the
00652  * TEENY revision into a form that we can use (i.e., a string of
00653  * decimal digits).
00654  *
00655  * We also frob the name DEFAULT_OS_NAME so that it looks like the
00656  * 'standard' NetBSD name for the version, e.g. "NetBSD/i386 1.2B" for
00657  * NetBSD 1.2B on an i386.
00658  */
00659 # define DEFAULT_OS_MAJOR_REV   "r %[0-9]"
00660 # define DEFAULT_OS_MINOR_REV   "r %*d.%[0-9]"
00661 # define DEFAULT_OS_TEENY_REV   "r %*d.%*d%[A-Z]"
00662 # define DEFAULT_OS_TEENY_REV_FROB(buf, size)                           \
00663     do {                                                                \
00664         if (*(buf) >= 'A' && *(buf) <= 'Z') /* sanity check */          \
00665                 snprintf((buf), (size), "%d", *(buf) - 'A' + 1);        \
00666         else                                                            \
00667             *(buf) = '\0';                                              \
00668     } while (0)
00669 # define DEFAULT_OS_NAME        "smr %[^\n]"
00670 # define DEFAULT_OS_NAME_FROB(buf, size)                                \
00671     do {                                                                \
00672         char *__sp;                                                     \
00673         if ((__sp = strchr((buf), ' ')) != NULL)                        \
00674                 *__sp = '/';                                            \
00675     } while (0)
00676 #endif
00677 
00678 #else /* else MAKEDEPEND */
00679 /*
00680  * Step 7:  predefs
00681  *     If your compiler and/or preprocessor define any specific symbols, add
00682  *     them to the the following table.  The definition of struct symtab is
00683  *     in util/makedepend/def.h.
00684  */
00685 struct symtab   predefs[] = {
00686 #ifdef apollo
00687         {"apollo", "1"},
00688 #endif
00689 #if defined(clipper) || defined(__clipper__)
00690         {"clipper", "1"},
00691         {"__clipper__", "1"},
00692         {"clix", "1"},
00693         {"__clix__", "1"},
00694 #endif
00695 #ifdef ibm032
00696         {"ibm032", "1"},
00697 #endif
00698 #ifdef ibm
00699         {"ibm", "1"},
00700 #endif
00701 #ifdef aix
00702         {"aix", "1"},
00703 #endif
00704 #ifdef sun
00705         {"sun", "1"},
00706 #endif
00707 #ifdef sun2
00708         {"sun2", "1"},
00709 #endif
00710 #ifdef sun3
00711         {"sun3", "1"},
00712 #endif
00713 #ifdef sun4
00714         {"sun4", "1"},
00715 #endif
00716 #ifdef sparc
00717         {"sparc", "1"},
00718 #endif
00719 #ifdef __sparc__
00720         {"__sparc__", "1"},
00721 #endif
00722 #ifdef hpux
00723         {"hpux", "1"},
00724 #endif
00725 #ifdef __hpux
00726         {"__hpux", "1"},
00727 #endif
00728 #ifdef __hp9000s800
00729         {"__hp9000s800", "1"},
00730 #endif
00731 #ifdef __hp9000s700
00732         {"__hp9000s700", "1"},
00733 #endif
00734 #ifdef vax
00735         {"vax", "1"},
00736 #endif
00737 #ifdef VMS
00738         {"VMS", "1"},
00739 #endif
00740 #ifdef cray
00741         {"cray", "1"},
00742 #endif
00743 #ifdef CRAY
00744         {"CRAY", "1"},
00745 #endif
00746 #ifdef _CRAY
00747         {"_CRAY", "1"},
00748 #endif
00749 #ifdef att
00750         {"att", "1"},
00751 #endif
00752 #ifdef mips
00753         {"mips", "1"},
00754 #endif
00755 #ifdef __mips__
00756         {"__mips__", "1"},
00757 #endif
00758 #ifdef ultrix
00759         {"ultrix", "1"},
00760 #endif
00761 #ifdef stellar
00762         {"stellar", "1"},
00763 #endif
00764 #ifdef mc68000
00765         {"mc68000", "1"},
00766 #endif
00767 #ifdef mc68020
00768         {"mc68020", "1"},
00769 #endif
00770 #ifdef __GNUC__
00771         {"__GNUC__", "1"},
00772 #endif
00773 #if __STDC__
00774         {"__STDC__", "1"},
00775 #endif
00776 #ifdef __HIGHC__
00777         {"__HIGHC__", "1"},
00778 #endif
00779 #ifdef CMU
00780         {"CMU", "1"},
00781 #endif
00782 #ifdef linux
00783         {"linux", "1"},
00784 #endif
00785 #ifdef luna
00786         {"luna", "1"},
00787 #ifdef luna1
00788         {"luna1", "1"},
00789 #endif
00790 #ifdef luna2
00791         {"luna2", "1"},
00792 #endif
00793 #ifdef luna88k
00794         {"luna88k", "1"},
00795 #endif
00796 #ifdef uniosb
00797         {"uniosb", "1"},
00798 #endif
00799 #ifdef uniosu
00800         {"uniosu", "1"},
00801 #endif
00802 #endif
00803 #ifdef ieeep754
00804         {"ieeep754", "1"},
00805 #endif
00806 #ifdef is68k
00807         {"is68k", "1"},
00808 #endif
00809 #ifdef m68k
00810         {"m68k", "1"},
00811 #endif
00812 #ifdef m88k
00813         {"m88k", "1"},
00814 #endif
00815 #ifdef __m88k__
00816         {"__m88k__", "1"},
00817 #endif
00818 #ifdef bsd43
00819         {"bsd43", "1"},
00820 #endif
00821 #ifdef hcx
00822         {"hcx", "1"},
00823 #endif
00824 #ifdef sony
00825         {"sony", "1"},
00826 #ifdef SYSTYPE_SYSV
00827         {"SYSTYPE_SYSV", "1"},
00828 #endif
00829 #ifdef _SYSTYPE_SYSV
00830         {"_SYSTYPE_SYSV", "1"},
00831 #endif
00832 #endif
00833 #ifdef __OSF__
00834         {"__OSF__", "1"},
00835 #endif
00836 #ifdef __osf__
00837         {"__osf__", "1"},
00838 #endif
00839 #ifdef __alpha
00840         {"__alpha", "1"},
00841 #endif
00842 #ifdef __alpha__
00843         {"__alpha__", "1"},
00844 #endif
00845 #ifdef __DECC
00846         {"__DECC",  "1"},
00847 #endif
00848 #ifdef __decc
00849         {"__decc",  "1"},
00850 #endif
00851 #ifdef __unix__
00852         {"__unix__", "1"},
00853 #endif
00854 #ifdef __uxp__
00855         {"__uxp__", "1"},
00856 #endif
00857 #ifdef __sxg__
00858         {"__sxg__", "1"},
00859 #endif
00860 #ifdef _SEQUENT_
00861         {"_SEQUENT_", "1"},
00862         {"__STDC__", "1"},
00863 #endif
00864 #ifdef __bsdi__
00865         {"__bsdi__", "1"},
00866 #endif
00867 #ifdef nec_ews_svr2
00868         {"nec_ews_svr2", "1"},
00869 #endif
00870 #ifdef nec_ews_svr4
00871         {"nec_ews_svr4", "1"},
00872 #endif
00873 #ifdef _nec_ews_svr4
00874         {"_nec_ews_svr4", "1"},
00875 #endif
00876 #ifdef _nec_up
00877         {"_nec_up", "1"},
00878 #endif
00879 #ifdef SX
00880         {"SX", "1"},
00881 #endif
00882 #ifdef nec
00883         {"nec", "1"},
00884 #endif
00885 #ifdef _nec_ft
00886         {"_nec_ft", "1"},
00887 #endif
00888 #ifdef PC_UX
00889         {"PC_UX", "1"},
00890 #endif
00891 #ifdef sgi
00892         {"sgi", "1"},
00893 #endif
00894 #ifdef __sgi
00895         {"__sgi", "1"},
00896 #endif
00897 #ifdef __FreeBSD__
00898         {"__FreeBSD__", "1"},
00899 #endif
00900 #ifdef __OpenBSD__
00901         {"__OpenBSD__", "1"},
00902 #endif
00903 #ifdef __NetBSD__
00904         {"__NetBSD__", "1"},
00905 #endif
00906 #ifdef __ELF__
00907         {"__ELF__", "1"},
00908 #endif
00909 #ifdef __EMX__
00910         {"__EMX__", "1"},
00911 #endif
00912 #ifdef __APPLE__
00913         {"__APPLE__", "1"},
00914 #endif
00915 #ifdef __ppc__
00916         {"__ppc__", "1"},
00917 #endif
00918 #ifdef __arm__
00919         {"__arm__", "1"},
00920 #endif
00921 #ifdef __x86_64__
00922         {"__x86_64__", "1"},
00923 #endif
00924 
00925         /* add any additional symbols before this line */
00926         {NULL, NULL}
00927 };
00928 
00929 #endif /* MAKEDEPEND */
00930 #endif /* CCIMAKE */

Generated on Tue Jul 5 14:10:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1