--- capa/capa51/pProj/try.sh 1999/10/13 18:45:28 1.2 +++ capa/capa51/pProj/try.sh 2000/02/22 18:19:02 1.5 @@ -6,9 +6,10 @@ TEST_DIR=testing7 CC="cc" # -DDMALLOC -DDMALLOC_FUNC_CHECK" #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/user1/capadvt/BIN/bison" MV="mv" @@ -69,6 +70,16 @@ fi # echo "ONE: $1" # echo "TWO: $2" +compileUnits() +{ + + ofile="${ARCH}/capaUnit.o" + cfile="capaUnit.c" + cmd="${CC} $CCFLAG -c $cfile -o $ofile" + echo $cmd + $cmd +} + lexCAPA() { echo "${FLEX} capaLexerDef.flex" @@ -101,7 +112,7 @@ lexCAPAdmalloc() $cmd } -lexCAPAdbug() +lexdbug() { echo "${FLEX} capaLexerDef.flex" # @@ -123,8 +134,9 @@ yaccCAPA() # -ocapaParserFun.c" # ${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" cfile="capaParserFun.c" @@ -149,7 +161,7 @@ yaccCAPAdmalloc() $cmd } -yaccCAPAdbug() +yaccdbug() { echo "${YACC} capaGrammarDef.y -ocapaParserFun.c" # @@ -157,12 +169,13 @@ yaccCAPAdbug() #-ocapaParserFun.c - echo "mv y.tab.c capaParserFun.c" -# - mv y.tab.c capaParserFun.c +# echo "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" - mv y.tab.h capaToken.h + echo "mv capaGrammarDef.tab.c capaParserFun.c" + mv capaGrammarDef.tab.c capaParserFun.c ofile="${ARCH}/capaParserFun.o" cfile="capaParserFun.c" @@ -308,6 +321,15 @@ CAPAParserUtilsdbug() $cmd } +Ranlib() +{ + ofile="${ARCH}/ranlib.o" + cfile="ranlib.c" + cmd="${CC} $CCFLAG -c $cfile -o $ofile" + echo $cmd + $cmd +} + CAPAParserUtils() { ofile="${ARCH}/capaParserUtils.o" @@ -415,36 +437,30 @@ for i in $* ; do case "$i" in *FP) formulaParser - createCAPAlib ;; *LD) lexCAPAdmalloc ;; - *L) -## lexCAPA -## createCAPAlib - ;; - *X) -## lexCAPAdbug -## createCAPAlib - ;; - *P) -## yaccCAPAdbug -## createCAPAlib + *X|*x) + lexdbug + ;; + *L|*l) + lexCAPA ;; - *YD) - yaccCAPAdmalloc + *P|*p) + yaccdbug ;; - *Y) + *Y|*y) yaccCAPA -## createCAPAlib + ;; + *R|*r) + Ranlib ;; *PD) CAPAParserUtilsdbug ;; - *PU) + *PU|*pu) CAPAParserUtils - CAPAFunction ;; *SS) symboldbug @@ -457,36 +473,18 @@ for i in $* ; do ;; *D) formulaDbug - createCAPAlib ;; - esac -done - -## createCAPAlib - -for i in $* ; do - case "$i" in - *LD|*YD) - createCAPAlib - compileParseTestDmalloc - ;; - *L|*X) - compileParseTest + *F|*f) + CAPAFunction ;; - *PU|*Y|*SS|*DS|*AS) + *lib|*Lib) createCAPAlib - compileParseTest ;; - *O|*o) - compileLoginTest - ;; - *F|*f) - compileFormulaTest + *PT|*pt) + compileParseTest ;; esac done - -echo " " exit 0