NMAKE predefines several inference rules:
Table 24. NMAKE Predefined Inference Rules
| Inference Rule |
Command Action |
Default |
| .c.obj |
$(CC) $(CFLAGS) /c $*.c |
icc /c $*.c |
| .c.exe |
$(CC) $(CFLAGS) $*.c |
icc $*.c |
| .asm.obj |
$(AS) $(AFLAGS) $*; |
masm $*; |
- The first two rules automatically compile and link C programs.
- The last rule automatically assembles programs.
- The above are the most often used predefined inference rules.
For a complete list of predefined inference rules, execute a makefile
and specify the /p option. All available inference rules will be displayed.