X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=3a_asm%2FMakefile;h=2f1c87ec36568369d52821b015c77d916e0ccb48;hb=d4a0ea68530da911bc41c44b24d244c7dc198190;hp=c98157a25ccc4c8ddb31da7e88fa31dfb0941ec7;hpb=59404aef0c1d2a3de1525d316a2e108efd43a75d;p=calu.git diff --git a/3a_asm/Makefile b/3a_asm/Makefile index c98157a..2f1c87e 100644 --- a/3a_asm/Makefile +++ b/3a_asm/Makefile @@ -1,3 +1,18 @@ +SHELL := zsh + all: - @ghc --make Main.hs - @mv Main dtas + @ghc --make Main.hs -O0 -o dtas + @strip dtas + +.PHONY: clean test +clean: + -rm -Rf **/**.o **/**.hi 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 < $<