diff -r 9dbfc0031887 -r 362b7659dc76 src/Makefile --- a/src/Makefile Wed Nov 08 21:53:43 2023 +0100 +++ b/src/Makefile Wed Nov 08 23:17:07 2023 +0100 @@ -27,7 +27,7 @@ BUILD_DIR=../build/lib -SRC = context.c error.c window.c font.c +SRC = context.c error.c window.c font.c files.c shader.c OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) @@ -42,7 +42,7 @@ $(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \ ascension/datatypes.h ascension/font.h ascension/error.h \ - ascension/utils.h + ascension/utils.h ascension/shader.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< @@ -52,12 +52,21 @@ @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< +$(BUILD_DIR)/files.o: files.c ascension/files.h ascension/error.h + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< + $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \ ascension/window.h ascension/datatypes.h ascension/font.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 $<" + $(CC) -o $@ $(CFLAGS) -c $< + $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \ ascension/context.h ascension/window.h ascension/font.h \ ascension/error.h ascension/utils.h