File: make_win32_msvc.bat

package info (click to toggle)
bam 0.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 988 kB
  • ctags: 2,368
  • sloc: ansic: 15,322; python: 338; makefile: 42; cpp: 23; sh: 7
file content (25 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
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
@echo off

:: Check for Visual Studio
if exist "%VS90COMNTOOLS%" (
	set VSPATH="%VS90COMNTOOLS%"
	goto compile
)
if exist "%VS80COMNTOOLS%" (
	set VSPATH="%VS80COMNTOOLS%"
	goto compile
)

echo You need Microsoft Visual Studio 8 or 9 installed
pause
exit

:compile

call %VSPATH%vsvars32.bat

@cl /D_CRT_SECURE_NO_DEPRECATE /O2 /nologo src/tools/txt2c.c /Fesrc/tools/txt2c.exe
@src\tools\txt2c src\base.bam src\driver_gcc.bam src\driver_cl.bam > src\internal_base.h
@cl /D_CRT_SECURE_NO_DEPRECATE /W3 /TC /O2 /nologo /I src/lua src/lua/*.c src/*.c /Fesrc/bam.exe
@del *.obj