X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=3a_asm%2FMakefile;h=2f1c87ec36568369d52821b015c77d916e0ccb48;hb=b3f109c2f4edf52bc4071f9f8d71d868fb117c00;hp=c38230d22d8586cb7f3e842c89537955d6700afe;hpb=7c3fe14158249ed8068a42d3dfc9cd7b4b539b82;p=calu.git diff --git a/3a_asm/Makefile b/3a_asm/Makefile index c38230d..2f1c87e 100644 --- a/3a_asm/Makefile +++ b/3a_asm/Makefile @@ -1,11 +1,18 @@ SHELL := zsh all: - @ghc --make Main.hs -o dtas + @ghc --make Main.hs -O0 -o dtas + @strip dtas .PHONY: clean test clean: - rm -Rf **/**.o **/**.hi dtas + -rm -Rf **/**.o **/**.hi dtas -test: all - cat ../2_isa/src/sum.s && echo '==== here comes the DT ASM output ====' && cat ../2_isa/src/sum.s | ./dtas +TESTFILES := $(shell ls ../3_test/*.s) $(shell ls ../2_isa/src/*.s) +test: all $(TESTFILES:.s=.out) + +%.out: %.s + @echo "=== testing file $<" + @cat $< + @echo "=== here comes the DT ASM output ===" + @./dtas < $<