From 2a75c88de470a173067feee4df80cd8e3fb7a641 Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Sun, 5 Apr 2026 15:34:21 +0100 Subject: Cleanup and egg! --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 960f42e..3fae2a7 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3