Flat object file directory structure output with GNU Make

前端 未结 5 2340
遥遥无期
遥遥无期 2020-12-13 17:11

I have a C++ small project using GNU Make. I\'d like to be able to turn the following source files:

src/
  a.cpp
  b/
    b.cpp
  c/
    c.cpp
5条回答
  •  情歌与酒
    2020-12-13 17:16

    vpath %.cpp src src/b src/c
    

    Then refer to source files without their directory name; Make will search the vpath.

提交回复
热议问题