fix makefile
This commit is contained in:
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -2,7 +2,8 @@
|
|||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.py": "python",
|
"*.py": "python",
|
||||||
"app.h": "c",
|
"app.h": "c",
|
||||||
"time.h": "c"
|
"time.h": "c",
|
||||||
|
"math.h": "c"
|
||||||
},
|
},
|
||||||
"C_Cpp.errorSquiggles": "enabled",
|
"C_Cpp.errorSquiggles": "enabled",
|
||||||
"C_Cpp.default.includePath": [
|
"C_Cpp.default.includePath": [
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -23,7 +23,7 @@ all: $(TARGET)
|
|||||||
|
|
||||||
# 链接可执行文件
|
# 链接可执行文件
|
||||||
$(TARGET): $(OBJECTS) | $(DIST_DIR)
|
$(TARGET): $(OBJECTS) | $(DIST_DIR)
|
||||||
$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
|
$(CC) $^ $(LDFLAGS) $(LIBS) -o $@
|
||||||
|
|
||||||
# 编译源文件并生成依赖
|
# 编译源文件并生成依赖
|
||||||
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c | $(BUILD_DIR)
|
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c | $(BUILD_DIR)
|
||||||
|
|||||||
Reference in New Issue
Block a user