version 1.3, 1999/10/13 20:05:00
|
version 1.4, 2000/02/09 22:10:24
|
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/byacc" |
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 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 484 for i in $* ; do
|
Line 496 for i in $* ; do
|
*F|*f) |
*F|*f) |
compileFormulaTest |
compileFormulaTest |
;; |
;; |
|
*U|*u) |
|
compileUnits |
|
;; |
|
*lib|*Lib) |
|
createCAPAlib |
|
;; |
esac |
esac |
done |
done |
|
|
|
|
echo " " |
echo " " |
exit 0 |
exit 0 |
|
|