fix makefile

This commit is contained in:
Passthem
2025-04-14 16:07:04 +08:00
parent f23f7b05b2
commit 3efe232019
2 changed files with 3 additions and 2 deletions

View File

@ -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": [

View File

@ -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)