version 1.1.1.1, 1999/09/28 21:26:20
|
version 1.5, 2000/02/22 18:19:02
|
Line 6 TEST_DIR=testing7
|
Line 6 TEST_DIR=testing7
|
CC="cc" # -DDMALLOC -DDMALLOC_FUNC_CHECK" |
CC="cc" # -DDMALLOC -DDMALLOC_FUNC_CHECK" |
|
|
#FLEX="/usr/user1/capadvt/BIN/flex -Cfa -s" |
#FLEX="/usr/user1/capadvt/BIN/flex -Cfa -s" |
FLEX="flex -Cfa -s" |
#FLEX="flex -Cfa -s" |
|
FLEX="/usr/user1/capadvt/BIN/flex -Cfa -s" |
#YACC="/usr/bin/byacc" |
#YACC="/usr/bin/byacc" |
YACC="/usr/bin/yacc" |
YACC="/usr/user1/capadvt/BIN/bison" |
MV="mv" |
MV="mv" |
|
|
|
|
Line 69 fi
|
Line 70 fi
|
# echo "ONE: $1" |
# echo "ONE: $1" |
# echo "TWO: $2" |
# echo "TWO: $2" |
|
|
|
compileUnits() |
|
{ |
|
|
|
ofile="${ARCH}/capaUnit.o" |
|
cfile="capaUnit.c" |
|
cmd="${CC} $CCFLAG -c $cfile -o $ofile" |
|
echo $cmd |
|
$cmd |
|
} |
|
|
lexCAPA() |
lexCAPA() |
{ |
{ |
echo "${FLEX} capaLexerDef.flex" |
echo "${FLEX} capaLexerDef.flex" |
Line 101 lexCAPAdmalloc()
|
Line 112 lexCAPAdmalloc()
|
$cmd |
$cmd |
} |
} |
|
|
lexCAPAdbug() |
lexdbug() |
{ |
{ |
echo "${FLEX} capaLexerDef.flex" |
echo "${FLEX} capaLexerDef.flex" |
# |
# |
Line 123 yaccCAPA()
|
Line 134 yaccCAPA()
|
# -ocapaParserFun.c" |
# -ocapaParserFun.c" |
# |
# |
${YACC} -d capaGrammarDef.y |
${YACC} -d capaGrammarDef.y |
echo "mv y.tab.c capaParserFun.c" |
# mv y.tab.c capaParserFun.c |
mv y.tab.c capaParserFun.c |
echo "mv capaGrammarDef.tab.c capaParserFun.c" |
|
mv capaGrammarDef.tab.c capaParserFun.c |
|
|
ofile="${ARCH}/capaParserFun.o" |
ofile="${ARCH}/capaParserFun.o" |
cfile="capaParserFun.c" |
cfile="capaParserFun.c" |
Line 149 yaccCAPAdmalloc()
|
Line 161 yaccCAPAdmalloc()
|
$cmd |
$cmd |
} |
} |
|
|
yaccCAPAdbug() |
yaccdbug() |
{ |
{ |
echo "${YACC} capaGrammarDef.y -ocapaParserFun.c" |
echo "${YACC} capaGrammarDef.y -ocapaParserFun.c" |
# |
# |
Line 157 yaccCAPAdbug()
|
Line 169 yaccCAPAdbug()
|
|
|
#-ocapaParserFun.c |
#-ocapaParserFun.c |
|
|
echo "mv y.tab.c capaParserFun.c" |
# echo "mv y.tab.c capaParserFun.c" |
# |
# mv y.tab.c capaParserFun.c |
mv y.tab.c capaParserFun.c |
# echo "mv y.tab.h capaToken.h" |
|
# mv y.tab.h capaToken.h |
|
|
echo "mv y.tab.h capaToken.h" |
echo "mv capaGrammarDef.tab.c capaParserFun.c" |
mv y.tab.h capaToken.h |
mv capaGrammarDef.tab.c capaParserFun.c |
|
|
ofile="${ARCH}/capaParserFun.o" |
ofile="${ARCH}/capaParserFun.o" |
cfile="capaParserFun.c" |
cfile="capaParserFun.c" |
Line 174 yaccCAPAdbug()
|
Line 187 yaccCAPAdbug()
|
formulaParser() |
formulaParser() |
{ |
{ |
|
|
echo "YACC -p fml_ -d capaFormula.y" |
echo "${YACC} -p fml_ -d capaFormula.y" |
${YACC} -b fma -p fml_ -d capaFormula.y |
${YACC} -b fma -p fml_ -d capaFormula.y |
|
|
echo "MV fma.tab.c capaFormulaParser.c" |
echo "MV fma.tab.c capaFormulaParser.c" |
Line 308 CAPAParserUtilsdbug()
|
Line 321 CAPAParserUtilsdbug()
|
$cmd |
$cmd |
} |
} |
|
|
|
Ranlib() |
|
{ |
|
ofile="${ARCH}/ranlib.o" |
|
cfile="ranlib.c" |
|
cmd="${CC} $CCFLAG -c $cfile -o $ofile" |
|
echo $cmd |
|
$cmd |
|
} |
|
|
CAPAParserUtils() |
CAPAParserUtils() |
{ |
{ |
ofile="${ARCH}/capaParserUtils.o" |
ofile="${ARCH}/capaParserUtils.o" |
Line 415 for i in $* ; do
|
Line 437 for i in $* ; do
|
case "$i" in |
case "$i" in |
*FP) |
*FP) |
formulaParser |
formulaParser |
createCAPAlib |
|
;; |
;; |
*LD) |
*LD) |
lexCAPAdmalloc |
lexCAPAdmalloc |
;; |
;; |
*L) |
*X|*x) |
## lexCAPA |
lexdbug |
## createCAPAlib |
|
;; |
|
*X) |
|
## lexCAPAdbug |
|
## createCAPAlib |
|
;; |
|
*P) |
|
## yaccCAPAdbug |
|
## createCAPAlib |
|
;; |
;; |
*YD) |
*L|*l) |
yaccCAPAdmalloc |
lexCAPA |
;; |
;; |
*Y) |
*P|*p) |
|
yaccdbug |
|
;; |
|
*Y|*y) |
yaccCAPA |
yaccCAPA |
## createCAPAlib |
;; |
|
*R|*r) |
|
Ranlib |
;; |
;; |
*PD) |
*PD) |
CAPAParserUtilsdbug |
CAPAParserUtilsdbug |
;; |
;; |
*PU) |
*PU|*pu) |
CAPAParserUtils |
CAPAParserUtils |
CAPAFunction |
|
;; |
;; |
*SS) |
*SS) |
symboldbug |
symboldbug |
Line 457 for i in $* ; do
|
Line 473 for i in $* ; do
|
;; |
;; |
*D) |
*D) |
formulaDbug |
formulaDbug |
createCAPAlib |
|
;; |
|
esac |
|
done |
|
|
|
## createCAPAlib |
|
|
|
for i in $* ; do |
|
case "$i" in |
|
*LD|*YD) |
|
createCAPAlib |
|
compileParseTestDmalloc |
|
;; |
;; |
*L|*X) |
*F|*f) |
compileParseTest |
CAPAFunction |
;; |
;; |
*PU|*Y|*SS|*DS|*AS) |
*lib|*Lib) |
createCAPAlib |
createCAPAlib |
compileParseTest |
|
;; |
|
*O|*o) |
|
compileLoginTest |
|
;; |
;; |
*F|*f) |
*PT|*pt) |
compileFormulaTest |
compileParseTest |
;; |
;; |
esac |
esac |
done |
done |
|
|
|
|
echo " " |
|
exit 0 |
exit 0 |
|
|