--- a/src/Makefile Mon Dec 18 13:04:04 2023 +0100 +++ b/src/Makefile Mon Dec 18 19:04:44 2023 +0100 @@ -27,7 +27,8 @@ BUILD_DIR=../build/lib -SRC = context.c error.c window.c files.c shader.c font.c text.c primitives.c +SRC = context.c error.c window.c files.c shader.c font.c text.c scene.c \ + primitives.c OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) @@ -70,6 +71,10 @@ @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< +$(BUILD_DIR)/scene.o: scene.c ascension/scene.h ascension/error.h + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< + $(BUILD_DIR)/shader.o: shader.c ascension/shader.h ascension/files.h \ ascension/error.h @echo "Compiling $<"