Makefiel----no rule to make target 错误问题

%.cppo :%.cpp %.h
    @echo Compiling Src file:[$(notdir $<)]...
    $(CC) $(CXXFLAGS) -c $< -o $@

当没有 %.h时,会出错。
make: *** No rule to make target 'CircularQueueTest.cppo', needed by 'gtest'。 停止。
因此,依赖文件必须都存在。

posted @ 2017-11-25 14:36  elseliving的记录  阅读(444)  评论(0编辑  收藏  举报