Skip to content
Newer
Older
100644 266 lines (216 sloc) 5.42 KB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
1 @echo off
2
3 rem The following settings are determined by the configure script.
4
5 set C_COMPILER=@C_COMPILER_BAT@
6 set C_PREPROC=@C_PREPROC_BAT@
7
8 set FLAGS_OBJ=@FLAGS_OBJ_BAT@
9 set FLAGS_DYN=@FLAGS_DYN_BAT@
10 set FLAGS_LIB=@FLAGS_LIB_BAT@
11 set FLAGS_EXE=@FLAGS_EXE_BAT@
12
13 set DEFS_OBJ=@DEFS_OBJ_BAT@
14 set DEFS_DYN=@DEFS_DYN_BAT@
15 set DEFS_LIB=@DEFS_LIB_BAT@
16 set DEFS_EXE=@DEFS_EXE_BAT@
17
18 set BUILD_OBJ=@BUILD_OBJ_BAT@
19 set BUILD_DYN=@BUILD_DYN_BAT@
20 set BUILD_LIB=@BUILD_LIB_BAT@
21 set BUILD_EXE=@BUILD_EXE_BAT@
22
23 set DEFS=@DEFS_BAT@
24 set LIBS=@LIBS_BAT@
25 set GAMBCLIB=@GAMBCLIB_BAT@
26 set GAMBCGSCLIB=@GAMBCGSCLIB_BAT@
27 set GAMBCGSILIB=@GAMBCGSILIB_BAT@
28 set LIB_PREFIX=@LIB_PREFIX_BAT@
29 set LIB_EXTENSION=@LIB_EXTENSION_BAT@
5a590cd @feeley Add to gambc-cc script the ability to report OBJ_EXTENSION, EXE_EXTEN…
authored
30 set OBJ_EXTENSION=@OBJ_EXTENSION_BAT@
31 set EXE_EXTENSION=@EXE_EXTENSION_BAT@
32 set BAT_EXTENSION=@BAT_EXTENSION_BAT@
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
33
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
34 if "%1" == "obj" goto obj
35 if not "%1" == ""obj"" goto not_obj
36 :obj
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
37
38 if not "%GAMBC_CC_VERBOSE%" == "yes" goto not_obj_verbose
39 echo.@BUILD_OBJ_ECHO_BAT@
40 :not_obj_verbose
41
42 @BUILD_OBJ_ECHO_BAT@
43
44 goto end
45 :not_obj
46
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
47 if "%1" == "dyn" goto dyn
48 if not "%1" == ""dyn"" goto not_dyn
49 :dyn
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
50
51 if not "%GAMBC_CC_VERBOSE%" == "yes" goto not_dyn_verbose
52 echo.@BUILD_DYN_ECHO_BAT@
53 :not_dyn_verbose
54
55 @BUILD_DYN_ECHO_BAT@
56
57 goto end
58 :not_dyn
59
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
60 if "%1" == "lib" goto lib
61 if not "%1" == ""lib"" goto not_lib
62 :lib
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
63
64 if not "%GAMBC_CC_VERBOSE%" == "yes" goto not_lib_verbose
65 echo.@BUILD_LIB_ECHO_BAT@
66 :not_lib_verbose
67
68 @BUILD_LIB_ECHO_BAT@
69
70 goto end
71 :not_lib
72
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
73 if "%1" == "exe" goto exe
74 if not "%1" == ""exe"" goto not_exe
75 :exe
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
76
77 if not "%GAMBC_CC_VERBOSE%" == "yes" goto not_exe_verbose
78 echo.@BUILD_EXE_ECHO_BAT@
79 :not_exe_verbose
80
81 @BUILD_EXE_ECHO_BAT@
82
83 goto end
84 :not_exe
85
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
86 if "%1" == "C_COMPILER" goto C_COMPILER
87 if not "%1" == ""C_COMPILER"" goto not_C_COMPILER
88 :C_COMPILER
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
89 echo.%C_COMPILER%
90 goto end
91 :not_C_COMPILER
92
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
93 if "%1" == "C_PREPROC" goto C_PREPROC
94 if not "%1" == ""C_PREPROC"" goto not_C_PREPROC
95 :C_PREPROC
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
96 echo.%C_PREPROC%
97 goto end
98 :not_C_PREPROC
99
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
100 if "%1" == "FLAGS_OBJ" goto FLAGS_OBJ
101 if not "%1" == ""FLAGS_OBJ"" goto not_FLAGS_OBJ
102 :FLAGS_OBJ
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
103 echo.%FLAGS_OBJ%
104 goto end
105 :not_FLAGS_OBJ
106
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
107 if "%1" == "FLAGS_DYN" goto FLAGS_DYN
108 if not "%1" == ""FLAGS_DYN"" goto not_FLAGS_DYN
109 :FLAGS_DYN
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
110 echo.%FLAGS_DYN%
111 goto end
112 :not_FLAGS_DYN
113
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
114 if "%1" == "FLAGS_LIB" goto FLAGS_LIB
115 if not "%1" == ""FLAGS_LIB"" goto not_FLAGS_LIB
116 :FLAGS_LIB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
117 echo.%FLAGS_LIB%
118 goto end
119 :not_FLAGS_LIB
120
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
121 if "%1" == "FLAGS_EXE" goto FLAGS_EXE
122 if not "%1" == ""FLAGS_EXE"" goto not_FLAGS_EXE
123 :FLAGS_EXE
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
124 echo.%FLAGS_EXE%
125 goto end
126 :not_FLAGS_EXE
127
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
128 if "%1" == "DEFS_OBJ" goto DEFS_OBJ
129 if not "%1" == ""DEFS_OBJ"" goto not_DEFS_OBJ
130 :DEFS_OBJ
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
131 echo.%DEFS_OBJ%
132 goto end
133 :not_DEFS_OBJ
134
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
135 if "%1" == "DEFS_DYN" goto DEFS_DYN
136 if not "%1" == ""DEFS_DYN"" goto not_DEFS_DYN
137 :DEFS_DYN
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
138 echo.%DEFS_DYN%
139 goto end
140 :not_DEFS_DYN
141
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
142 if "%1" == "DEFS_LIB" goto DEFS_LIB
143 if not "%1" == ""DEFS_LIB"" goto not_DEFS_LIB
144 :DEFS_LIB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
145 echo.%DEFS_LIB%
146 goto end
147 :not_DEFS_LIB
148
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
149 if "%1" == "DEFS_EXE" goto DEFS_EXE
150 if not "%1" == ""DEFS_EXE"" goto not_DEFS_EXE
151 :DEFS_EXE
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
152 echo.%DEFS_EXE%
153 goto end
154 :not_DEFS_EXE
155
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
156 if "%1" == "BUILD_OBJ" goto BUILD_OBJ
157 if not "%1" == ""BUILD_OBJ"" goto not_BUILD_OBJ
158 :BUILD_OBJ
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
159 echo.%BUILD_OBJ%
160 goto end
161 :not_BUILD_OBJ
162
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
163 if "%1" == "BUILD_DYN" goto BUILD_DYN
164 if not "%1" == ""BUILD_DYN"" goto not_BUILD_DYN
165 :BUILD_DYN
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
166 echo.%BUILD_DYN%
167 goto end
168 :not_BUILD_DYN
169
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
170 if "%1" == "BUILD_LIB" goto BUILD_LIB
171 if not "%1" == ""BUILD_LIB"" goto not_BUILD_LIB
172 :BUILD_LIB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
173 echo.%BUILD_LIB%
174 goto end
175 :not_BUILD_LIB
176
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
177 if "%1" == "BUILD_EXE" goto BUILD_EXE
178 if not "%1" == ""BUILD_EXE"" goto not_BUILD_EXE
179 :BUILD_EXE
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
180 echo.%BUILD_EXE%
181 goto end
182 :not_BUILD_EXE
183
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
184 if "%1" == "DEFS" goto DEFS
185 if not "%1" == ""DEFS"" goto not_DEFS
186 :DEFS
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
187 echo.%DEFS%
188 goto end
189 :not_DEFS
190
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
191 if "%1" == "LIBS" goto LIBS
192 if not "%1" == ""LIBS"" goto not_LIBS
193 :LIBS
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
194 echo.%LIBS%
195 goto end
196 :not_LIBS
197
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
198 if "%1" == "GAMBCLIB_DEFS" goto GAMBCLIB_DEFS
199 if not "%1" == ""GAMBCLIB_DEFS"" goto not_GAMBCLIB_DEFS
200 :GAMBCLIB_DEFS
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
201 echo.%GAMBCLIB_DEFS%
202 goto end
203 :not_GAMBCLIB_DEFS
204
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
205 if "%1" == "GAMBCLIB" goto GAMBCLIB
206 if not "%1" == ""GAMBCLIB"" goto not_GAMBCLIB
207 :GAMBCLIB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
208 echo.%GAMBCLIB%
209 goto end
210 :not_GAMBCLIB
211
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
212 if "%1" == "GAMBCGSCLIB" goto GAMBCGSCLIB
213 if not "%1" == ""GAMBCGSCLIB"" goto not_GAMBCGSCLIB
214 :GAMBCGSCLIB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
215 echo.%GAMBCGSCLIB%
216 goto end
217 :not_GAMBCGSCLIB
218
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
219 if "%1" == "GAMBCGSILIB" goto GAMBCGSILIB
220 if not "%1" == ""GAMBCGSILIB"" goto not_GAMBCGSILIB
221 :GAMBCGSILIB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
222 echo.%GAMBCGSILIB%
223 goto end
224 :not_GAMBCGSILIB
225
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
226 if "%1" == "LIB_PREFIX" goto LIB_PREFIX
227 if not "%1" == ""LIB_PREFIX"" goto not_LIB_PREFIX
228 :LIB_PREFIX
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
229 echo.%LIB_PREFIX%
230 goto end
231 :not_LIB_PREFIX
232
747c3e3 @feeley Fix on Windows the open-process procedure which was not escaping the …
authored
233 if "%1" == "LIB_EXTENSION" goto LIB_EXTENSION
234 if not "%1" == ""LIB_EXTENSION"" goto not_LIB_EXTENSION
235 :LIB_EXTENSION
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
236 echo.%LIB_EXTENSION%
237 goto end
238 :not_LIB_EXTENSION
239
5a590cd @feeley Add to gambc-cc script the ability to report OBJ_EXTENSION, EXE_EXTEN…
authored
240 if "%1" == "OBJ_EXTENSION" goto OBJ_EXTENSION
241 if not "%1" == ""OBJ_EXTENSION"" goto not_OBJ_EXTENSION
242 :OBJ_EXTENSION
243 echo.%OBJ_EXTENSION%
244 goto end
245 :not_OBJ_EXTENSION
246
247 if "%1" == "EXE_EXTENSION" goto EXE_EXTENSION
248 if not "%1" == ""EXE_EXTENSION"" goto not_EXE_EXTENSION
249 :EXE_EXTENSION
250 echo.%EXE_EXTENSION%
251 goto end
252 :not_EXE_EXTENSION
253
254 if "%1" == "BAT_EXTENSION" goto BAT_EXTENSION
255 if not "%1" == ""BAT_EXTENSION"" goto not_BAT_EXTENSION
256 :BAT_EXTENSION
257 echo.%BAT_EXTENSION%
258 goto end
259 :not_BAT_EXTENSION
260
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored
261 echo.gambc-cc.bat unknown operation "%1"
262 exit /b 1
263
264 :end
265 exit /b 0
Something went wrong with that request. Please try again.