clean: del *.obj *.exe
hello.exe: hello.obj cl hello.obj /Fehello.exe hello.obj: hello.c cl /c hello.c
Run:
#include <stdio.h> int main() printf("Hello from NMAKE!\n"); return 0;
Create hello.c :
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0\bin\nmake.exe If you have vcpkg installed:
nmake /? You should see help information with version details. Create a file called makefile :
How To Install Nmake Portable May 2026
clean: del *.obj *.exe
hello.exe: hello.obj cl hello.obj /Fehello.exe hello.obj: hello.c cl /c hello.c how to install nmake
Run:
#include <stdio.h> int main() printf("Hello from NMAKE!\n"); return 0; clean: del *
Create hello.c :
C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0\bin\nmake.exe If you have vcpkg installed: int main() printf("Hello from NMAKE!\n")
nmake /? You should see help information with version details. Create a file called makefile :