It is recommended that you examine the contents of NTWIN32.MAK, located in the \MSTOOL\H subdirectory is your develop your application with Windows NT SDK or in the MSVC20\INCLUDE if you develop with VISUAL C++ 2.x.or in the MSDEV\INCLUDE if you develop with VISUAL C/C++ 4.x There are macros defined in this makefile template that can be used to simplify your own makefiles and to ensure that they are properly built to avoid conflicts.
For example, NTWIN32.MAK includes the following macros to simplify compilation :
$(CVARDLL) :
This macro is used for singled-threaded applications and DLLS that use CRTDLL.LIB. It is equivalent to the following command:
$(CVARSMTDLL):
This macro is used for multi-threaded applications and DLLs that use CRTDLL.LIB. It is equivalent to the following command:
$(CONLIBSDLL):
This macro is for console DLLs using CRTDLL.LIB, and is equivalent to the following command:
$(GUILIBSDLL):
This macro is used for GUI DLLs using CRTDLL.LIB, and is equivalent to the following command: