diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-02-25 20:42:19 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:38:07 +0200 |
commit | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (patch) | |
tree | a5d9c84ba2661029ddb2223dacd50529a361c3d5 /unproto/acc.sh | |
parent | f8de35da65c5d93bb733073cf40da154bc1c0748 (diff) | |
parent | 9696d7b0e1f3a1b0f5fd4a0428eb75afe8ad4ed6 (diff) | |
download | dev86-4c36e9a0c125ccfff37aa440dab2cf58c4152fff.tar.gz |
Import Dev86src-0.0.11.tar.gzv0.0.11
Diffstat (limited to 'unproto/acc.sh')
-rw-r--r-- | unproto/acc.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/unproto/acc.sh b/unproto/acc.sh new file mode 100644 index 0000000..124e700 --- /dev/null +++ b/unproto/acc.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +# @(#) acc.sh 1.1 93/06/18 22:29:42 +# +# Script to emulate most of an ANSI C compiler with a traditional UNIX +# C compiler. + +# INCDIR should be the directory with auxiliary include files from the +# unproto source distribution (stdarg.h, stdlib.h, stddef.h, and other +# stuff that is missing from your compilation environment). With Ultrix +# 4.[0-2] you need unproto's stdarg.h even though the system provides +# one. +# +INCDIR=. + +# CPPDIR should be the directory with the unprototypeing cpp filter +# (preferably the version with the PIPE_THROUGH_CPP feature). +# +CPPDIR=. + +# DEFINES: you will want to define volatile and const, and maybe even +# __STDC__. +# +DEFINES="-Dvolatile= -Dconst= -D__STDC__" + +# Possible problem: INCDIR should be listed after the user-specified -I +# command-line options, not before them as we do here. This is a problem +# only if you attempt to redefine system libraries. +# +# Choose one of the commands below that is appropriate for your system. +# +exec cc -Qpath ${CPPDIR} -I${INCDIR} ${DEFINES} "$@" # SunOS 4.x +exec cc -tp -h${CPPDIR} -B -I${INCDIR} ${DEFINES} "$@" # Ultrix 4.2 +exec cc -Yp,${CPPDIR} -I${INCDIR} ${DEFINES} "$@" # M88 SysV.3 +exec cc -B${CPPDIR}/ -tp -I${INCDIR} ${DEFINES} "$@" # System V.2 |