diff -r 9f7bfc0a1dc3 -r 84a546e282b7 src/Makefile --- a/src/Makefile Fri Apr 18 19:34:31 2025 +0200 +++ b/src/Makefile Fri Apr 18 20:13:01 2025 +0200 @@ -28,7 +28,7 @@ BUILD_DIR=../build/lib SRC = context.c glcontext.c error.c window.c shader.c font.c text.c \ - texture.c scene.c camera.c primitives.c + texture.c scene.c camera.c primitives.c mesh.c OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) @@ -78,6 +78,10 @@ @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< +$(BUILD_DIR)/mesh.o: mesh.c ascension/mesh.h ascension/error.h + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< + $(BUILD_DIR)/primitives.o: primitives.c ascension/primitives.h \ ascension/mesh.h ascension/error.h ascension/context.h \ ascension/datatypes.h ascension/window.h ascension/glcontext.h \