aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-03 17:29:12 +0900
committernsfisis <nsfisis@gmail.com>2026-05-03 18:42:58 +0900
commit3654ce578e6fff53950874adf7e0e4ae0a6eb956 (patch)
tree5b6c04273de38dba70b7c25e55da144f5f7c37da /Makefile
parent1b406b13b03055d2b2d08e8279a4a80c41ca7c20 (diff)
downloadducc-3654ce578e6fff53950874adf7e0e4ae0a6eb956.tar.gz
ducc-3654ce578e6fff53950874adf7e0e4ae0a6eb956.tar.zst
ducc-3654ce578e6fff53950874adf7e0e4ae0a6eb956.zip
refactor: organize directory structureHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 17 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index c4eb6bb..c8c27cd 100644
--- a/Makefile
+++ b/Makefile
@@ -4,26 +4,28 @@ BUILD_ROOT_DIR := build
BUILD_DIR := $(BUILD_ROOT_DIR)/.$(TARGET)
OBJECTS := \
- $(BUILD_DIR)/main.o \
- $(BUILD_DIR)/ast.o \
- $(BUILD_DIR)/cli.o \
- $(BUILD_DIR)/codegen.o \
- $(BUILD_DIR)/codegen_wasm.o \
- $(BUILD_DIR)/common.o \
- $(BUILD_DIR)/fs.o \
- $(BUILD_DIR)/io.o \
- $(BUILD_DIR)/json.o \
- $(BUILD_DIR)/parse.o \
- $(BUILD_DIR)/preprocess.o \
- $(BUILD_DIR)/sys.o \
- $(BUILD_DIR)/token.o \
- $(BUILD_DIR)/tokenize.o
+ $(BUILD_DIR)/cc1/ast.o \
+ $(BUILD_DIR)/cc1/codegen.o \
+ $(BUILD_DIR)/cc1/codegen_wasm.o \
+ $(BUILD_DIR)/cc1/fs.o \
+ $(BUILD_DIR)/cc1/io.o \
+ $(BUILD_DIR)/cc1/parse.o \
+ $(BUILD_DIR)/cc1/preprocess.o \
+ $(BUILD_DIR)/cc1/sys.o \
+ $(BUILD_DIR)/cc1/token.o \
+ $(BUILD_DIR)/cc1/tokenize.o \
+ $(BUILD_DIR)/ducc/cli.o \
+ $(BUILD_DIR)/ducc/main.o \
+ $(BUILD_DIR)/lib/common.o \
+ $(BUILD_DIR)/lib/json.o
.PHONY: all
all: $(BUILD_DIR) $(BUILD_ROOT_DIR)/$(TARGET)
$(BUILD_DIR):
- @mkdir -p $(BUILD_DIR)
+ @mkdir -p $(BUILD_DIR)/cc1
+ @mkdir -p $(BUILD_DIR)/ducc
+ @mkdir -p $(BUILD_DIR)/lib
# TODO: provide release build?
# TODO: use -std=c23 instead of -std=gnu23