SHELL := zsh all: @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 < $<