src/Makefile

changeset 108
d619bf7dd87b
parent 106
895f92cff6b8
--- a/src/Makefile	Sat May 03 14:37:57 2025 +0200
+++ b/src/Makefile	Sat May 03 19:48:57 2025 +0200
@@ -31,7 +31,7 @@
       window.c shader.c mesh.c texture.c \
       sprite.c \
       primitives.c \
-      camera.c scene.c scene_node.c \
+      camera.c scene.c scene_node.c behavior.c \
       font.c text.c
 
 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
@@ -45,6 +45,10 @@
 
 FORCE:
 
+$(BUILD_DIR)/behavior.o: behavior.c ascension/behavior.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+
 $(BUILD_DIR)/camera.o: camera.c ascension/error.h ascension/camera.h \
  ascension/datatypes.h
 	@echo "Compiling $<"

mercurial