1aa7edd96a4c7c90bf1188bb440a2dd1d3efe9a2
[calu.git] / 3a_asm / Makefile
1 SHELL := zsh
2 GHCOPT = -XMultiParamTypeClasses -XFunctionalDependencies -XTypeSynonymInstances -XFlexibleInstances
3
4 all:
5         @ghc --make Main.hs $(GHCOPT) -o dtas
6
7 .PHONY: clean test
8 clean:
9         rm -Rf **/**.o **/**.hi dtas
10
11 test: all
12         cat ../2_isa/src/sum.s && echo '==== here comes the DT ASM output ====' && cat ../2_isa/src/sum.s | ./dtas