diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-23 10:15:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-23 18:44:30 +0900 |
| commit | 86cb94c72347d7439980e69a69797d6f8a1688d6 (patch) | |
| tree | 4c262aeb3da553c1227ede44465f050dfa5831aa /Makefile | |
| parent | 8646e6f693fd935c6cb81e776a6c92a3fd093a33 (diff) | |
| download | ducc-86cb94c72347d7439980e69a69797d6f8a1688d6.tar.gz ducc-86cb94c72347d7439980e69a69797d6f8a1688d6.tar.zst ducc-86cb94c72347d7439980e69a69797d6f8a1688d6.zip | |
feat: use "make" as builder
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
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 |
