-
Notifications
You must be signed in to change notification settings - Fork 0
/
makewin32.bat
35 lines (28 loc) · 1.09 KB
/
makewin32.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
REM $Id: makewin32.bat,v 1.2 2001/12/16 11:11:52 shadrack Exp $
@echo off
REM Comments, bugs go to [email protected]
REM Mail me on how to run the command line compiler, and I'll flame you. RTFM.
if defined INCLUDE goto ok
if not exist "\program files\microsoft visual studio\VC98\bin\vcvars32.bat" goto altloc1
call "\program files\microsoft visual studio\VC98\bin\vcvars32.bat"
goto ok
:altloc1
if not exist "\programs\microsoft visual studio\VC98\bin\vcvars32.bat" goto altloc2
call "\programs\microsoft visual studio\VC98\bin\vcvars32.bat"
goto ok
:altloc2
if not exist "\programs\msvs\VC98\bin\vcvars32.bat" goto runvc
call "\programs\msvs\VC98\bin\vcvars32.bat"
goto ok
:ok
if not defined INCLUDE goto runvc
if not exist config.h copy config.h.win32 config.h
nmake DEBUG=1 -f makefile.win32
nmake -f makefile.win32
goto done
:runvc
echo You need to run the VCVARS32.BAT batch file.
echo You'll find it in the Visual C++ binaries directory.
echo Also, when installing Visual C++, you are asked if to automatically
echo run this file when starting a command shell.
:done