diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -10,6 +10,9 @@ engine: $(OBJECT_FILES) bin: @mkdir -p $@ +downstroke: + @mkdir -p $@ + # Explicit inter-module dependencies bin/entity.o: bin/tilemap.o: @@ -19,9 +22,9 @@ bin/physics.o: bin/entity.o bin/world.o bin/tilemap.o bin/renderer.o: bin/entity.o bin/tilemap.o bin/world.o # Pattern rule: compile each module as a library unit -bin/%.o bin/%.import.scm: %.scm | bin - csc -c -J -unit $* $*.scm -o bin/$*.o -I bin - @if [ -f $*.import.scm ]; then mv $*.import.scm bin/; fi +bin/%.o: %.scm | bin downstroke + csc -c -J -unit downstroke/$* $*.scm -o bin/$*.o -I bin -L bin/downstroke + @mkdir -p bin/downstroke && if [ -f downstroke/$*.import.scm ]; then mv downstroke/$*.import.scm bin/downstroke/; fi .PHONY: clean test engine demos |
