src/Makefile

changeset 44
b3da4096c607
parent 37
8a8cc6725b48
child 48
6e5b5ba2752c
--- a/src/Makefile	Thu Mar 21 23:01:09 2024 +0100
+++ b/src/Makefile	Tue Mar 26 20:37:21 2024 +0100
@@ -27,7 +27,7 @@
 
 BUILD_DIR=../build/lib
 
-SRC = context.c error.c window.c files.c shader.c font.c text.c \
+SRC = context.c glcontext.c error.c window.c files.c shader.c font.c text.c \
       scene.c camera.c primitives.c
 
 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
@@ -46,17 +46,18 @@
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(BUILD_DIR)/context.o: context.c ascension/context.h \
- ascension/datatypes.h ascension/window.h ascension/primitives.h \
- ascension/mesh.h ascension/scene.h ascension/transform.h \
- ascension/camera.h ascension/font.h ascension/error.h ascension/utils.h \
- ascension/shader.h
+ ascension/datatypes.h ascension/window.h ascension/glcontext.h \
+ ascension/primitives.h ascension/mesh.h ascension/shader.h \
+ ascension/scene.h ascension/transform.h ascension/camera.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/datatypes.h \
- ascension/window.h ascension/primitives.h ascension/mesh.h \
- ascension/scene.h ascension/transform.h ascension/camera.h \
- ascension/font.h ascension/error.h ascension/utils.h
+ ascension/window.h ascension/glcontext.h ascension/primitives.h \
+ ascension/mesh.h ascension/shader.h ascension/scene.h \
+ ascension/transform.h ascension/camera.h ascension/font.h \
+ ascension/error.h ascension/utils.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
@@ -65,24 +66,32 @@
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(BUILD_DIR)/font.o: font.c ascension/font.h ascension/context.h \
- ascension/datatypes.h ascension/window.h ascension/primitives.h \
- ascension/mesh.h ascension/scene.h ascension/transform.h \
- ascension/camera.h ascension/font.h ascension/error.h
+ ascension/datatypes.h ascension/window.h ascension/glcontext.h \
+ ascension/primitives.h ascension/mesh.h ascension/shader.h \
+ ascension/scene.h ascension/transform.h ascension/camera.h \
+ ascension/font.h ascension/error.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
+$(BUILD_DIR)/glcontext.o: glcontext.c ascension/glcontext.h \
+ ascension/primitives.h ascension/mesh.h ascension/shader.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/scene.h ascension/transform.h ascension/camera.h \
- ascension/font.h
+ ascension/datatypes.h ascension/window.h ascension/glcontext.h \
+ ascension/primitives.h ascension/shader.h ascension/scene.h \
+ ascension/transform.h ascension/camera.h ascension/font.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
 $(BUILD_DIR)/scene.o: scene.c ascension/scene.h ascension/datatypes.h \
  ascension/transform.h ascension/camera.h ascension/error.h \
- ascension/context.h ascension/window.h ascension/primitives.h \
- ascension/mesh.h ascension/scene.h ascension/font.h ascension/shader.h
+ ascension/context.h ascension/window.h ascension/glcontext.h \
+ ascension/primitives.h ascension/mesh.h ascension/shader.h \
+ ascension/scene.h ascension/font.h ascension/shader.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
@@ -94,15 +103,16 @@
 $(BUILD_DIR)/text.o: text.c ascension/text.h ascension/font.h \
  ascension/scene.h ascension/datatypes.h ascension/transform.h \
  ascension/camera.h ascension/context.h ascension/window.h \
- ascension/primitives.h ascension/mesh.h ascension/error.h \
- ascension/shader.h
+ ascension/glcontext.h ascension/primitives.h ascension/mesh.h \
+ ascension/shader.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/scene.h \
- ascension/transform.h ascension/camera.h ascension/context.h \
- ascension/window.h ascension/font.h ascension/error.h ascension/utils.h
+ ascension/glcontext.h ascension/primitives.h ascension/mesh.h \
+ ascension/shader.h ascension/scene.h ascension/transform.h \
+ ascension/camera.h ascension/context.h ascension/window.h \
+ ascension/font.h ascension/error.h ascension/utils.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 

mercurial