aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 25c0c94db09fb4fae92468b34a71da9e1df376f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.DEFAULT_GOAL := bin/game

bin:
	@mkdir -p $@

bin/tilemap.o: src/tilemap.scm | bin
	csc -c -J src/tilemap.scm -unit tilemap -o $@

bin/game.o: src/game.scm | bin
	csc -c src/game.scm -uses tilemap -o $@

bin/game: bin/tilemap.o bin/game.o | bin
	csc -o bin/game bin/tilemap.o bin/game.o


.PHONY: clean
clean:
	rm -rf bin
	rm -f *.import.scm game