stack/Makefile

15 lines
263 B
Makefile

exe: code.o
ld $< -o $@
code.o: code.asm
nasm -felf64 $<
code.asm: header.asm footer.asm compiled.asm
cat header.asm compiled.asm footer.asm > $@
compiled.asm: compiler source.stk
./compiler < source.stk > compiled.asm
compiler: compiler.hs
ghc $< -o $@