Build libcurl static library on Windows

Download the latest curl generic source from:
Extract the source to a local directory (we’ll be using C:\libcurl)
Open a command prompt
“C:\Program Files (x86)\Microsoft Visual Studio 15.0\VC\bin\vcvars32.bat” To initialize your VC environment variables (adjust your VS 2015 installation directory as needed)
cd C:\libcurl\winbuild

nmake /f mode=static VC=14

The build should appear in C:\libcurl\builds\libcurl-vc14-x86-release-static-ipv6-sspi-winssl

References :