src/Makefile

changeset 6
302971e8599b
parent 3
1efd6da2ad53
child 7
9dd76cbd6c90
--- a/src/Makefile	Mon Oct 30 18:54:16 2023 +0100
+++ b/src/Makefile	Wed Nov 01 20:09:49 2023 +0100
@@ -27,21 +27,25 @@
 
 BUILD_DIR=../build/lib
 
-SRC  = core.c
+SRC  = core.c window.c
 
 OBJ = $(SRC:%.c=$(BUILD_DIR)/%.o)
 
 all: $(BUILD_DIR)/libascension.a FORCE
-	echo "You have successfully ascended."
+	@echo "You have successfully ascended."
 
 $(BUILD_DIR)/libascension.a: $(OBJ)
-	echo "Creating library..."
+	@echo "Creating library..."
 	$(AR) $(ARFLAGS) $@ $^
 
 FORCE:
 
-$(BUILD_DIR)/core.o: core.c ascension/core.h ascension/datatypes.h \
- ascension/utils.h
-	echo "Compiling $<"
+$(BUILD_DIR)/core.o: core.c ascension/core.h ascension/datatypes.h
+	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 
+$(BUILD_DIR)/window.o: window.c ascension/window.h ascension/core.h \
+ ascension/datatypes.h
+	@echo "Compiling $<"
+	$(CC) -o $@ $(CFLAGS) -c $<
+

mercurial