Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
37
cde/config/imake/Imakefile
Normal file
37
cde/config/imake/Imakefile
Normal file
@@ -0,0 +1,37 @@
|
||||
XCOMM $TOG: Imakefile /main/10 1997/04/30 15:39:17 kaleb $
|
||||
|
||||
XCOMM Some compilers generate fatal errors if an -L directory does
|
||||
XCOMM not exist. Since BUILDLIBDIR may not exist yet suppress its use.
|
||||
LDPRELIB =
|
||||
LDPRELIBS =
|
||||
|
||||
DEPLIBS =
|
||||
|
||||
INCLUDES = -I$(TOP)/include $(TOP_X_INCLUDES)/X11
|
||||
CPP_PROGRAM = CppCmd
|
||||
CPP_DEFINES = -DCPP_PROGRAM="\"$(CPP_PROGRAM)\""
|
||||
DEFINES = $(SIGNAL_DEFINES) $(BOOTSTRAPCFLAGS) $(CPP_DEFINES)
|
||||
|
||||
#if defined(MacIIArchitecture) || defined(SequentArchitecture)
|
||||
XBSDLIB = /**/
|
||||
#endif
|
||||
|
||||
#undef ImakeDependency
|
||||
#define ImakeDependency(dummy) @@\
|
||||
Makefile:: ProgramTargetName(imake)
|
||||
|
||||
#if CrossCompiling
|
||||
SimpleHostProgramTarget(imake)
|
||||
#else
|
||||
SimpleProgramTarget(imake)
|
||||
#endif
|
||||
|
||||
#if HasClearmake
|
||||
bootstrapdepend: depend
|
||||
#else
|
||||
bootstrapdepend:
|
||||
#endif
|
||||
|
||||
clean::
|
||||
RemoveFile(ProgramTargetName(ccimake))
|
||||
$(RM) -r bootstrap
|
||||
65
cde/config/imake/Makefile.ini
Normal file
65
cde/config/imake/Makefile.ini
Normal file
@@ -0,0 +1,65 @@
|
||||
# $TOG: Makefile.ini /main/25 1997/02/19 18:00:59 mgreess $
|
||||
#
|
||||
# WARNING WARNING WARNING WARNING WARNING WARNING WARNING
|
||||
#
|
||||
# This is NOT an automatically generated Makefile! It is hand-crafted as a
|
||||
# bootstrap, may need editing for your system. The BOOTSTRAPCFLAGS variable
|
||||
# may be given at the top of the build tree for systems that do not define
|
||||
# any machine-specific preprocessor symbols.
|
||||
#
|
||||
|
||||
BOOTSTRAPCFLAGS =
|
||||
CC = cc
|
||||
CDEBUGFLAGS = -O
|
||||
INCLUDES = -I../../include -I../../imports/x11/include/X11
|
||||
CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) $(INCLUDES)
|
||||
SHELL = /bin/sh
|
||||
RM = rm -f
|
||||
MV = mv
|
||||
MAKE = make
|
||||
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a \
|
||||
tags TAGS make.log
|
||||
NPROC = 1
|
||||
|
||||
imake::
|
||||
@echo "making imake with BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS) in config/imake"
|
||||
|
||||
imake:: imake.o
|
||||
$(CC) -o imake imake.o
|
||||
|
||||
imake.o: ccimake imake.c
|
||||
$(CC) -c $(CFLAGS) `./ccimake` imake.c
|
||||
|
||||
ccimake: ccimake.c
|
||||
$(CC) -o ccimake $(CFLAGS) ccimake.c
|
||||
|
||||
# a derived object erroneously would get shared across platforms by clearmake
|
||||
.NO_CONFIG_REC: ccimake
|
||||
|
||||
bootstrap:
|
||||
@if [ -d bootstrap ]; then exit 0; else set -x; mkdir bootstrap; fi
|
||||
$(MV) *.o imake bootstrap
|
||||
|
||||
relink:
|
||||
$(RM) imake
|
||||
$(MAKE) $(MFLAGS) imake
|
||||
|
||||
clean:
|
||||
$(RM) ccimake imake.o imake
|
||||
$(RM_CMD) \#*
|
||||
$(RM) -r Makefile.proto Makefile Makefile.dep bootstrap
|
||||
|
||||
depend:
|
||||
|
||||
imake.exe::
|
||||
@echo making imake with BOOTSTRAPCFLAGS=-DWIN32
|
||||
|
||||
imake.exe:: imake.obj
|
||||
cl -nologo imake.obj libc.lib kernel32.lib
|
||||
|
||||
imake.obj: imake.c
|
||||
cl -nologo -W2 -D__STDC__ -c -DWIN32 $(CFLAGS) imake.c
|
||||
|
||||
clean.Win32:
|
||||
if exist imake.exe del imake.exe
|
||||
if exist imake.obj del imake.obj
|
||||
42
cde/config/imake/ccimake.c
Normal file
42
cde/config/imake/ccimake.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/* $TOG: ccimake.c /main/16 1998/02/06 11:02:20 kaleb $ */
|
||||
/*
|
||||
|
||||
Copyright (c) 1993, 1994, 1998 The Open Group
|
||||
|
||||
All Rights Reserved.
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of the The Open Group shall not be
|
||||
used in advertising or otherwise to promote the sale, use or other dealings
|
||||
in this Software without prior written authorization from The Open Group .
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
* Warning: This file must be kept as simple as posible so that it can
|
||||
* compile without any special flags on all systems. Do not touch it unless
|
||||
* you *really* know what you're doing. Make changes in imakemdep.h, not here.
|
||||
*/
|
||||
|
||||
#define CCIMAKE /* only get imake_ccflags definitions */
|
||||
#include "imakemdep.h" /* things to set when porting imake */
|
||||
|
||||
#ifndef imake_ccflags
|
||||
#define imake_ccflags "-O"
|
||||
#endif
|
||||
|
||||
main()
|
||||
{
|
||||
write(1, imake_ccflags, sizeof(imake_ccflags) - 1);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
1584
cde/config/imake/imake.c
Normal file
1584
cde/config/imake/imake.c
Normal file
File diff suppressed because it is too large
Load Diff
250
cde/config/imake/imake.man
Normal file
250
cde/config/imake/imake.man
Normal file
@@ -0,0 +1,250 @@
|
||||
.\" $TOG: imake.man /main/30 1998/02/06 11:02:42 kaleb $
|
||||
.\" Copyright (c) 1993, 1994, 1998 The Open Group
|
||||
.\"
|
||||
.\" All Rights Reserved.
|
||||
.\"
|
||||
.\" The above copyright notice and this permission notice shall be included
|
||||
.\" in all copies or substantial portions of the Software.
|
||||
.\"
|
||||
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
.\" IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
.\" OTHER DEALINGS IN THE SOFTWARE.
|
||||
.\"
|
||||
.\" Except as contained in this notice, the name of The Open Group shall
|
||||
.\" not be used in advertising or otherwise to promote the sale, use or
|
||||
.\" other dealings in this Software without prior written authorization
|
||||
.\" from The Open Group.
|
||||
.TH IMAKE 1 "Release 6.1" "X Version 11"
|
||||
.SH NAME
|
||||
imake \- C preprocessor interface to the make utility
|
||||
.SH SYNOPSIS
|
||||
\fBimake\fP [ \fB\-D\fP\fIdefine\fP ] [ \fB\-I\fP\fIdir\fP ]
|
||||
[ \fB\-T\fP\fItemplate\fP ]
|
||||
[ \fB\-f\fP \fIfilename\fP ] [ \fB\-C\fP \fIfilename\fP ]
|
||||
[ \fB\-s\fP \fIfilename\fP ] [ \fB\-e\fP ]
|
||||
[ \fB\-v\fP ]
|
||||
.SH DESCRIPTION
|
||||
.I Imake
|
||||
is used to
|
||||
generate \fIMakefiles\fP from a template, a set of \fIcpp\fP macro functions,
|
||||
and a per-directory input file called an \fIImakefile\fP. This allows machine
|
||||
dependencies (such as compiler options, alternate command names, and special
|
||||
\fImake\fP rules) to be kept separate from the descriptions of the
|
||||
various items to be built.
|
||||
.SH OPTIONS
|
||||
The following command line options may be passed to \fIimake\fP:
|
||||
.TP 8
|
||||
.B \-D\fIdefine\fP
|
||||
This option is passed directly to \fIcpp\fP. It is typically used to set
|
||||
directory-specific variables. For example, the X Window System uses this
|
||||
flag to set \fITOPDIR\fP to the name of the directory containing the top
|
||||
of the core distribution and \fICURDIR\fP to the name of the current
|
||||
directory, relative to the top.
|
||||
.TP 8
|
||||
.B \-I\fIdirectory\fP
|
||||
This option is passed directly to \fIcpp\fP. It is typically used to
|
||||
indicate the directory in which the \fIimake\fP template and configuration
|
||||
files may be found.
|
||||
.TP 8
|
||||
.B \-T\fItemplate\fP
|
||||
This option specifies the name of the master template file (which is usually
|
||||
located in the directory specified with \fI\-I\fP) used by \fIcpp\fP.
|
||||
The default is \fIImake.tmpl\fP.
|
||||
.TP 8
|
||||
.B \-f \fIfilename\fP
|
||||
This option specifies the name of the per-directory input file. The default
|
||||
is \fIImakefile\fP.
|
||||
.TP 8
|
||||
.B \-C \fIfilename\fP
|
||||
This option specifies the name of the .c file that is constructed in the
|
||||
current directory. The default is \fIImakefile.c\fP.
|
||||
.TP 8
|
||||
.B \-s \fIfilename\fP
|
||||
This option specifies the name of the \fImake\fP description file to be
|
||||
generated but \fImake\fP should not be invoked.
|
||||
If the \fIfilename\fP is a dash (\-), the
|
||||
output is written to \fIstdout\fP. The default is to generate, but
|
||||
not execute, a \fIMakefile\fP.
|
||||
.TP 8
|
||||
.B \-e
|
||||
This option indicates the \fIimake\fP should execute the generated
|
||||
\fIMakefile\fP. The default is to leave this to the user.
|
||||
.TP 8
|
||||
.B \-v
|
||||
This option indicates that \fIimake\fP should print the \fIcpp\fP command line
|
||||
that it is using to generate the \fIMakefile\fP.
|
||||
.SH "HOW IT WORKS"
|
||||
\fIImake\fP invokes \fIcpp\fP with any \fI\-I\fP or \fI\-D\fP flags passed
|
||||
on the command line and passes the name of a file containing the
|
||||
following 3 lines:
|
||||
.sp
|
||||
.nf
|
||||
#define IMAKE_TEMPLATE "Imake.tmpl"
|
||||
#define INCLUDE_IMAKEFILE <Imakefile>
|
||||
#include IMAKE_TEMPLATE
|
||||
.fi
|
||||
.sp
|
||||
where \fIImake.tmpl\fP and \fIImakefile\fP may be overridden by the
|
||||
\fI\-T\fP and \fI\-f\fP command options, respectively.
|
||||
.PP
|
||||
The IMAKE_TEMPLATE typically
|
||||
reads in a file containing machine-dependent parameters
|
||||
(specified as \fIcpp\fP symbols), a site-specific parameters file,
|
||||
a file defining variables,
|
||||
a file
|
||||
containing \fIcpp\fP macro functions for generating \fImake\fP rules, and
|
||||
finally the \fIImakefile\fP (specified by INCLUDE_IMAKEFILE) in the current
|
||||
directory. The \fIImakefile\fP uses the macro functions to indicate what
|
||||
targets should be built; \fIimake\fP takes care of generating the appropriate
|
||||
rules.
|
||||
.PP
|
||||
.I Imake
|
||||
configuration files contain two types of variables, imake variables
|
||||
and make variables. The imake variables are interpreted by cpp when
|
||||
.I imake
|
||||
is run. By convention they are mixed case. The make variables are
|
||||
written into the
|
||||
.I Makefile
|
||||
for later interpretation by
|
||||
.I make.
|
||||
By convention make variables are upper case.
|
||||
.PP
|
||||
The rules file (usually named \fIImake.rules\fP in the configuration
|
||||
directory) contains a variety of \fIcpp\fP macro functions that are
|
||||
configured according to the current platform. \fIImake\fP replaces
|
||||
any occurrences of the string ``@@'' with a newline to allow macros that
|
||||
generate more than one line of \fImake\fP rules.
|
||||
For example, the macro
|
||||
.ta 1i 1.6i 5i
|
||||
.nf
|
||||
|
||||
#define program_target(program, objlist) @@\e
|
||||
program: objlist @@\e
|
||||
$(CC) \-o $@ objlist $(LDFLAGS)
|
||||
|
||||
.fi
|
||||
when called with
|
||||
.I "program_target(foo, foo1.o foo2.o)"
|
||||
will expand to
|
||||
.nf
|
||||
|
||||
foo: foo1.o foo2.o
|
||||
$(CC) \-o $@ foo1.o foo2.o $(LDFLAGS)
|
||||
|
||||
.fi
|
||||
.PP
|
||||
\fIImake\fP also replaces any occurrences of the word ``XCOMM'' with
|
||||
the character ``#'' to permit placing comments in the Makefile without
|
||||
causing ``invalid directive'' errors from the preprocessor.
|
||||
.PP
|
||||
Some complex \fIimake\fP macros require generated \fImake\fP variables
|
||||
local to each invocation of the macro, often because their value
|
||||
depends on parameters passed to the macro.
|
||||
Such variables can be created by using an \fIimake\fP variable
|
||||
of the form \fBXVARdef\fP\fIn\fP, where \fIn\fP is a single digit.
|
||||
A unique \fImake\fP variable will be substituted. Later occurrences
|
||||
of the variable \fBXVARuse\fP\fIn\fP will
|
||||
be replaced by the variable created by the corresponding
|
||||
\fBXVARdef\fP\fIn\fP.
|
||||
.PP
|
||||
On systems whose \fIcpp\fP reduces multiple tabs and spaces to a single
|
||||
space, \fIimake\fP attempts to put back any necessary tabs (\fImake\fP is
|
||||
very picky about the difference between tabs and spaces). For this reason,
|
||||
colons (:) in command lines must be preceded by a backslash (\\).
|
||||
.SH "USE WITH THE X WINDOW SYSTEM"
|
||||
The X Window System uses \fIimake\fP extensively, for both full builds within
|
||||
the source tree and external software. As mentioned above, two special
|
||||
variables, \fITOPDIR\fP and \fICURDIR,\fP are set to make referencing files
|
||||
using relative path names easier. For example, the following command is
|
||||
generated automatically to build the \fIMakefile\fP in the directory
|
||||
\fIlib/X/\fP (relative to the top of the sources):
|
||||
.sp
|
||||
.nf
|
||||
% ../.././config/imake \-I../.././config \\
|
||||
\-DTOPDIR=../../. \-DCURDIR=./lib/X
|
||||
.fi
|
||||
.sp
|
||||
When building X programs outside the source tree, a special symbol
|
||||
\fIUseInstalled\fP is defined and \fITOPDIR\fP and
|
||||
\fICURDIR\fP are omitted. If the configuration files have been
|
||||
properly installed, the script \fIxmkmf\fP(1) may be used.
|
||||
.SH "INPUT FILES"
|
||||
Here is a summary of the files read by
|
||||
.I imake
|
||||
as used by X.
|
||||
The indentation shows what files include what other files.
|
||||
.nf
|
||||
.sp
|
||||
.ta 3i
|
||||
Imake.tmpl generic variables
|
||||
site.def site-specific, BeforeVendorCF defined
|
||||
*.cf machine-specific
|
||||
*Lib.rules shared library rules
|
||||
site.def site-specific, AfterVendorCF defined
|
||||
Imake.rules rules
|
||||
Project.tmpl X-specific variables
|
||||
*Lib.tmpl shared library variables
|
||||
Imakefile
|
||||
Library.tmpl library rules
|
||||
Server.tmpl server rules
|
||||
Threads.tmpl multi-threaded rules
|
||||
.fi
|
||||
.LP
|
||||
Note that \fIsite.def\fP gets included twice, once before the
|
||||
\fI*.cf\fP file and once after. Although most site customizations
|
||||
should be specified after the \fI*.cf\fP file, some, such as the
|
||||
choice of compiler, need to be specified before, because other
|
||||
variable settings may depend on them.
|
||||
.LP
|
||||
The first time \fIsite.def\fP is included, the variable BeforeVendorCF
|
||||
is defined, and the second time, the variable AfterVendorCF is
|
||||
defined. All code in \fIsite.def\fP should be inside an #ifdef for
|
||||
one of these symbols.
|
||||
.SH FILES
|
||||
.ta 3i
|
||||
Imakefile.c temporary input file for cpp
|
||||
.br
|
||||
/tmp/Imf.XXXXXX temporary Makefile for -s
|
||||
.br
|
||||
/tmp/IIf.XXXXXX temporary Imakefile if specified Imakefile uses # comments
|
||||
.br
|
||||
/lib/cpp default C preprocessor
|
||||
.DT
|
||||
.SH "SEE ALSO"
|
||||
make(1), xmkmf(1)
|
||||
.br
|
||||
S. I. Feldman,
|
||||
.I
|
||||
Make \(em A Program for Maintaining Computer Programs
|
||||
.SH "ENVIRONMENT VARIABLES"
|
||||
The following environment variables may be set, however their use is not
|
||||
recommended as they introduce dependencies that are not readily apparent
|
||||
when \fIimake\fP is run:
|
||||
.TP 5
|
||||
.B IMAKEINCLUDE
|
||||
If defined, this specifies a ``\-I'' include argument to pass to the
|
||||
C preprocessor. E.g., ``\-I/usr/X11/config''.
|
||||
.TP 5
|
||||
.B IMAKECPP
|
||||
If defined, this should be a valid path to a preprocessor program.
|
||||
E.g., ``/usr/local/cpp''.
|
||||
By default,
|
||||
.I imake
|
||||
will use /lib/cpp.
|
||||
.TP 5
|
||||
.B IMAKEMAKE
|
||||
If defined, this should be a valid path to a make program,
|
||||
such as ``/usr/local/make''.
|
||||
By default,
|
||||
.I imake
|
||||
will use whatever
|
||||
.I make
|
||||
program is found using
|
||||
.I execvp(3).
|
||||
This variable is only used if the ``\-e'' option is specified.
|
||||
.SH "AUTHOR"
|
||||
Todd Brunhoff, Tektronix and MIT Project Athena; Jim Fulton, MIT X Consortium
|
||||
809
cde/config/imake/imakemdep.h
Normal file
809
cde/config/imake/imakemdep.h
Normal file
@@ -0,0 +1,809 @@
|
||||
/* $TOG: imakemdep.h /main/102 1998/02/06 11:02:26 kaleb $ */
|
||||
/*
|
||||
|
||||
Copyright (c) 1993, 1994, 1998 The Open Group
|
||||
|
||||
All Rights Reserved.
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
||||
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
Except as contained in this notice, the name of The Open Group shall not be
|
||||
used in advertising or otherwise to promote the sale, use or other dealings
|
||||
in this Software without prior written authorization from The Open Group.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* 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. In general you should *not* edit ccimake.c or imake.c!
|
||||
*/
|
||||
|
||||
#ifdef CCIMAKE
|
||||
/*
|
||||
* Step 1: imake_ccflags
|
||||
* 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.
|
||||
*/
|
||||
#ifdef hpux
|
||||
#ifdef hp9000s800
|
||||
#define imake_ccflags "-DSYSV"
|
||||
#else
|
||||
#define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(macII) || defined(_AUX_SOURCE)
|
||||
#define imake_ccflags "-DmacII -DSYSV"
|
||||
#endif
|
||||
|
||||
#ifdef stellar
|
||||
#define imake_ccflags "-DSYSV"
|
||||
#endif
|
||||
|
||||
#if defined(USL) || defined(__USLC__) || defined(Oki) || defined(NCR)
|
||||
#define imake_ccflags "-Xa -DSVR4"
|
||||
#endif
|
||||
|
||||
/* SCO may define __USLC__ so put this after the USL check */
|
||||
#if defined(M_UNIX) || defined(_SCO_DS)
|
||||
#ifdef imake_ccflags
|
||||
#undef imake_ccflags
|
||||
#endif
|
||||
#define imake_ccflags "-Dsco"
|
||||
#endif
|
||||
|
||||
#ifdef sony
|
||||
#if defined(SYSTYPE_SYSV) || defined(_SYSTYPE_SYSV)
|
||||
#define imake_ccflags "-DSVR4"
|
||||
#else
|
||||
#include <sys/param.h>
|
||||
#if NEWSOS < 41
|
||||
#define imake_ccflags "-Dbsd43 -DNOSTDHDRS"
|
||||
#else
|
||||
#if NEWSOS < 42
|
||||
#define imake_ccflags "-Dbsd43"
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _CRAY
|
||||
#define imake_ccflags "-DSYSV -DUSG"
|
||||
#endif
|
||||
|
||||
#if defined(_IBMR2) || defined(aix)
|
||||
#define imake_ccflags "-Daix -DSYSV"
|
||||
#endif
|
||||
|
||||
#ifdef Mips
|
||||
# if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
|
||||
# define imake_ccflags "-DBSD43"
|
||||
# else
|
||||
# define imake_ccflags "-DSYSV"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef is68k
|
||||
#define imake_ccflags "-Dluna -Duniosb"
|
||||
#endif
|
||||
|
||||
#ifdef SYSV386
|
||||
# ifdef SVR4
|
||||
# define imake_ccflags "-Xa -DSVR4"
|
||||
# else
|
||||
# define imake_ccflags "-DSYSV"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef SVR4
|
||||
# ifdef i386
|
||||
# define imake_ccflags "-Xa -DSVR4"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef SYSV
|
||||
# ifdef i386
|
||||
# define imake_ccflags "-DSYSV"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __convex__
|
||||
#define imake_ccflags "-fn -tm c1"
|
||||
#endif
|
||||
|
||||
#ifdef apollo
|
||||
#define imake_ccflags "-DX_NOT_POSIX"
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#if _MSC_VER < 1000
|
||||
#define imake_ccflags "-nologo -batch -D__STDC__"
|
||||
#else
|
||||
#define imake_ccflags "-nologo -D__STDC__"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef __uxp__
|
||||
#define imake_ccflags "-DSVR4 -DANSICPP"
|
||||
#endif
|
||||
|
||||
#ifdef __sxg__
|
||||
#define imake_ccflags "-DSYSV -DUSG -DNOSTDHDRS"
|
||||
#endif
|
||||
|
||||
#ifdef sequent
|
||||
#define imake_ccflags "-DX_NOT_STDC_ENV -DX_NOT_POSIX"
|
||||
#endif
|
||||
|
||||
#ifdef _SEQUENT_
|
||||
#define imake_ccflags "-DSYSV -DUSG"
|
||||
#endif
|
||||
|
||||
#if defined(SX) || defined(PC_UX)
|
||||
#define imake_ccflags "-DSYSV"
|
||||
#endif
|
||||
|
||||
#ifdef nec_ews_svr2
|
||||
#define imake_ccflags "-DUSG"
|
||||
#endif
|
||||
|
||||
#if defined(nec_ews_svr4) || defined(_nec_ews_svr4) || defined(_nec_up) || defined(_nec_ft)
|
||||
#define imake_ccflags "-DSVR4"
|
||||
#endif
|
||||
|
||||
#ifdef MACH
|
||||
#define imake_ccflags "-DNOSTDHDRS"
|
||||
#endif
|
||||
|
||||
/* this is for OS/2 under EMX. This won't work with DOS */
|
||||
#if defined(__EMX__)
|
||||
#define imake_ccflags "-DBSD43"
|
||||
#endif
|
||||
|
||||
#else /* not CCIMAKE */
|
||||
#ifndef MAKEDEPEND
|
||||
/*
|
||||
* Step 2: dup2
|
||||
* 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) && !defined(_SEQUENT_) && !defined(sco)
|
||||
#define dup2(fd1,fd2) ((fd1 == fd2) ? fd1 : (close(fd2), \
|
||||
fcntl(fd1, F_DUPFD, fd2)))
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* 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) || defined(WIN32) || defined(sco) || (defined(AMOEBA) && defined(CROSS_COMPILE))
|
||||
#define FIXUP_CPP_WHITESPACE
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
#define REMOVE_CPP_LEADSPACE
|
||||
#define INLINE_SYNTAX
|
||||
#define MAGIC_MAKE_VARS
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Step 4: USE_CC_E, DEFAULT_CC, DEFAULT_CPP
|
||||
* If you want to use cc -E instead of cpp, define USE_CC_E.
|
||||
* If use cc -E but want a different compiler, define DEFAULT_CC.
|
||||
* If the cpp you need is not in /lib/cpp, define DEFAULT_CPP.
|
||||
*/
|
||||
#ifdef hpux
|
||||
#define USE_CC_E
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
#define USE_CC_E
|
||||
#define DEFAULT_CC "cl"
|
||||
#endif
|
||||
#ifdef apollo
|
||||
#define DEFAULT_CPP "/usr/lib/cpp"
|
||||
#endif
|
||||
#if defined(_IBMR2) && !defined(DEFAULT_CPP)
|
||||
#define DEFAULT_CPP "/usr/ccs/lib/cpp"
|
||||
#endif
|
||||
#if defined(sun) && (defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__))
|
||||
#define DEFAULT_CPP "/usr/ccs/lib/cpp"
|
||||
#endif
|
||||
#ifdef __bsdi__
|
||||
#define DEFAULT_CPP "/usr/bin/cpp"
|
||||
#endif
|
||||
#ifdef __uxp__
|
||||
#define DEFAULT_CPP "/usr/ccs/lib/cpp"
|
||||
#endif
|
||||
#ifdef __sxg__
|
||||
#define DEFAULT_CPP "/usr/lib/cpp"
|
||||
#endif
|
||||
#ifdef _CRAY
|
||||
#define DEFAULT_CPP "/lib/pcpp"
|
||||
#endif
|
||||
#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
|
||||
#define DEFAULT_CPP "/usr/libexec/cpp"
|
||||
#endif
|
||||
#if defined(__sgi) && defined(__ANSI_CPP__)
|
||||
#define USE_CC_E
|
||||
#endif
|
||||
#ifdef MACH
|
||||
#define USE_CC_E
|
||||
#endif
|
||||
#ifdef __minix_vmd
|
||||
#define DEFAULT_CPP "/usr/lib/cpp"
|
||||
#endif
|
||||
#if defined(__EMX__)
|
||||
/* expects cpp in PATH */
|
||||
#define DEFAULT_CPP "cpp"
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Step 5: cpp_argv
|
||||
* The following table contains the flags that should be passed
|
||||
* 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 in Imake.tmpl when setting MacroFile.
|
||||
* b. Put this symbol in the definition of BootstrapCFlags in your
|
||||
* <platform>.cf file.
|
||||
* 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 symbol (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 program to exec */
|
||||
"-I.", /* add current directory to include path */
|
||||
#ifdef unix
|
||||
"-Uunix", /* remove unix symbol so that filename unix.c okay */
|
||||
#endif
|
||||
#if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(MACH)
|
||||
# ifdef __i386__
|
||||
"-D__i386__",
|
||||
# endif
|
||||
# ifdef __GNUC__
|
||||
"-traditional",
|
||||
# endif
|
||||
#endif
|
||||
#ifdef M4330
|
||||
"-DM4330", /* Tektronix */
|
||||
#endif
|
||||
#ifdef M4310
|
||||
"-DM4310", /* Tektronix */
|
||||
#endif
|
||||
#if defined(macII) || defined(_AUX_SOURCE)
|
||||
"-DmacII", /* Apple A/UX */
|
||||
#endif
|
||||
#if defined(USL) || defined(__USLC__)
|
||||
"-DUSL", /* USL */
|
||||
#endif
|
||||
#ifdef sony
|
||||
"-Dsony", /* Sony */
|
||||
#if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV) && NEWSOS < 42
|
||||
"-Dbsd43",
|
||||
#endif
|
||||
#endif
|
||||
#ifdef _IBMR2
|
||||
"-D_IBMR2", /* IBM RS-6000 (we ensured that aix is defined above */
|
||||
#ifndef aix
|
||||
#define aix /* allow BOOTSTRAPCFLAGS="-D_IBMR2" */
|
||||
#endif
|
||||
#endif /* _IBMR2 */
|
||||
#ifdef aix
|
||||
"-Daix", /* AIX instead of AOS */
|
||||
#ifndef ibm
|
||||
#define ibm /* allow BOOTSTRAPCFLAGS="-Daix" */
|
||||
#endif
|
||||
#endif /* aix */
|
||||
#ifdef ibm
|
||||
"-Dibm", /* IBM PS/2 and RT under both AOS and AIX */
|
||||
#endif
|
||||
#ifdef luna
|
||||
"-Dluna", /* OMRON luna 68K and 88K */
|
||||
#ifdef luna1
|
||||
"-Dluna1",
|
||||
#endif
|
||||
#ifdef luna88k /* need not on UniOS-Mach Vers. 1.13 */
|
||||
"-traditional", /* for some older version */
|
||||
#endif /* instead of "-DXCOMM=\\#" */
|
||||
#ifdef uniosb
|
||||
"-Duniosb",
|
||||
#endif
|
||||
#ifdef uniosu
|
||||
"-Duniosu",
|
||||
#endif
|
||||
#endif /* luna */
|
||||
#ifdef _CRAY /* Cray */
|
||||
"-Ucray",
|
||||
#endif
|
||||
#ifdef Mips
|
||||
"-DMips", /* Define and use Mips for Mips Co. OS/mach. */
|
||||
# if defined(SYSTYPE_BSD) || defined(BSD) || defined(BSD43)
|
||||
"-DBSD43", /* Mips RISCOS supports two environments */
|
||||
# else
|
||||
"-DSYSV", /* System V environment is the default */
|
||||
# endif
|
||||
#endif /* Mips */
|
||||
#ifdef MOTOROLA
|
||||
"-DMOTOROLA", /* Motorola Delta Systems */
|
||||
# ifdef SYSV
|
||||
"-DSYSV",
|
||||
# endif
|
||||
# ifdef SVR4
|
||||
"-DSVR4",
|
||||
# endif
|
||||
#endif /* MOTOROLA */
|
||||
#if defined(M_UNIX) || defined(sco)
|
||||
"-Dsco",
|
||||
# if defined(sco324)
|
||||
"-Dsco324",
|
||||
# endif
|
||||
#endif
|
||||
#ifdef i386
|
||||
"-Di386",
|
||||
# ifdef SVR4
|
||||
"-DSVR4",
|
||||
# endif
|
||||
# ifdef SYSV
|
||||
"-DSYSV",
|
||||
# ifdef ISC
|
||||
"-DISC",
|
||||
# ifdef ISC40
|
||||
"-DISC40", /* ISC 4.0 */
|
||||
# else
|
||||
# ifdef ISC202
|
||||
"-DISC202", /* ISC 2.0.2 */
|
||||
# else
|
||||
# ifdef ISC30
|
||||
"-DISC30", /* ISC 3.0 */
|
||||
# else
|
||||
"-DISC22", /* ISC 2.2.1 */
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# ifdef SCO
|
||||
"-DSCO",
|
||||
# ifdef SCO324
|
||||
"-DSCO324",
|
||||
# endif
|
||||
# endif
|
||||
# ifdef ESIX
|
||||
"-DESIX",
|
||||
# endif
|
||||
# ifdef ATT
|
||||
"-DATT",
|
||||
# endif
|
||||
# ifdef DELL
|
||||
"-DDELL",
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#ifdef SYSV386 /* System V/386 folks, obsolete */
|
||||
"-Di386",
|
||||
# ifdef SVR4
|
||||
"-DSVR4",
|
||||
# endif
|
||||
# ifdef SYSV
|
||||
"-DSYSV",
|
||||
# ifdef ISC
|
||||
"-DISC",
|
||||
# ifdef ISC40
|
||||
"-DISC40", /* ISC 4.0 */
|
||||
# else
|
||||
# ifdef ISC202
|
||||
"-DISC202", /* ISC 2.0.2 */
|
||||
# else
|
||||
# ifdef ISC30
|
||||
"-DISC30", /* ISC 3.0 */
|
||||
# else
|
||||
"-DISC22", /* ISC 2.2.1 */
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# ifdef SCO
|
||||
"-DSCO",
|
||||
# ifdef SCO324
|
||||
"-DSCO324",
|
||||
# endif
|
||||
# endif
|
||||
# ifdef ESIX
|
||||
"-DESIX",
|
||||
# endif
|
||||
# ifdef ATT
|
||||
"-DATT",
|
||||
# endif
|
||||
# ifdef DELL
|
||||
"-DDELL",
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#ifdef __osf__
|
||||
"-D__osf__",
|
||||
# ifdef __mips__
|
||||
"-D__mips__",
|
||||
# endif
|
||||
# ifdef __alpha
|
||||
"-D__alpha",
|
||||
# endif
|
||||
# ifdef __i386__
|
||||
"-D__i386__",
|
||||
# endif
|
||||
# ifdef __GNUC__
|
||||
"-traditional",
|
||||
# endif
|
||||
#endif
|
||||
#ifdef Oki
|
||||
"-DOki",
|
||||
#endif
|
||||
#ifdef sun
|
||||
#if defined(SVR4) || defined(__svr4__) || defined(__SVR4) || defined(__sol__)
|
||||
"-DSVR4",
|
||||
#endif
|
||||
#endif
|
||||
#ifdef WIN32
|
||||
"-DWIN32",
|
||||
"-nologo",
|
||||
#if _MSC_VER < 1000
|
||||
"-batch",
|
||||
#endif
|
||||
"-D__STDC__",
|
||||
#endif
|
||||
#ifdef NCR
|
||||
"-DNCR", /* NCR */
|
||||
#endif
|
||||
#ifdef linux
|
||||
"-traditional",
|
||||
"-Dlinux",
|
||||
#endif
|
||||
#ifdef __uxp__
|
||||
"-D__uxp__",
|
||||
#endif
|
||||
#ifdef __sxg__
|
||||
"-D__sxg__",
|
||||
#endif
|
||||
#ifdef nec_ews_svr2
|
||||
"-Dnec_ews_svr2",
|
||||
#endif
|
||||
#ifdef AMOEBA
|
||||
"-DAMOEBA",
|
||||
# ifdef CROSS_COMPILE
|
||||
"-DCROSS_COMPILE",
|
||||
# ifdef CROSS_i80386
|
||||
"-DCROSS_i80386",
|
||||
# endif
|
||||
# ifdef CROSS_sparc
|
||||
"-DCROSS_sparc",
|
||||
# endif
|
||||
# ifdef CROSS_mc68000
|
||||
"-DCROSS_mc68000",
|
||||
# endif
|
||||
# else
|
||||
# ifdef i80386
|
||||
"-Di80386",
|
||||
# endif
|
||||
# ifdef sparc
|
||||
"-Dsparc",
|
||||
# endif
|
||||
# ifdef mc68000
|
||||
"-Dmc68000",
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
#if defined(__sgi) && defined(__ANSI_CPP__)
|
||||
"-cckr",
|
||||
#endif
|
||||
#ifdef __minix_vmd
|
||||
"-Dminix",
|
||||
#endif
|
||||
|
||||
#if defined(__EMX__)
|
||||
"-traditional",
|
||||
"-Demxos2",
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* Step 6: DEFAULT_OS_MAJOR_REV, DEFAULT_OS_MINOR_REV, DEFAULT_OS_TEENY_REV,
|
||||
* and DEFAULT_OS_NAME.
|
||||
* If your systems provides a way to generate the default major,
|
||||
* minor, teeny, or system names at runtime add commands below.
|
||||
* The syntax of the _REV strings is 'f fmt' where 'f' is an argument
|
||||
* you would give to uname, and "fmt" is a scanf() format string.
|
||||
* Supported uname arguments are "snrvm", and if you specify multiple
|
||||
* arguments they will be separated by spaces. No more than 5 arguments
|
||||
* may be given. Unlike uname() order of arguments matters.
|
||||
*/
|
||||
#if defined(aix)
|
||||
/* uname -v returns "x" (e.g. "4"), and uname -r returns "y" (e.g. "1") */
|
||||
# define DEFAULT_OS_MAJOR_REV "v %[0-9]"
|
||||
# define DEFAULT_OS_MINOR_REV "r %[0-9]"
|
||||
/* No information available to generate default OSTeenyVersion value. */
|
||||
# define DEFAULT_OS_NAME "srvm %[^\n]"
|
||||
#elif defined(sun) || defined(sgi) || defined(ultrix) || defined(__uxp__) || defined(linux) || defined(sony)
|
||||
/* uname -r returns "x.y[.z]", e.g. "5.4" or "4.1.3" */
|
||||
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
|
||||
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
|
||||
# define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
|
||||
# define DEFAULT_OS_NAME "srvm %[^\n]"
|
||||
#elif defined(hpux)
|
||||
/* uname -r returns "W.x.yz", e.g. "B.10.01" */
|
||||
# define DEFAULT_OS_MAJOR_REV "r %*[^.].%[0-9]"
|
||||
# define DEFAULT_OS_MINOR_REV "r %*[^.].%*d.%1s"
|
||||
# define DEFAULT_OS_TEENY_REV "r %*[^.].%*d.%*c%[0-9]"
|
||||
# define DEFAULT_OS_NAME "srvm %[^\n]"
|
||||
#elif defined(USL) || defined(__USLC__)
|
||||
/* uname -v returns "x.yz" or "x.y.z", e.g. "2.02" or "2.1.2". */
|
||||
# define DEFAULT_OS_MAJOR_REV "v %[0-9]"
|
||||
# define DEFAULT_OS_MINOR_REV "v %*d.%1s"
|
||||
# define DEFAULT_OS_TEENY_REV "v %*d.%*c%[.0-9]"
|
||||
# define DEFAULT_OS_NAME "srvm %[^\n]"
|
||||
#elif defined(__osf__)
|
||||
/* uname -r returns "Wx.y", e.g. "V3.2" or "T4.0" */
|
||||
# define DEFAULT_OS_MAJOR_REV "r %*[^0-9]%[0-9]"
|
||||
# define DEFAULT_OS_MINOR_REV "r %*[^.].%[0-9]"
|
||||
# define DEFAULT_OS_NAME "srvm %[^\n]"
|
||||
#elif defined(__uxp__)
|
||||
/* NOTE: "x.y[.z]" above handles UXP/DF. This is a sample alternative. */
|
||||
/* uname -v returns "VxLy Yzzzzz ....", e.g. "V20L10 Y95021 Increment 5 ..." */
|
||||
# define DEFAULT_OS_MAJOR_REV "v V%[0-9]"
|
||||
# define DEFAULT_OS_MINOR_REV "v V%*dL%[0-9]"
|
||||
# define DEFAULT_OS_NAME "srvm %[^\n]"
|
||||
#elif defined(__FreeBSD__)
|
||||
/* NetBSD, OpenBSD, 386BSD, and BSD/OS too? */
|
||||
/* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */
|
||||
# define DEFAULT_OS_MAJOR_REV "r %[0-9]"
|
||||
# define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]"
|
||||
# define DEFAULT_OS_TEENY_REV "r %*d.%*d.%[0-9]"
|
||||
# define DEFAULT_OS_NAME "srm %[^\n]"
|
||||
#endif
|
||||
|
||||
#else /* else MAKEDEPEND */
|
||||
/*
|
||||
* Step 7: predefs
|
||||
* 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[] = {
|
||||
#ifdef apollo
|
||||
{"apollo", "1"},
|
||||
#endif
|
||||
#ifdef ibm032
|
||||
{"ibm032", "1"},
|
||||
#endif
|
||||
#ifdef ibm
|
||||
{"ibm", "1"},
|
||||
#endif
|
||||
#ifdef aix
|
||||
{"aix", "1"},
|
||||
#endif
|
||||
#ifdef sun
|
||||
{"sun", "1"},
|
||||
#endif
|
||||
#ifdef sun2
|
||||
{"sun2", "1"},
|
||||
#endif
|
||||
#ifdef sun3
|
||||
{"sun3", "1"},
|
||||
#endif
|
||||
#ifdef sun4
|
||||
{"sun4", "1"},
|
||||
#endif
|
||||
#ifdef sparc
|
||||
{"sparc", "1"},
|
||||
#endif
|
||||
#ifdef __sparc__
|
||||
{"__sparc__", "1"},
|
||||
#endif
|
||||
#ifdef hpux
|
||||
{"hpux", "1"},
|
||||
#endif
|
||||
#ifdef __hpux
|
||||
{"__hpux", "1"},
|
||||
#endif
|
||||
#ifdef __hp9000s800
|
||||
{"__hp9000s800", "1"},
|
||||
#endif
|
||||
#ifdef __hp9000s700
|
||||
{"__hp9000s700", "1"},
|
||||
#endif
|
||||
#ifdef vax
|
||||
{"vax", "1"},
|
||||
#endif
|
||||
#ifdef VMS
|
||||
{"VMS", "1"},
|
||||
#endif
|
||||
#ifdef cray
|
||||
{"cray", "1"},
|
||||
#endif
|
||||
#ifdef CRAY
|
||||
{"CRAY", "1"},
|
||||
#endif
|
||||
#ifdef _CRAY
|
||||
{"_CRAY", "1"},
|
||||
#endif
|
||||
#ifdef att
|
||||
{"att", "1"},
|
||||
#endif
|
||||
#ifdef mips
|
||||
{"mips", "1"},
|
||||
#endif
|
||||
#ifdef __mips__
|
||||
{"__mips__", "1"},
|
||||
#endif
|
||||
#ifdef ultrix
|
||||
{"ultrix", "1"},
|
||||
#endif
|
||||
#ifdef stellar
|
||||
{"stellar", "1"},
|
||||
#endif
|
||||
#ifdef mc68000
|
||||
{"mc68000", "1"},
|
||||
#endif
|
||||
#ifdef mc68020
|
||||
{"mc68020", "1"},
|
||||
#endif
|
||||
#ifdef __GNUC__
|
||||
{"__GNUC__", "1"},
|
||||
#endif
|
||||
#if __STDC__
|
||||
{"__STDC__", "1"},
|
||||
#endif
|
||||
#ifdef __HIGHC__
|
||||
{"__HIGHC__", "1"},
|
||||
#endif
|
||||
#ifdef CMU
|
||||
{"CMU", "1"},
|
||||
#endif
|
||||
#ifdef luna
|
||||
{"luna", "1"},
|
||||
#ifdef luna1
|
||||
{"luna1", "1"},
|
||||
#endif
|
||||
#ifdef luna2
|
||||
{"luna2", "1"},
|
||||
#endif
|
||||
#ifdef luna88k
|
||||
{"luna88k", "1"},
|
||||
#endif
|
||||
#ifdef uniosb
|
||||
{"uniosb", "1"},
|
||||
#endif
|
||||
#ifdef uniosu
|
||||
{"uniosu", "1"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef ieeep754
|
||||
{"ieeep754", "1"},
|
||||
#endif
|
||||
#ifdef is68k
|
||||
{"is68k", "1"},
|
||||
#endif
|
||||
#ifdef m68k
|
||||
{"m68k", "1"},
|
||||
#endif
|
||||
#ifdef m88k
|
||||
{"m88k", "1"},
|
||||
#endif
|
||||
#ifdef __m88k__
|
||||
{"__m88k__", "1"},
|
||||
#endif
|
||||
#ifdef bsd43
|
||||
{"bsd43", "1"},
|
||||
#endif
|
||||
#ifdef hcx
|
||||
{"hcx", "1"},
|
||||
#endif
|
||||
#ifdef sony
|
||||
{"sony", "1"},
|
||||
#ifdef SYSTYPE_SYSV
|
||||
{"SYSTYPE_SYSV", "1"},
|
||||
#endif
|
||||
#ifdef _SYSTYPE_SYSV
|
||||
{"_SYSTYPE_SYSV", "1"},
|
||||
#endif
|
||||
#endif
|
||||
#ifdef __OSF__
|
||||
{"__OSF__", "1"},
|
||||
#endif
|
||||
#ifdef __osf__
|
||||
{"__osf__", "1"},
|
||||
#endif
|
||||
#ifdef __alpha
|
||||
{"__alpha", "1"},
|
||||
#endif
|
||||
#ifdef __DECC
|
||||
{"__DECC", "1"},
|
||||
#endif
|
||||
#ifdef __decc
|
||||
{"__decc", "1"},
|
||||
#endif
|
||||
#ifdef __unix__
|
||||
{"__unix__", "1"},
|
||||
#endif
|
||||
#ifdef __uxp__
|
||||
{"__uxp__", "1"},
|
||||
#endif
|
||||
#ifdef __sxg__
|
||||
{"__sxg__", "1"},
|
||||
#endif
|
||||
#ifdef _SEQUENT_
|
||||
{"_SEQUENT_", "1"},
|
||||
{"__STDC__", "1"},
|
||||
#endif
|
||||
#ifdef __bsdi__
|
||||
{"__bsdi__", "1"},
|
||||
#endif
|
||||
#ifdef nec_ews_svr2
|
||||
{"nec_ews_svr2", "1"},
|
||||
#endif
|
||||
#ifdef nec_ews_svr4
|
||||
{"nec_ews_svr4", "1"},
|
||||
#endif
|
||||
#ifdef _nec_ews_svr4
|
||||
{"_nec_ews_svr4", "1"},
|
||||
#endif
|
||||
#ifdef _nec_up
|
||||
{"_nec_up", "1"},
|
||||
#endif
|
||||
#ifdef SX
|
||||
{"SX", "1"},
|
||||
#endif
|
||||
#ifdef nec
|
||||
{"nec", "1"},
|
||||
#endif
|
||||
#ifdef _nec_ft
|
||||
{"_nec_ft", "1"},
|
||||
#endif
|
||||
#ifdef PC_UX
|
||||
{"PC_UX", "1"},
|
||||
#endif
|
||||
#ifdef sgi
|
||||
{"sgi", "1"},
|
||||
#endif
|
||||
#ifdef __sgi
|
||||
{"__sgi", "1"},
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
{"__FreeBSD__", "1"},
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
{"__OpenBSD__", "1"},
|
||||
#endif
|
||||
#ifdef __NetBSD__
|
||||
{"__NetBSD__", "1"},
|
||||
#endif
|
||||
#ifdef __EMX__
|
||||
{"__EMX__", "1"},
|
||||
#endif
|
||||
/* add any additional symbols before this line */
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
#endif /* MAKEDEPEND */
|
||||
#endif /* CCIMAKE */
|
||||
Reference in New Issue
Block a user