mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-27 17:58:06 +11:00
2653826dff
instr.asm is for single instruction assembly.
13 lines
392 B
Makefile
13 lines
392 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: ../main.asm ../instr.asm ../tok.asm
|
|
scas -o - -I.. $< | ./bin2c.sh ZASM | tee $@ > /dev/null
|