Does anyone know where i can find more information on microsoft's make files as well as compiler flags for Microsoft's compiler? Some working examples would be helpful.
Thanks, Richard
On 22.06.2004 17:23:21 Richard Campbell wrote:
Does anyone know where i can find more information on microsoft's make files as well as compiler flags for Microsoft's compiler? Some working examples would be helpful.
You can get a start by reading the MSDN docu about nmake:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vcce4/ht...
Usage of NMAKE is not that much different from any other make. The biggest difference is IMHO usage of the preprocessor: For example you have to the syntax "!ifdef ..." instead of plain "if ..." in gmake and "!if $(XXX)==YYY" instead of "ifeq ($(XXX),YYY)".
Also you can't use things like ".%.o: %.c" for the dependency definition. Instead use inference rules using the syntax ".c.o:".
Regards,
Martin