5 COMET2 = ../../../comet2
10 ASFILE=../../../as/$(UNITNAME).casl
17 @echo -n "$(UNITNAME): Test " >$@
18 @if test ! -s $^; then \
19 echo -n "Success " >>$@; \
21 echo -n "Failure " >>$@; \
23 @echo `date +"%F %T"` >>$@
26 .PHPNY: all check ocheck prepare oprepare testclean otestclean orgclean oorgclean
27 check: testclean logadd
28 ocheck: otestclean ologadd
30 prepare: orgclean testclean 0.txt
31 oprepare: oorgclean otestclean 0.o 0.o.txt
37 @rm -f 1.txt diff.txt report.txt
39 @rm -f 1.o 1.o.txt diff.o.txt report.o.txt
40 0.txt 1.txt: $(CASL2) $(ASFILE) $(INFILE)
41 @-$(CASL2) $(CASL2FLAG) $(ASFILE) $(IN) >res.txt 2>err.txt; \
42 cat res.txt err.txt >$@; \
45 @-diff 0.txt 1.txt >$@ 2>&1
50 0.o 1.o: $(CASL2) $(ASFILE)
51 @-$(CASL2) -o $@ $(ASFILE)
52 0.o.txt: $(COMET2) 0.o
53 @-$(COMET2) $(COMET2FLAG) 0.o >0.o.txt
54 1.o.txt: $(COMET2) 1.o
55 @-$(COMET2) $(COMET2FLAG) 1.o >1.o.txt
57 @-diff 0.o.txt 1.o.txt >>$@ 2>&1
58 report.o.txt: diff.o.txt