Predefined Rules

Home Page (Projects)Overview (NMAKE Reference)How Do I... Topics (Projects)

Predefined inference rules use NMAKE-supplied command and options macros.

Rule Command Default action
.asm.exe $(AS) $(AFLAGS) $*.asm ml $*.asm
.asm.obj $(AS) $(AFLAGS) /c $*.asm ml /c $*.asm
.c.exe $(CC) $(CFLAGS) $*.c cl $*.c
.c.obj $(CC) $(CFLAGS) /c $*.c cl /c $*.c
.cpp.exe $(CPP) $(CPPFLAGS) $*.cpp cl $*.cpp
.cpp.obj $(CPP) $(CPPFLAGS) /c $*.cpp cl /c $*.cpp
.cxx.exe $(CXX) $(CXXFLAGS) $*.cxx cl $*.cxx
.cxx.obj $(CXX) $(CXXFLAGS) /c $*.cxx cl /c $*.cxx
.bas.obj $(BC) $(BFLAGS) $*.bas; bc $*.bas;
.cbl.exe $(COBOL) $(COBFLAGS) $*.cbl, $*.exe; cobol $*.cbl, $*.exe;
.cbl.obj $(COBOL) $(COBFLAGS) $*.cbl; cobol $*.cbl;
.f.exe $(FOR) $(FFLAGS) $*.f fl $*.f
.f.obj $(FOR) /c $(FFLAGS) $*.f fl /c $*.f
.f90.exe $(FOR) $(FFLAGS) $*.f90 fl $*.f90
.f90.obj $(FOR) /c $(FFLAGS) $*.f90 fl /c $*.f90
.for.exe $(FOR) $(FFLAGS) $*.for fl $*.for
.for.obj $(FOR) /c $(FFLAGS) $*.for fl /c $*.for
.pas.exe $(PASCAL) $(PFLAGS) $*.pas pl $*.pas
.pas.obj $(PASCAL) /c $(PFLAGS) $*.pas pl /c $*.pas
.rc.res $(RC) $(RFLAGS) /r $* rc /r $*