Use NMAKE to make all source in a directory?

后端 未结 6 1431
盖世英雄少女心
盖世英雄少女心 2021-01-21 15:57

Using nmake, is it possible to have the makefile build all the .cpp files in the current directory automatically, without having to specify them individually?

So, instea

6条回答
  •  孤城傲影
    2021-01-21 16:26

    One possibility is to wrap the make in a script.

    Either use a for loop, calling make on each .cpp file or construct a list of cpp files and use it as a parameter to the makefile.

提交回复
热议问题