Makefile添加头文件依赖,解决CPP文件包含的头文件修改了
2021-07-31 本文已影响0人
锋之律
PROJECT_SRC_DEPS:=(patsubst %.cpp, %.o.d, $(PROJECT_SRC)))
PROJECT_SRC_DEPS:=(OBJECT_FILE))
g++ xxxxxxx -MD -MF @
-include $(PROJECT_SRC_DEPS)
PROJECT_SRC_DEPS:=(OBJECT_FILE))
g++ xxxxxxx -MD -MF @
-include $(PROJECT_SRC_DEPS)