The command nmake -p
will give:
INFERENCE RULES:
.asm.obj::
commands: $(AS) $(AFLAGS) /c $<
.asm.exe:
commands: $(AS) $(AFLAGS) $<
.c.obj::
commands: $(CC) $(CFLAGS) /c $<
.c.exe:
commands: $(CC) $(CFLAGS) $<
.cc.obj::
commands: $(CC) $(CFLAGS) /c $<
.cc.exe:
commands: $(CC) $(CFLAGS) $<
.cpp.obj::
commands: $(CPP) $(CPPFLAGS) /c $<
.cpp.exe:
commands: $(CPP) $(CPPFLAGS) $<
.cxx.obj::
commands: $(CXX) $(CXXFLAGS) /c $<
.cxx.exe:
commands: $(CXX) $(CXXFLAGS) $<
.rc.res:
commands: $(RC) $(RFLAGS) /r $<
.SUFFIXES: .obj .asm .c .cc .cpp .cxx .f .f90 .for .rc
See nmake /?
for other switches, such as -n
. Also see my answer here for some useful references to the older nmake
documentation.