help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie first makefile question - ms compiler


From: Eli Zaretskii
Subject: Re: newbie first makefile question - ms compiler
Date: Fri, 15 Apr 2011 21:32:25 +0300

> Date: Fri, 15 Apr 2011 11:25:37 -0700 (PDT)
> From: AngusC <address@hidden>
> 
> I want to start using make - on Windows using ms vc++ compiler.  I want to
> eventually create cross platform makefiles.
> 
> I need to invoke the ms compiler and the samples I have seen use nmake or
> non windows samples.
> 
> My makefile looks like this
> angustest.exe:        angustest.obj
> link.exe /NOLOGO -subsystem:console,4.0 libcpmt.lib user32.lib
> /out:angustest.exe angustest.obj
> 
> angustest.obj:        angustest.cpp
> cl /GR /nologo /MTd /W3 /GB /GX /Gi- /Z7 /Od /GZ -c angustest.cpp

Commands should be indented with a TAB character, like this:

angustest.exe:  angustest.obj
        link.exe /NOLOGO -subsystem:console,4.0 libcpmt.lib user32.lib 
/out:angustest.exe angustest.obj

angustest.obj:  angustest.cpp
        cl /GR /nologo /MTd /W3 /GB /GX /Gi- /Z7 /Od /GZ -c angustest.cpp




reply via email to

[Prev in Thread] Current Thread [Next in Thread]