[msvc] Allow cygwin "make" to be called after winsetup.bat
authorJo Shields <jo.shields@xamarin.com>
Tue, 25 Nov 2014 12:49:26 +0000 (12:49 +0000)
committerJo Shields <jo.shields@xamarin.com>
Tue, 25 Nov 2014 12:49:26 +0000 (12:49 +0000)
commit1d6b8a75fa31d60e9ddbc0b9eddbf05ed3fb6c12
treeac0f628647546c31ff6f5f8e9caf10105be215bf
parent9f6f6a9ccef9e65adc281b5c0609f79d1dce6fcf
[msvc] Allow cygwin "make" to be called after winsetup.bat

As-is, winsetup.bat replaces config.h with winconfig.h, which is needed for the MSVC compilation - but breaks all further use of cygwin's make (e.g. to build the class library, or run "make install").

This patch introduces a new cygconfig.h as a backup prior to squashing config.h (if it exists, so the runtime can still be built without cygwin ever being used), and makes winconfig.h use it on non-MSVC compilers (i.e. cygwin)
.gitignore
msvc/winsetup.bat
winconfig.h