collapseos/apps/zasm/emul/Makefile
Virgil Dupras 175e1328e7 zasm: consolidate
* Build emulated zasm statically
* Improve comments in zasm.asm
* Fix build
* Use unsetZ from core
2019-04-30 13:45:31 -04:00

13 lines
379 B
Makefile

zasm: zasm.c libz80/libz80.o kernel.h zasm.h
cc $< libz80/libz80.o -o $@
libz80/libz80.o: libz80/z80.c
make -C libz80/codegen opcodes
gcc -Wall -ansi -g -c -o libz80/libz80.o libz80/z80.c
kernel.h: glue.asm
scas -o - -I ../../../parts/z80 $< | ./bin2c.sh KERNEL | tee $@ > /dev/null
zasm.h: ../zasm.asm ../tok.asm
scas -o - -I.. $< | ./bin2c.sh ZASM | tee $@ > /dev/null