File: setup.bat

package info (click to toggle)
rgl 0.64.13-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,676 kB
  • ctags: 927
  • sloc: cpp: 5,139; sh: 2,643; makefile: 91
file content (43 lines) | stat: -rw-r--r-- 1,041 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off
REM RGL windows build tool setup
REM This file is part of the RGL software
REM (c) 2003 D.Adler
REM $Id: setup.bat,v 1.6 2004/02/27 17:34:39 dadler Exp $

set SRC=src

REM === SETUP build tool =====================================================

set TARGET=x%1
if %TARGET% == xmingw goto mingw
if %TARGET% == xvc    goto vc
goto usage

REM === dump usage ===========================================================

:usage
echo usage: %0 [tool]
echo supported build tools:
echo   mingw    MinGW
echo   vc       Microsoft Visual C++
goto return

REM === build tool: mingw ====================================================

:mingw
echo include build/mingw/Makefile >%SRC%\Makefile.win
goto done

REM === build tool: vc =======================================================

:vc
echo include build/vc/Makefile >%SRC%\Makefile.win
goto done


REM === SETUP DONE ===========================================================

:done
echo setup.bat: configured for build tool '%1'

:return