Modified the compilation rules for static compilation and dependency files.
This commit is contained in:
parent
8fb76e1318
commit
d2df940aa6
8
Makefile
8
Makefile
@ -178,13 +178,13 @@ $(BUILD_DIR)/$(SUB_DIR_DEBUG): | $(BUILD_DIR)
|
|||||||
# Release 最终可执行文件编译任务
|
# Release 最终可执行文件编译任务
|
||||||
$(BUILD_DIR)/$(SUB_DIR_RELEASE)/$(TARGET_FILE_NAME).exe: $(RELEASE_OBJECTS)
|
$(BUILD_DIR)/$(SUB_DIR_RELEASE)/$(TARGET_FILE_NAME).exe: $(RELEASE_OBJECTS)
|
||||||
@echo ====== [Release] All File Compiled. Now Linking... ======
|
@echo ====== [Release] All File Compiled. Now Linking... ======
|
||||||
$(C++_COMPLIER) $(RELEASE_OBJECTS) -o $@ $(LIB_LINK) $(LDFLAGS)
|
$(C++_COMPLIER) $(RELEASE_OBJECTS) -static -o $@ $(LIB_LINK) $(LDFLAGS)
|
||||||
@echo ====== [Release] Program Link Finished ======
|
@echo ====== [Release] Program Link Finished ======
|
||||||
|
|
||||||
# Debug 最终可执行文件编译任务
|
# Debug 最终可执行文件编译任务
|
||||||
$(BUILD_DIR)/$(SUB_DIR_DEBUG)/$(TARGET_FILE_NAME).exe: $(DEBUG_OBJECTS)
|
$(BUILD_DIR)/$(SUB_DIR_DEBUG)/$(TARGET_FILE_NAME).exe: $(DEBUG_OBJECTS)
|
||||||
@echo ====== [Debug] All File Compiled. Now Linking... ======
|
@echo ====== [Debug] All File Compiled. Now Linking... ======
|
||||||
$(C++_COMPLIER) $(DEBUG_OBJECTS) -o $@ $(LIB_LINK) $(LDFLAGS)
|
$(C++_COMPLIER) $(DEBUG_OBJECTS) -static -o $@ $(LIB_LINK) $(LDFLAGS)
|
||||||
@echo ====== [Debug] Program Link Finished ======
|
@echo ====== [Debug] Program Link Finished ======
|
||||||
|
|
||||||
# C Release 目标文件编译
|
# C Release 目标文件编译
|
||||||
@ -219,5 +219,5 @@ $(BUILD_DIR)/$(SUB_DIR_DEBUG)/%.o: %.rc Makefile | $(BUILD_DIR)/$(SUB_DIR_DEBUG)
|
|||||||
|
|
||||||
|
|
||||||
# 依赖关系
|
# 依赖关系
|
||||||
-include $(wildcard $(BUILD_DIR)/$(SUB_DIR_RELEASE)*.d)
|
-include $(RELEASE_OBJECTS:.o=.d)
|
||||||
-include $(wildcard $(BUILD_DIR)/$(SUB_DIR_DEBUG)*.d)
|
-include $(DEBUG_OBJECTS:.o=.d)
|
Loading…
x
Reference in New Issue
Block a user