src/Makefile

changeset 16
c5dde81b6fb2
parent 15
362b7659dc76
child 21
1a47c57666f5
--- a/src/Makefile	Wed Nov 08 23:17:07 2023 +0100
+++ b/src/Makefile	Wed Nov 15 22:51:40 2023 +0100
@@ -27,7 +27,7 @@
 
 BUILD_DIR=../build/lib
 
-SRC  = context.c error.c window.c font.c files.c shader.c
+SRC  = context.c error.c window.c files.c shader.c font.c text.c primitives.c
 
 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
 
@@ -40,15 +40,16 @@
 
 FORCE:
 
-$(BUILD_DIR)/context.o: context.c ascension/context.h ascension/window.h \
- ascension/datatypes.h ascension/font.h ascension/error.h \
- ascension/utils.h ascension/shader.h
+$(BUILD_DIR)/context.o: context.c ascension/context.h \
+ ascension/datatypes.h ascension/window.h ascension/primitives.h \
+ ascension/mesh.h ascension/font.h ascension/error.h ascension/utils.h \
+ ascension/shader.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
-$(BUILD_DIR)/error.o: error.c ascension/context.h ascension/window.h \
- ascension/datatypes.h ascension/font.h ascension/error.h \
- ascension/utils.h
+$(BUILD_DIR)/error.o: error.c ascension/context.h ascension/datatypes.h \
+ ascension/window.h ascension/primitives.h ascension/mesh.h \
+ ascension/font.h ascension/error.h ascension/utils.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
@@ -57,8 +58,15 @@
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \
- ascension/window.h ascension/datatypes.h ascension/font.h \
- ascension/error.h
+ ascension/datatypes.h ascension/window.h ascension/primitives.h \
+ ascension/mesh.h ascension/font.h ascension/error.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
+$(BUILD_DIR)/primitives.o: primitives.c ascension/primitives.h \
+ ascension/mesh.h ascension/error.h ascension/context.h \
+ ascension/datatypes.h ascension/window.h ascension/primitives.h \
+ ascension/font.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
@@ -67,9 +75,16 @@
 	@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/font.h \
- ascension/error.h ascension/utils.h
+$(BUILD_DIR)/text.o: text.c ascension/text.h ascension/font.h \
+ ascension/datatypes.h ascension/context.h ascension/window.h \
+ ascension/primitives.h ascension/mesh.h ascension/error.h \
+ ascension/shader.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(BUILD_DIR)/window.o: window.c ascension/window.h ascension/datatypes.h \
+ ascension/primitives.h ascension/mesh.h ascension/context.h \
+ ascension/window.h ascension/font.h ascension/error.h ascension/utils.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+

mercurial