--- a/src/Makefile Wed Nov 01 20:09:49 2023 +0100 +++ b/src/Makefile Wed Nov 01 21:00:33 2023 +0100 @@ -27,7 +27,7 @@ BUILD_DIR=../build/lib -SRC = core.c window.c +SRC = context.c error.c window.c OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o) @@ -40,12 +40,18 @@ FORCE: -$(BUILD_DIR)/core.o: core.c ascension/core.h ascension/datatypes.h +$(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \ + ascension/datatypes.h ascension/utils.h @echo "Compiling $<" $(CC) -o $@ $(CFLAGS) -c $< -$(BUILD_DIR)/window.o: window.c ascension/window.h ascension/core.h \ - ascension/datatypes.h +$(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \ + ascension/datatypes.h ascension/error.h ascension/utils.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 + @echo "Compiling $<" + $(CC) -o $@ $(CFLAGS) -c $< +