1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 14:18:06 +11:00
collapseos/tools/emul/Makefile
2019-05-09 12:58:41 -04:00

17 lines
372 B
Makefile

.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