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