21 lines
361 B
Makefile
21 lines
361 B
Makefile
|
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
|