src/Makefile

changeset 7
9dd76cbd6c90
parent 6
302971e8599b
child 11
d83af80eb09b
     1.1 --- a/src/Makefile	Wed Nov 01 20:09:49 2023 +0100
     1.2 +++ b/src/Makefile	Wed Nov 01 21:00:33 2023 +0100
     1.3 @@ -27,7 +27,7 @@
     1.4  
     1.5  BUILD_DIR=../build/lib
     1.6  
     1.7 -SRC  = core.c window.c
     1.8 +SRC  = context.c error.c window.c
     1.9  
    1.10  OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
    1.11  
    1.12 @@ -40,12 +40,18 @@
    1.13  
    1.14  FORCE:
    1.15  
    1.16 -$(BUILD_DIR)/core.o: core.c ascension/core.h ascension/datatypes.h
    1.17 +$(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \
    1.18 + ascension/datatypes.h ascension/utils.h
    1.19  	@echo "Compiling $<"
    1.20  	$(CC) -o $@ $(CFLAGS) -c $<
    1.21  
    1.22 -$(BUILD_DIR)/window.o: window.c ascension/window.h ascension/core.h \
    1.23 - ascension/datatypes.h
    1.24 +$(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \
    1.25 + ascension/datatypes.h ascension/error.h ascension/utils.h
    1.26  	@echo "Compiling $<"
    1.27  	$(CC) -o $@ $(CFLAGS) -c $<
    1.28  
    1.29 +$(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \
    1.30 + ascension/context.h ascension/window.h ascension/error.h
    1.31 +	@echo "Compiling $<"
    1.32 +	$(CC) -o $@ $(CFLAGS) -c $<
    1.33 +

mercurial