diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -7,7 +7,7 @@ OBJECT_FILES := $(patsubst %,bin/%.o,$(MODULE_NAMES)) DEMO_NAMES := platformer shmup topdown audio sandbox DEMO_BINS := $(patsubst %,bin/demo-%,$(DEMO_NAMES)) -UNIT_NAMES := $(patsubst %,downstroke/%,$(MODULE_NAMES)) +UNIT_NAMES := $(patsubst %,downstroke-%,$(MODULE_NAMES)) USES_FLAGS := $(patsubst %,-uses %,$(UNIT_NAMES)) # Build all engine modules @@ -16,9 +16,6 @@ engine: $(OBJECT_FILES) bin: @mkdir -p $@ -downstroke: - @mkdir -p $@ - # Explicit inter-module dependencies bin/entity.o: bin/tilemap.o: @@ -35,9 +32,9 @@ bin/ai.o: bin/entity.o bin/world.o bin/scene-loader.o: bin/world.o bin/tilemap.o bin/assets.o bin/engine.o # Pattern rule: compile each module as a library unit -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 +bin/%.o: %.scm | bin + csc -c -J -unit downstroke-$* $*.scm -o bin/$*.o -I bin + @if [ -f downstroke-$*.import.scm ]; then mv downstroke-$*.import.scm bin/; fi .PHONY: clean test engine demos |
