--- capa/capa51/pProj/try.sh 1999/09/28 21:26:20 1.1.1.1 +++ capa/capa51/pProj/try.sh 2000/02/09 22:10:24 1.4 @@ -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/yacc" +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" @@ -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" @@ -174,7 +186,7 @@ yaccCAPAdbug() formulaParser() { - echo "YACC -p fml_ -d capaFormula.y" + echo "${YACC} -p fml_ -d capaFormula.y" ${YACC} -b fma -p fml_ -d capaFormula.y echo "MV fma.tab.c capaFormulaParser.c" @@ -421,7 +433,7 @@ for i in $* ; do lexCAPAdmalloc ;; *L) -## lexCAPA + lexCAPA ## createCAPAlib ;; *X) @@ -429,10 +441,11 @@ for i in $* ; do ## createCAPAlib ;; *P) -## yaccCAPAdbug -## createCAPAlib + yaccCAPAdbug + createCAPAlib ;; *YD) + echo "Hi There" yaccCAPAdmalloc ;; *Y) @@ -483,10 +496,15 @@ for i in $* ; do *F|*f) compileFormulaTest ;; + *U|*u) + compileUnits + ;; + *lib|*Lib) + createCAPAlib + ;; esac done - echo " " exit 0