Use NMAKE to make all source in a directory?

后端 未结 6 1432
盖世英雄少女心
盖世英雄少女心 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:37

    .cpp.obj:
        $(CC) $(CFLAGS) $*.cpp
    

    is a default rule that will automatically resolve .obj dependencies from .cpp files...

提交回复
热议问题