projects
/
uebersetzerbau-ss10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
codea: offizielles testscript ein wenig modifiziert
[uebersetzerbau-ss10.git]
/
codea
/
Makefile
diff --git
a/codea/Makefile
b/codea/Makefile
index 1553b6b589eb3fa244c80ea5d4db3efab1434d52..57559f644ad01683434316f5583a44ee2c2ceabc 100644
(file)
--- a/
codea/Makefile
+++ b/
codea/Makefile
@@
-1,7
+1,7
@@
SHELL := bash
NAME := codea
SHELL := bash
NAME := codea
-CFLAGS := -ansi -pedantic -D_GNU_SOURCE
-OBJS := scanner.o parser.o symtable.o code.o
+CFLAGS := -ansi -pedantic -D_GNU_SOURCE
-g
+OBJS := scanner.o parser.o symtable.o code.o
chelper.o tree.o
all: $(NAME)
all: $(NAME)
@@
-13,11
+13,14
@@
scanner.c: oxout.l
@echo " FLEX $<"
@flex -o$@ $<
@echo " FLEX $<"
@flex -o$@ $<
-%.o: %.c parser.h symtable.h
+#dirty deps ;)
+%.o: %.c parser.h symtable.h chelper.h tree.h
@echo " CC $<"
@echo " CC $<"
+ @cp $< tmp.c
@gcc -c $(CFLAGS) $< #-Wall
@gcc -c $(CFLAGS) $< #-Wall
+ @rm tmp.c
-parser.c: oxout.y
+parser.c: oxout.y
chelper.h tree.h
@echo " YACC $<"
@yacc -t -v -d $< -o $@
@echo " YACC $<"
@yacc -t -v -d $< -o $@
@@
-27,7
+30,7
@@
oxout.y oxout.l: parser.y scanner.lex
@echo " OX $^"
@ox $^
@echo " OX $^"
@ox $^
-%.c: %.bfe
+%.c: %.bfe
chelper.h tree.h
@echo " IBURG $<"
@bfe < $< | iburg > $@
@echo " IBURG $<"
@bfe < $< | iburg > $@
@@
-36,9
+39,7
@@
clean:
rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c
1test:
rm -f $(NAME) $(OBJS) scanner.c parser.{h,c,output} oxout.{y,l,h} code.c
1test:
- @echo " CC callingconvention.c"
- @gcc -c -fomit-frame-pointer -fno-defer-pop testit/callingconvention.c -o testit/callingconvention.o
- @./testit/test
+ ./modtest
-
2
test:
+
lva
test:
/usr/ftp/pub/ublu/test/$(NAME)/test 2>&1
/usr/ftp/pub/ublu/test/$(NAME)/test 2>&1