From d7656baf81b698f0e60de5ea11893a0aaf9d1c6b Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 20 Dec 2010 13:04:34 +0000 Subject: [PATCH] Add an 'XLFLAGS' make variable to Makefile.vc, permitting user- supplied extra link flags. This makes it reasonably convenient to compile for Visual Studio debugging: just build using nmake /f Makefile.vc XFLAGS="/Zi /Od" XLFLAGS="/debug" then load the resulting executable into Visual Studio (using 'Open Project' rather than 'Open File') and the debugger should be able to access the source. git-svn-id: svn://svn.tartarus.org/sgt/putty@9038 cda61777-01e9-0310-a592-d414129be87e --- mkfiles.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkfiles.pl b/mkfiles.pl index 46befd86..bc77ec08 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -612,7 +612,7 @@ if (defined $makefiles{'vc'}) { ($prog, $type) = split ",", $p; $objstr = &objects($p, "X.obj", "X.res", undef); print &splitline("$prog.exe: " . $objstr . " $prog.rsp"), "\n"; - print "\tlink \$(LFLAGS) -out:$prog.exe -map:$prog.map \@$prog.rsp\n\n"; + print "\tlink \$(LFLAGS) \$(XLFLAGS) -out:$prog.exe -map:$prog.map \@$prog.rsp\n\n"; } foreach $p (&prognames("G:C")) { ($prog, $type) = split ",", $p; -- 2.11.0