Skip to content
Newer
Older
100644 209 lines (156 sloc) 3.75 KB
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored Aug 3, 2009
1 #! /bin/sh
2
3 # The following settings are determined by the configure script.
4
5 C_COMPILER=@C_COMPILER_SH@
6 C_PREPROC=@C_PREPROC_SH@
7
8 FLAGS_OBJ=@FLAGS_OBJ_SH@
9 FLAGS_DYN=@FLAGS_DYN_SH@
10 FLAGS_LIB=@FLAGS_LIB_SH@
11 FLAGS_EXE=@FLAGS_EXE_SH@
12
13 DEFS_OBJ=@DEFS_OBJ_SH@
14 DEFS_DYN=@DEFS_DYN_SH@
15 DEFS_LIB=@DEFS_LIB_SH@
16 DEFS_EXE=@DEFS_EXE_SH@
17
18 BUILD_OBJ=@BUILD_OBJ_SH@
19 BUILD_DYN=@BUILD_DYN_SH@
20 BUILD_LIB=@BUILD_LIB_SH@
21 BUILD_EXE=@BUILD_EXE_SH@
22
23 DEFS=@DEFS_SH@
24 LIBS=@LIBS_SH@
25 GAMBCLIB=@GAMBCLIB_SH@
26 GAMBCGSCLIB=@GAMBCGSCLIB_SH@
27 GAMBCGSILIB=@GAMBCGSILIB_SH@
28 LIB_PREFIX=@LIB_PREFIX_SH@
29 LIB_EXTENSION=@LIB_EXTENSION_SH@
5a590cd @feeley Add to gambc-cc script the ability to report OBJ_EXTENSION, EXE_EXTEN…
authored Feb 3, 2012
30 OBJ_EXTENSION=@OBJ_EXTENSION_SH@
31 EXE_EXTENSION=@EXE_EXTENSION_SH@
32 BAT_EXTENSION=@BAT_EXTENSION_SH@
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored Aug 3, 2009
33
34 case "$1" in
35
36 "obj")
37
38 if test "${GAMBC_CC_VERBOSE}" != ""; then
39 echo @BUILD_OBJ_ECHO@
40 fi
41
42 @BUILD_OBJ@
43 ;;
44
45 "dyn")
46
47 if test "${GAMBC_CC_VERBOSE}" != ""; then
48 echo @BUILD_DYN_ECHO@
49 fi
50
51 @BUILD_DYN@
52 ;;
53
54 "lib")
55
56 if test "${GAMBC_CC_VERBOSE}" != ""; then
57 echo @BUILD_LIB_ECHO@
58 fi
59
60 @BUILD_LIB@
61 ;;
62
63 "exe")
64
65 if test "${GAMBC_CC_VERBOSE}" != ""; then
66 echo @BUILD_EXE_ECHO@
67 fi
68
69 @BUILD_EXE@
70 ;;
71
72 "C_COMPILER")
73 echo "${C_COMPILER}"
74 ;;
75
76 "C_PREPROC")
77 echo "${C_PREPROC}"
78 ;;
79
80 "FLAGS_OBJ")
81 echo "${FLAGS_OBJ}"
82 ;;
83
84 "FLAGS_DYN")
85 echo "${FLAGS_DYN}"
86 ;;
87
88 "FLAGS_LIB")
89 echo "${FLAGS_LIB}"
90 ;;
91
92 "FLAGS_EXE")
93 echo "${FLAGS_EXE}"
94 ;;
95
96 "DEFS_OBJ")
97 echo "${DEFS_OBJ}"
98 ;;
99
100 "DEFS_DYN")
101 echo "${DEFS_DYN}"
102 ;;
103
104 "DEFS_LIB")
105 echo "${DEFS_LIB}"
106 ;;
107
108 "DEFS_EXE")
109 echo "${DEFS_EXE}"
110 ;;
111
112 "BUILD_OBJ")
113 echo "${BUILD_OBJ}"
114 ;;
115
116 "BUILD_DYN")
117 echo "${BUILD_DYN}"
118 ;;
119
120 "BUILD_LIB")
121 echo "${BUILD_LIB}"
122 ;;
123
124 "BUILD_EXE")
125 echo "${BUILD_EXE}"
126 ;;
127
128 "DEFS")
129 echo "${DEFS}"
130 ;;
131
132 "LIBS")
133 echo "${LIBS}"
134 ;;
135
136 "GAMBCLIB")
137 echo "${GAMBCLIB}"
138 ;;
139
140 "GAMBCGSCLIB")
141 echo "${GAMBCGSCLIB}"
142 ;;
143
144 "GAMBCGSILIB")
145 echo "${GAMBCGSILIB}"
146 ;;
147
148 "LIB_PREFIX")
149 echo "${LIB_PREFIX}"
150 ;;
151
152 "LIB_EXTENSION")
153 echo "${LIB_EXTENSION}"
154 ;;
155
5a590cd @feeley Add to gambc-cc script the ability to report OBJ_EXTENSION, EXE_EXTEN…
authored Feb 3, 2012
156 "OBJ_EXTENSION")
157 echo "${OBJ_EXTENSION}"
158 ;;
159
160 "EXE_EXTENSION")
161 echo "${EXE_EXTENSION}"
162 ;;
163
164 "BAT_EXTENSION")
165 echo "${BAT_EXTENSION}"
166 ;;
167
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored Aug 3, 2009
168 "")
169 # Dump configure script settings
170
171 ESC_SH="sed -e s/\\\\/\\\\\\\\\\\\\\\\/g -e s/\\\"/\\\\\\\"/g -e s/\\\$/\\\\\\\$/g -e s/^/\"/ -e s/$/\"/"
172
173 echo C_COMPILER=`echo "${C_COMPILER}" | ${ESC_SH}`
174 echo C_PREPROC=`echo "${C_PREPROC}" | ${ESC_SH}`
175
176 echo FLAGS_OBJ=`echo "${FLAGS_OBJ}" | ${ESC_SH}`
177 echo FLAGS_DYN=`echo "${FLAGS_DYN}" | ${ESC_SH}`
178 echo FLAGS_LIB=`echo "${FLAGS_LIB}" | ${ESC_SH}`
179 echo FLAGS_EXE=`echo "${FLAGS_EXE}" | ${ESC_SH}`
180
181 echo DEFS_OBJ=`echo "${DEFS_OBJ}" | ${ESC_SH}`
182 echo DEFS_DYN=`echo "${DEFS_DYN}" | ${ESC_SH}`
183 echo DEFS_LIB=`echo "${DEFS_LIB}" | ${ESC_SH}`
184 echo DEFS_EXE=`echo "${DEFS_EXE}" | ${ESC_SH}`
185
186 echo BUILD_OBJ=`echo "${BUILD_OBJ}" | ${ESC_SH}`
187 echo BUILD_DYN=`echo "${BUILD_DYN}" | ${ESC_SH}`
188 echo BUILD_LIB=`echo "${BUILD_LIB}" | ${ESC_SH}`
189 echo BUILD_EXE=`echo "${BUILD_EXE}" | ${ESC_SH}`
190
191 echo DEFS=`echo "${DEFS}" | ${ESC_SH}`
192 echo LIBS=`echo "${LIBS}" | ${ESC_SH}`
193 echo GAMBCLIB=`echo "${GAMBCLIB}" | ${ESC_SH}`
194 echo GAMBCGSCLIB=`echo "${GAMBCGSCLIB}" | ${ESC_SH}`
195 echo GAMBCGSILIB=`echo "${GAMBCGSILIB}" | ${ESC_SH}`
196 echo LIB_PREFIX=`echo "${LIB_PREFIX}" | ${ESC_SH}`
197 echo LIB_EXTENSION=`echo "${LIB_EXTENSION}" | ${ESC_SH}`
5a590cd @feeley Add to gambc-cc script the ability to report OBJ_EXTENSION, EXE_EXTEN…
authored Feb 3, 2012
198 echo OBJ_EXTENSION=`echo "${OBJ_EXTENSION}" | ${ESC_SH}`
199 echo EXE_EXTENSION=`echo "${EXE_EXTENSION}" | ${ESC_SH}`
200 echo BAT_EXTENSION=`echo "${BAT_EXTENSION}" | ${ESC_SH}`
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored Aug 3, 2009
201 ;;
202
203 *)
c5cd419 @feeley Fix configure script so that it correctly propagates the configure sc…
authored Jan 29, 2012
204 echo "gambc-cc unknown operation \"$1\""
8fee264 @feeley Add -obj and -exe options to gsc, allowing executable programs to be …
authored Aug 3, 2009
205 exit 1
206 ;;
207
208 esac
Something went wrong with that request. Please try again.