3a_asm: FIX: parser fail bei labels aufloesen
[calu.git] / 3a_asm / Makefile
1 SHELL := zsh
2
3 all:
4         @ghc --make Main.hs -O0 -o dtas
5         @strip dtas
6
7 .PHONY: clean test
8 clean:
9         -rm -Rf **/**.o **/**.hi dtas
10
11 TESTFILES := $(shell ls ../3_test/*.s) $(shell ls ../2_isa/src/*.s)
12 test: all $(TESTFILES:.s=.out)
13
14 %.out: %.s
15         @echo "=== testing file $<"
16         @cat $<
17         @echo "=== here comes the DT ASM output ==="
18         @./dtas < $<