xref: /curl/winbuild/makedebug.cmd (revision ce3dce90)
1@echo off
2rem ***************************************************************************
3rem *                                  _   _ ____  _
4rem *  Project                     ___| | | |  _ \| |
5rem *                             / __| | | | |_) | |
6rem *                            | (__| |_| |  _ <| |___
7rem *                             \___|\___/|_| \_\_____|
8rem *
9rem * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
10rem *
11rem * This software is licensed as described in the file COPYING, which
12rem * you should have received as part of this distribution. The terms
13rem * are also available at https://curl.se/docs/copyright.html.
14rem *
15rem * You may opt to use, copy, modify, merge, publish, distribute and/or sell
16rem * copies of the Software, and permit persons to whom the Software is
17rem * furnished to do so, under the terms of the COPYING file.
18rem *
19rem * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20rem * KIND, either express or implied.
21rem *
22rem * SPDX-License-Identifier: curl
23rem *
24rem ***************************************************************************
25
26where.exe nmake.exe >nul 2>&1
27
28IF %ERRORLEVEL% == 1 (
29  ECHO Error: Can't find `nmake.exe` - be sure to run this script from within a Developer Command-Prompt
30  ECHO.
31) ELSE (
32  nmake /f Makefile.vc mode=static DEBUG=yes GEN_PDB=yes
33  IF %ERRORLEVEL% NEQ 0 (
34    ECHO "Error: Build Failed"
35  )
36)
37