diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 |
