--- a/src/Makefile Tue Nov 07 21:13:04 2023 +0100 +++ b/src/Makefile Tue Nov 07 21:24:06 2023 +0100 @@ -27,7 +27,7 @@ BUILD_DIR=../build/lib -SRC = context.c error.c window.c +SRC = context.c error.c window.c font.c OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) @@ -41,17 +41,26 @@ FORCE: $(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \ - ascension/datatypes.h ascension/utils.h + ascension/datatypes.h ascension/font.h ascension/error.h \ + ascension/utils.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< $(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \ - ascension/datatypes.h ascension/error.h ascension/utils.h + ascension/datatypes.h ascension/font.h ascension/error.h \ + ascension/utils.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)/window.o: window.c ascension/window.h ascension/datatypes.h \ - ascension/context.h ascension/window.h ascension/error.h + ascension/context.h ascension/window.h ascension/font.h \ + ascension/error.h ascension/utils.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $<