From 0bd2b17aa21deb9456b392fd239bcffbdc5bccff Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Thu, 22 Apr 2010 16:08:26 +0200 Subject: [PATCH] codea: ss09 skripte angepasst --- codea/Makefile | 5 ++++- codea/testit/test | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/codea/Makefile b/codea/Makefile index 840aa1b..1553b6b 100644 --- a/codea/Makefile +++ b/codea/Makefile @@ -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 diff --git a/codea/testit/test b/codea/testit/test index ab7f102..dc5e893 100755 --- a/codea/testit/test +++ b/codea/testit/test @@ -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 -- 2.25.1