ch81/tools/Makefile

21 lines
583 B
Makefile
Raw Permalink Normal View History

CXXFLAGS = --std=c++23 -I.. -O1 -g -fno-exceptions -fno-rtti
emu: main.o keyboard.o
g++ $(CXXFLAGS) -o $@ -g $^ ../third_party/linux_conio/linux_conio.cpp -lfmt
main.o: main.cc run.h $(wildcard *.cc *.h)
open81.rom: ../third_party/sz81/open8x/open81.asm Makefile
pasmo -d $< $@ $@.sym > $@.lst
%.h: %.i
clang-format $< > $@
run2.1.h: ../third_party/sz81/open8x/open81.asm open81.rom $(wildcard *.py)
python3 genrun.py --asm $< --lst open81.rom.lst > $@.tmp
mv $@.tmp $@
run.i: opcode-table.json $(wildcard *.py) Makefile
python3 gendispatch.py $< > $@.tmp
mv $@.tmp $@