From 3efe2320192ae062bc57064ceb2f5cbd0cb5489b Mon Sep 17 00:00:00 2001 From: Passthem <514827965@qq.com> Date: Mon, 14 Apr 2025 16:07:04 +0800 Subject: [PATCH] fix makefile --- .vscode/settings.json | 3 ++- Makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 712b88a..d41d68c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,7 +2,8 @@ "files.associations": { "*.py": "python", "app.h": "c", - "time.h": "c" + "time.h": "c", + "math.h": "c" }, "C_Cpp.errorSquiggles": "enabled", "C_Cpp.default.includePath": [ diff --git a/Makefile b/Makefile index 3726eaf..07cfd60 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ all: $(TARGET) # 链接可执行文件 $(TARGET): $(OBJECTS) | $(DIST_DIR) - $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) + $(CC) $^ $(LDFLAGS) $(LIBS) -o $@ # 编译源文件并生成依赖 $(BUILD_DIR)/%.o: $(SRC_DIR)/%.c | $(BUILD_DIR)