src/Makefile

changeset 50
d8d2e4817db1
parent 49
77493525eac2
child 61
b7954818a6b7
     1.1 --- a/src/Makefile	Mon Apr 01 19:44:00 2024 +0200
     1.2 +++ b/src/Makefile	Tue Apr 09 21:18:52 2024 +0200
     1.3 @@ -28,7 +28,7 @@
     1.4  BUILD_DIR=../build/lib
     1.5  
     1.6  SRC = context.c glcontext.c error.c window.c files.c shader.c font.c text.c \
     1.7 -      scene.c camera.c primitives.c
     1.8 +      texture.c scene.c camera.c primitives.c
     1.9  
    1.10  OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
    1.11  
    1.12 @@ -102,11 +102,15 @@
    1.13  
    1.14  $(BUILD_DIR)/text.o: text.c ascension/ui/text.h ascension/ui/font.h \
    1.15   ascension/ui/../scene.h ascension/ui/../datatypes.h \
    1.16 - ascension/ui/../transform.h ascension/ui/../camera.h ascension/context.h \
    1.17 - ascension/datatypes.h ascension/window.h ascension/glcontext.h \
    1.18 - ascension/primitives.h ascension/mesh.h ascension/shader.h \
    1.19 - ascension/scene.h ascension/ui/font.h ascension/error.h \
    1.20 - ascension/shader.h
    1.21 + ascension/ui/../transform.h ascension/ui/../camera.h \
    1.22 + ascension/ui/../texture.h ascension/context.h ascension/datatypes.h \
    1.23 + ascension/window.h ascension/glcontext.h ascension/primitives.h \
    1.24 + ascension/mesh.h ascension/shader.h ascension/scene.h \
    1.25 + ascension/ui/font.h ascension/error.h ascension/shader.h
    1.26 +	@echo "Compiling $<"
    1.27 +	$(CC) -o $@ $(CFLAGS) -c $<
    1.28 +
    1.29 +$(BUILD_DIR)/texture.o: texture.c ascension/texture.h ascension/error.h
    1.30  	@echo "Compiling $<"
    1.31  	$(CC) -o $@ $(CFLAGS) -c $<
    1.32  

mercurial