src/Makefile

changeset 15
362b7659dc76
parent 11
d83af80eb09b
child 16
c5dde81b6fb2
     1.1 --- a/src/Makefile	Wed Nov 08 21:53:43 2023 +0100
     1.2 +++ b/src/Makefile	Wed Nov 08 23:17:07 2023 +0100
     1.3 @@ -27,7 +27,7 @@
     1.4  
     1.5  BUILD_DIR=../build/lib
     1.6  
     1.7 -SRC  = context.c error.c window.c font.c
     1.8 +SRC  = context.c error.c window.c font.c files.c shader.c
     1.9  
    1.10  OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
    1.11  
    1.12 @@ -42,7 +42,7 @@
    1.13  
    1.14  $(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \
    1.15   ascension/datatypes.h ascension/font.h ascension/error.h \
    1.16 - ascension/utils.h
    1.17 + ascension/utils.h ascension/shader.h
    1.18  	@echo "Compiling $<"
    1.19  	$(CC) -o $@ $(CFLAGS) -c $<
    1.20  
    1.21 @@ -52,12 +52,21 @@
    1.22  	@echo "Compiling $<"
    1.23  	$(CC) -o $@ $(CFLAGS) -c $<
    1.24  
    1.25 +$(BUILD_DIR)/files.o: files.c ascension/files.h ascension/error.h
    1.26 +	@echo "Compiling $<"
    1.27 +	$(CC) -o $@ $(CFLAGS) -c $<
    1.28 +
    1.29  $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \
    1.30   ascension/window.h ascension/datatypes.h ascension/font.h \
    1.31   ascension/error.h
    1.32  	@echo "Compiling $<"
    1.33  	$(CC) -o $@ $(CFLAGS) -c $<
    1.34  
    1.35 +$(BUILD_DIR)/shader.o: shader.c ascension/shader.h ascension/files.h \
    1.36 + ascension/error.h
    1.37 +	@echo "Compiling $<"
    1.38 +	$(CC) -o $@ $(CFLAGS) -c $<
    1.39 +
    1.40  $(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \
    1.41   ascension/context.h ascension/window.h ascension/font.h \
    1.42   ascension/error.h ascension/utils.h

mercurial