aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 2d843f539ee9b9cb29d696762ef7deee34d97f36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all: run

.PHONY: build/main.rom clean

tileset.gbasm: ./scripts/generate-tiledata.py $(wildcard ./sprites/**/* ./sprites/*)
	python ./scripts/generate-tiledata.py > tileset.gbasm

%.gbasm: ./%.gbtxt ./scripts/generate_from_gbtxt.py
	python ./scripts/generate_from_gbtxt.py $< > $@

build/main.rom: build/main.rom.unsigned
	cp build/main.rom.unsigned build/main.rom
	python scripts/set_checksums.py build/main.rom

build/main.rom.unsigned: main.gbasm tileset.gbasm text.gbasm dialogues/text.gbasm
	mkdir -p build
	gbasm $< $@ > build/main.sym

run: build/main.rom
	mkdir -p recordings
	gb $< --record-input "./recordings/$(shell date -Iseconds).record"

sameboy: build/main.rom
	sameboy build/main.rom

gearboy: build/main.rom
	gearboy build/main.rom build/main.sym

clean:
	rm -rf buil1