collapseos/tools/emul/Makefile

17 lines
372 B
Makefile
Raw Normal View History

2019-05-10 02:58:41 +10:00
.PHONY: all
all: shell
shell-kernel.h: shell_.asm
scas -o - -I ../../parts/z80 $< | ./bin2c.sh SHELL_KERNEL | tee $@ > /dev/null
shell: shell.c libz80/libz80.o shell-kernel.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
.PHONY: clean
clean:
rm shell shell-kernel.h