codea: ss09 skripte angepasst
authorBernhard Urban <lewurm@gmail.com>
Thu, 22 Apr 2010 14:08:26 +0000 (16:08 +0200)
committerBernhard Urban <lewurm@gmail.com>
Thu, 22 Apr 2010 14:08:26 +0000 (16:08 +0200)
codea/Makefile
codea/testit/test

index 840aa1be9fe844a8a2e5f98795c253e208888df0..1553b6b589eb3fa244c80ea5d4db3efab1434d52 100644 (file)
@@ -35,7 +35,10 @@ oxout.y oxout.l: parser.y scanner.lex
 clean:
        rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c
 
-1test: 2test
+1test:
+       @echo "  CC      callingconvention.c"
+       @gcc -c -fomit-frame-pointer -fno-defer-pop testit/callingconvention.c -o testit/callingconvention.o
+       @./testit/test
 
 2test:
        /usr/ftp/pub/ublu/test/$(NAME)/test 2>&1
index ab7f102368f12784984a1a84513ba18e5e74b8ae..dc5e89398947dd13289ed3a2d2814252c910f4de 100755 (executable)
@@ -31,7 +31,7 @@ then
        exit 1
 fi
 let prgnum=0
-for i in $LOC/*.0 $LOC2/*.0
+for i in $LOC2/*.0
 do
        if [ -f $i ]; then
            let prgnum=prgnum+1
@@ -61,7 +61,7 @@ do
                exit 1
            else
                echo "Übersetze und linke das Testprogramm:"
-               if cc -g -I. -DCALL=\"$CALLFILE\" $LOC/testmain.c $LOC/callingconvention.o $RESFILE.s; then
+               if cc -g -I. -DCALL=\"$CALLFILE\" ~/abgabe/codea/testit/testmain.c ~/abgabe/codea/testit/callingconvention.o $RESFILE.s; then
                    echo
                    echo "Rufe folgendes Codefragment auf:"
                    cat $CALLFILE
@@ -114,7 +114,7 @@ do
        fi
 done
 
-for i in $LOC/*.[123] $LOC2/*.[123]
+for i in $LOC2/*.[123]
 do
        if [ -f $i ]; then
        let prgnum=prgnum+1