aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-23 10:15:46 +0900
committernsfisis <nsfisis@gmail.com>2025-08-23 18:44:30 +0900
commit86cb94c72347d7439980e69a69797d6f8a1688d6 (patch)
tree4c262aeb3da553c1227ede44465f050dfa5831aa /Makefile
parent8646e6f693fd935c6cb81e776a6c92a3fd093a33 (diff)
downloadducc-86cb94c72347d7439980e69a69797d6f8a1688d6.tar.gz
ducc-86cb94c72347d7439980e69a69797d6f8a1688d6.tar.zst
ducc-86cb94c72347d7439980e69a69797d6f8a1688d6.zip
feat: use "make" as builder
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6eb170a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+SRC_DIR := src
+BUILD_DIR := build
+TARGET ?= ducc
+
+.PHONY: all
+all: $(BUILD_DIR) $(BUILD_DIR)/$(TARGET)
+
+$(BUILD_DIR)/$(TARGET): main.c
+ $(CC) -MD -g -O0 -o $@ $<
+
+$(BUILD_DIR):
+ @mkdir -p $(BUILD_DIR)
+
+-include $(BUILD_DIR)/*.d