hello-dosdl/Makefile

21 lines
361 B
Makefile
Raw Normal View History

2022-02-22 22:38:06 +00:00
NASM ?= nasm
PYTHON ?= python
all: dosdl.com
dosdl.com: dosdl.asm dictionary.inc targets.inc
$(NASM) -fbin -o $@ $<
dictionary.inc: dictionary.json compress-dict.py
$(PYTHON) compress-dict.py $< $@
targets.inc: targets.json compress-targets.py
$(PYTHON) compress-targets.py $< $@
clean:
rm -f *.inc *.com
distclean: clean
.PHONY: all clean distclean