tecmake.bat 4 KB
Newer Older
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
@echo off

REM Cygwin configuration
set MAKE_MODE=UNIX

REM *********************************************
REM Tecmake Configuration

REM Change the following lines to match your system installation
REM Use always  "/" is paths, except for TECMAKE_PATH

REM Do NOT use long file names with spaces here.
REM Use the tool "shortpath" to display the
REM   short name version of the current folder
REM   or pass the folder as the first parameter.
REM OR create a link to the folder using a name without spaces.
REM OR create a copy of the folder using a name without spaces.
REM *********************************************


REM Used only in some scripts on Tecmake for Windows.
REM Not used inside the Makefile.
REM Must use Windows standard PATH separators "\".
set TECMAKE_PATH=c:\tecgraf\tecmake

REM Used only for RCS, can be ignored in Windows.
REM THis is the only place where a cygdrive path is used.
set TECMAKE_HOME=/cygdrive/c/tecgraf/tecmake

REM This must be the GNU make
set TECMAKE_MAKE=make

REM Change the paths you need to match your installation:
rem set VC6=c:/app/lng/vc6
rem set VC7=c:/progra~1/micros~1.net/vc7
rem set VC8=c:/progra~1/mid05a~1/vc
rem set VC9=c:/progra~2/micros~1.0/vc

REM If you have problems with Visual C++ make sure that 
REM "C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE"
REM is in your PATH.

REM Leave this commented out to use the SDK installed with the compiler.
rem set PLATSDK=c:/progra~1/mifd68~1
REM VC9 installs the Windows SDK in a separate directory,
REM   usually is "C:\Program Files\Microsoft SDKs\Windows\v6.0A".
rem set VC9SDK=c:/progra~1/micros~3/windows/v6.0a
REM If PLATSDK is defined then VC9SDK i not used.

rem set OWC1=c:/app/lng/owc1
rem set BC55=c:/app/lng/bcc55
rem set BC56=c:/app/lng/CBuilderX
rem set MINGW3=c:/app/lng/mingw3
rem set MINGW4=c:/app/lng/mingw4
rem set GCC3=c:/cygwin15
rem set GCC4=c:/cygwin17

rem set GLUT=c:/app/lng/glut
rem set GTK=c:/app/lng/gtk

REM Uncomment the variables you need
rem set TECTOOLS_HOME=c:/tecgraf
rem set CD=%TECTOOLS_HOME%/cd
rem set IM=%TECTOOLS_HOME%/im
rem set IUP=%TECTOOLS_HOME%/iup
rem set LUA=%TECTOOLS_HOME%/lua
rem set LUA5=%TECTOOLS_HOME%/lua5
rem set LUA50=%TECTOOLS_HOME%/lua50
rem set LUA51=%TECTOOLS_HOME%/lua5.1
rem set CDDIR=%CD%/etc
                   
REM Must edit or set this for your Windows system
rem set TEC_SYSVERSION=5
rem set TEC_SYSMINOR=1
rem set TEC_SYSRELEASE=%TEC_SYSVERSION%.%TEC_SYSMINOR%
REM TEC_SYSRELEASE will be defined as a variable when compiling code only for gcc

REM *********************************************

if "%1"==""            goto default
if "%1"=="all"         goto all
if "%1"=="all-dll"     goto all-dll
if "%1"=="gcc3"        goto make
if "%1"=="gcc4"        goto make
if "%1"=="mingw3"      goto make
if "%1"=="mingw4"      goto make
if "%1"=="cygw15"      goto make
if "%1"=="cygw17"      goto make
if "%1"=="vc7"         goto make
if "%1"=="vc6"         goto make
if "%1"=="vc8"         goto make
if "%1"=="vc8_64"      goto make
if "%1"=="vc9"         goto make
if "%1"=="vc9_64"      goto make
if "%1"=="owc1"        goto make
if "%1"=="bc55"        goto make
if "%1"=="bc56"        goto make
if "%1"=="dll"         goto make
if "%1"=="dll7"        goto make
if "%1"=="dll8"        goto make
if "%1"=="dll8_64"     goto make
if "%1"=="dll9"        goto make
if "%1"=="dll9_64"     goto make
if "%1"=="dllw4"       goto make
if "%1"=="dllg4"       goto make
goto error

:all
FOR %%u IN (vc9_64 vc9 vc8_64 vc8 vc7 vc6 owc1 bc56 gcc3 mingw3) DO call %TECMAKE_PATH%\tecmakewin.bat %%u %2 %3 %4 %5 %6 %7 %8 %9
goto end

:all-dll
FOR %%u IN (vc9_64 vc9 vc8_64 vc8 vc7 vc6 owc1 bc56 gcc3 mingw3 dll dll7 dll8 dll8_64 dll9 dll9_64) DO call %TECMAKE_PATH%\tecmakewin.bat %%u %2 %3 %4 %5 %6 %7 %8 %9
goto end

:make
call %TECMAKE_PATH%\tecmakewin.bat %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end

:default
call %TECMAKE_PATH%\tecmakewin.bat vc9
goto end

:error
echo Invalid parameter.

:end