* $XConsortium: imakemdep.h,v 1.38 91/08/25 11:36:39 rws Exp $
* This file contains machine-dependent constants for the imake utility.
* When porting imake, read each of the steps below and add in any necessary
* definitions. Do *not* edit ccimake.c or imake.c!
* Define any special flags that will be needed to get imake.c to compile.
* These will be passed to the compile along with the contents of the
* make variable BOOTSTRAPCFLAGS.
#define imake_ccflags "-DSYSV"
#define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
#if defined(macII) || defined(_AUX_SOURCE)
#define imake_ccflags "-DmacII -DSYSV"
#define imake_ccflags "-DSYSV"
#define imake_ccflags "-Xc -DSVR4"
#define imake_ccflags "-DSVR4"
#define imake_ccflags "-Dbsd43 -DNOSTDHDRS"
#define imake_ccflags "-Dbsd43"
/* -DX_NOT_STDC_ENV is just so we can bootstrap with cc instead of scc */
#define imake_ccflags "-DSYSV -DUSG -DX_NOT_STDC_ENV"
#define imake_ccflags "-Daix -DSYSV -D_IBMR2"
#define imake_ccflags "-Daix -DSYSV"
# if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
# define imake_ccflags "-DMips -DBSD43"
# define imake_ccflags "-DMips -DSYSV"
#define imake_ccflags "-Dluna -Duniosb"
# define imake_ccflags "-Xc -DSVR4"
# define imake_ccflags "-DSYSV"
#define imake_ccflags "-fn -tm c1"
#define imake_ccflags "-DX_NOT_POSIX"
* If your OS doesn't have a dup2() system call to duplicate one file
* descriptor onto another, define such a mechanism here (if you don't
* already fall under the existing category(ies).
#if defined(SYSV) && !defined(CRAY) && !defined(Mips)
#define dup2(fd1,fd2) ((fd1 == fd2) ? fd1 : (close(fd2), \
fcntl(fd1, F_DUPFD, fd2)))
* Step 3: FIXUP_CPP_WHITESPACE
* If your cpp collapses tabs macro expansions into a single space and
* replaces escaped newlines with a space, define this symbol. This will
* cause imake to attempt to patch up the generated Makefile by looking
* for lines that have colons in them (this is why the rules file escapes
* all colons). One way to tell if you need this is to see whether or not
* your Makefiles have no tabs in them and lots of @@ strings.
#if defined(sun) || defined(SYSV) || defined(SVR4) || defined(hcx)
#define FIXUP_CPP_WHITESPACE
* If the C preprocessor does not live in /lib/cpp, set this symbol to
* the appropriate location.
#define DEFAULT_CPP "/usr/lib/cpp"
#if defined(_IBMR2) && !defined(DEFAULT_CPP)
#define DEFAULT_CPP "/usr/lpp/X11/Xamples/util/cpp/cpp"
#if defined(hp9000) && !defined(DEFAULT_CPP)
#define DEFAULT_CPP "/usr/libexec/gcc2/cpp"
* The following table contains the cpp flags that should be passed to
* cpp whenever a Makefile is being generated. If your preprocessor
* doesn't predefine any unique symbols, choose one and add it to the
* end of this table. Then, do the following:
* a. Use this symbol at the top of Imake.tmpl when setting MacroFile.
* b. Put this symbol in the definition of BootstrapCFlags in your
* c. When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol"
* to the end of the command line.
* Note that you may define more than one symbols (useful for platforms
* that support multiple operating systems).
#define ARGUMENTS 50 /* number of arguments in various arrays */
char *cpp_argv
[ARGUMENTS
] = {
"cc", /* replaced by the actual cpp program to exec */
"cpp", /* replaced by the actual cpp program to exec */
"-I.", /* add current directory to include path */
"-Uunix", /* remove unix symbol so that filename unix.c okay */
"-DM4330", /* Tektronix */
"-DM4310", /* Tektronix */
#if defined(macII) || defined(_AUX_SOURCE)
"-DmacII", /* Apple A/UX */
"-Datt", /* AT&T products */
"-D_IBMR2", /* IBM RS-6000 (we ensured that aix is defined above */
#define aix /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
"-Daix", /* AIX instead of AOS */
#define ibm /* allow BOOTSTRAPCFLAGS="-Daix" */
"-Dibm", /* IBM PS/2 and RT under both AOS and AIX */
"-Dluna", /* OMRON luna 68K and 88K */
#ifdef luna88k /* need not on UniOS-Mach Vers. 1.13 */
"-traditional", /* for some older version */
#endif /* instead of "-DXCOMM=\\#" */
"-DMips", /* Define and use Mips for Mips Co. OS/mach. */
# if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
"-DBSD43", /* Mips RISCOS supports two environments */
"-DSYSV", /* System V environment is the default */
"-DMOTOROLA", /* Motorola Delta Systems */
#ifdef SYSV386 /* System V/386 folks */
#else /* else MAKEDEPEND */
* If your compiler and/or preprocessor define any specific symbols, add
* them to the the following table. The definition of struct symtab is
* in util/makedepend/def.h.
struct symtab predefs
[] = {
/* add any additional symbols before this line */