src/Makefile

changeset 50
d8d2e4817db1
parent 49
77493525eac2
child 61
b7954818a6b7
--- a/src/Makefile	Mon Apr 01 19:44:00 2024 +0200
+++ b/src/Makefile	Tue Apr 09 21:18:52 2024 +0200
@@ -28,7 +28,7 @@
 BUILD_DIR=../build/lib
 
 SRC = context.c glcontext.c error.c window.c files.c shader.c font.c text.c \
-      scene.c camera.c primitives.c
+      texture.c scene.c camera.c primitives.c
 
 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
 
@@ -102,11 +102,15 @@
 
 $(BUILD_DIR)/text.o: text.c ascension/ui/text.h ascension/ui/font.h \
  ascension/ui/../scene.h ascension/ui/../datatypes.h \
- ascension/ui/../transform.h ascension/ui/../camera.h ascension/context.h \
- ascension/datatypes.h ascension/window.h ascension/glcontext.h \
- ascension/primitives.h ascension/mesh.h ascension/shader.h \
- ascension/scene.h ascension/ui/font.h ascension/error.h \
- ascension/shader.h
+ ascension/ui/../transform.h ascension/ui/../camera.h \
+ ascension/ui/../texture.h ascension/context.h ascension/datatypes.h \
+ ascension/window.h ascension/glcontext.h ascension/primitives.h \
+ ascension/mesh.h ascension/shader.h ascension/scene.h \
+ ascension/ui/font.h ascension/error.h ascension/shader.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
+$(BUILD_DIR)/texture.o: texture.c ascension/texture.h ascension/error.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 

mercurial