aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 044838e..25c0c94 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,19 @@
-bin/game: bin bin/tilemap.o
- csc -o bin/game bin/tilemap.o -uses tilemap src/game.scm
+.DEFAULT_GOAL := bin/game
bin:
- mkdir bin
+ @mkdir -p $@
-bin/tilemap.o: bin src/tilemap.scm
- csc -c -J src/tilemap.scm -unit tilemap -o bin/tilemap.o
+bin/tilemap.o: src/tilemap.scm | bin
+ csc -c -J src/tilemap.scm -unit tilemap -o $@
-.PHONY:
+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