modified: myjupyterlab.sh
[GalaxyCodeBases.git] / etc / Windows / vlmcsd_old_vancepym / make_linux
blob4fad2509338050ed332eb86d935c9070e69f14d1
1 #!/bin/bash
3 #export VLMCSD_VERSION="svn`svnversion | sed -e 's/:.*//; s/[^0-9]*$//; s/^$/0/'`"
5 export VERBOSE=3
6 export DNS_PARSER=internal
8 MAKEFLAGS="-j`nproc` -B"
9 REUSEOBJFLAGS="-j"
10 SMALLCC="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
11 SMALLLD="-pipe -Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none"
12 SMALL="$SMALLCC $SMALLLD"
15 rm -f vlmcs vlmcsdmulti vlmcsd 2>/dev/null
16 rm -fr binaries
18 mkdir -p binaries/Linux/intel/glibc
19 mkdir -p binaries/Linux/intel/uclibc
20 mkdir -p binaries/Linux/intel/static
21 mkdir -p binaries/Linux/intel/musl
23 mkdir -p binaries/Linux/sparc32/glibc
24 mkdir -p binaries/Linux/s390/glibc
26 mkdir -p binaries/Android/arm/bionic
27 mkdir -p binaries/Android/arm/static
28 mkdir -p binaries/Android/intel/bionic
29 mkdir -p binaries/Android/intel/static
30 mkdir -p binaries/Android/mips/bionic
31 mkdir -p binaries/Android/mips/static
33 mkdir -p binaries/Linux/arm/little-endian/glibc
34 mkdir -p binaries/Linux/arm/little-endian/musl
35 mkdir -p binaries/Linux/arm/little-endian/uclibc
36 mkdir -p binaries/Linux/arm/little-endian/static
37 mkdir -p binaries/Linux/arm/big-endian/uclibc
38 mkdir -p binaries/Linux/arm/big-endian/static
40 mkdir -p binaries/Linux/mips/little-endian/glibc
41 mkdir -p binaries/Linux/mips/little-endian/uclibc
42 mkdir -p binaries/Linux/mips/little-endian/static
43 mkdir -p binaries/Linux/mips/little-endian/musl
44 mkdir -p binaries/Linux/mips/big-endian/uclibc
45 mkdir -p binaries/Linux/mips/big-endian/static
46 mkdir -p binaries/Linux/mips/big-endian/glibc
47 mkdir -p binaries/Linux/mips/big-endian/musl
49 mkdir -p binaries/Linux/ppc/little-endian/glibc
50 mkdir -p binaries/Linux/ppc/big-endian/glibc
51 mkdir -p binaries/Linux/ppc/big-endian/uclibc
52 mkdir -p binaries/Linux/ppc/big-endian/static
54 mkdir -p binaries/MacOSX/intel
55 mkdir -p binaries/MacOSX/ppc
56 mkdir -p binaries/iOS/arm
58 mkdir -p binaries/FreeBSD/intel
59 mkdir -p binaries/NetBSD/intel
60 mkdir -p binaries/OpenBSD/intel
61 mkdir -p binaries/DragonFly/intel
62 mkdir -p binaries/Solaris/intel
63 mkdir -p binaries/Windows/intel
64 mkdir -p binaries/Minix/intel
66 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
67 export STAGING_DIR=.
69 # Windows 32-bit using MingW32-w64 toolchain on Ubuntu Linux
70 export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-x86.exe
71 export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-x86.exe
72 export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-x86.exe
73 export DLL_NAME=binaries/Windows/intel/libkms32.dll
74 export THREADS=1
75 export CFLAGS="$SMALLCC"
76 export CC=i686-w64-mingw32-gcc
77 export PLATFORMFLAGS="-march=i686 -mtune=generic -fwhole-program -pipe"
78 export LDFLAGS="-lws2_32 -Wl,--gc-sections,--force-exe-suffix,--large-address-aware,--nxcompat,--dynamicbase,--tsaware"
79 export FEATURES=full
81 make $MAKEFLAGS CAT=2 all $MULTI_NAME
83 if [ $? != 0 ]; then
84 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
85 exit $?
88 export CFLAGS="$CFLAGS -flto=jobserver -fvisibility=hidden"
89 export LDFLAGS="$LDFLAGS -static-libgcc"
91 make $MAKEFLAGS FEATURES=minimum $DLL_NAME
93 if [ $? != 0 ]; then
94 echo Error creating $DLL_NAME
95 exit $?
100 # Windows 32-bit using MingW32-w64 toolchain on Ubuntu Linux using MS RPC
101 export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-msrpc-x86.exe
102 export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-msrpc-x86.exe
103 export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-msrpc-x86.exe
104 export THREADS=1
105 export CFLAGS="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fmerge-all-constants -Wno-unused-variable -Wno-missing-braces"
106 export CC=i686-w64-mingw32-gcc
107 export PLATFORMFLAGS="-march=i686 -mtune=generic -pipe"
108 export LDFLAGS="-Wl,--gc-sections,--force-exe-suffix,--large-address-aware,--nxcompat,--dynamicbase,--tsaware -fwhole-program"
109 export FEATURES=full
111 make $MAKEFLAGS CAT=2 MSRPC=1 all
113 if [ $? != 0 ]; then
114 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
115 exit $?
118 make $MAKEFLAGS MSRPC=1 $MULTI_NAME
120 if [ $? != 0 ]; then
121 echo Error creating $MULTI_NAME
122 exit $?
127 # Windows 64-bit using MingW32-w64 toolchain on Ubuntu Linux
128 export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-x64.exe
129 export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-x64.exe
130 export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-x64.exe
131 export DLL_NAME=binaries/Windows/intel/libkms64.dll
132 export THREADS=1
133 export CFLAGS="$SMALLCC"
134 export CC=x86_64-w64-mingw32-gcc
135 export PLATFORMFLAGS="-march=nocona -mtune=generic -fwhole-program -pipe"
136 export LDFLAGS="-lws2_32 -Wl,--gc-sections,--force-exe-suffix,--nxcompat,--dynamicbase,--tsaware"
138 make $MAKEFLAGS CAT=2 all $MULTI_NAME
140 if [ $? != 0 ]; then
141 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
142 exit $?
145 export CFLAGS="$CFLAGS -flto=jobserver -fvisibility=hidden"
146 export LDFLAGS="$LDFLAGS -static-libgcc"
148 make $MAKEFLAGS FEATURES=minimum $DLL_NAME
150 if [ $? != 0 ]; then
151 echo Error creating $DLL_NAME
152 exit $?
158 # Windows 64-bit using MingW32-w64 toolchain on Ubuntu Linux using MS RPC
159 export CLIENT_NAME=binaries/Windows/intel/vlmcs-Windows-msrpc-x64.exe
160 export PROGRAM_NAME=binaries/Windows/intel/vlmcsd-Windows-msrpc-x64.exe
161 export MULTI_NAME=binaries/Windows/intel/vlmcsdmulti-Windows-msrpc-x64.exe
162 export THREADS=1
163 export CFLAGS="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fmerge-all-constants -Wno-unused-variable -Wno-missing-braces"
164 export CC=x86_64-w64-mingw32-gcc
165 export PLATFORMFLAGS="-march=nocona -mtune=generic -pipe"
166 export LDFLAGS="-Wl,--gc-sections,--force-exe-suffix,--nxcompat,--dynamicbase,--tsaware -fwhole-program"
168 make $MAKEFLAGS CAT=2 MSRPC=1 all
170 if [ $? != 0 ]; then
171 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
172 exit $?
175 make $MAKEFLAGS MSRPC=1 $MULTI_NAME
177 if [ $? != 0 ]; then
178 echo Error creating $MULTI_NAME
179 exit $?
185 # Linux mips32el with uClibc 0.9.33.2 using gcc 4.9 from OpenWRT toolchain
186 export CLIENT_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcs-mips32el-openwrt-uclib
187 export PROGRAM_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsd-mips32el-openwrt-uclibc
188 export CC=/opt/toolchains/mipsel-openwrt-linux-uclibc/toolchain-mipsel_mips32_gcc-4.9-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-gcc
189 export CFLAGS="$SMALLCC -DNO_LIMIT"
190 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
191 export LDFLAGS="$SMALLLD"
192 export THREADS=0
194 make $MAKEFLAGS
196 if [ $? != 0 ]; then
197 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
198 exit $?
201 export CLIENT_NAME=binaries/Linux/mips/little-endian/static/vlmcs-mips32el-openwrt-uclib-static
202 export PROGRAM_NAME=binaries/Linux/mips/little-endian/static/vlmcsd-mips32el-openwrt-uclibc-static
203 export MULTI_NAME=binaries/Linux/mips/little-endian/static/vlmcsdmulti-mips32el-openwrt-uclibc-static
204 export LDFLAGS="$LDFLAGS -static"
206 make $REUSEOBJFLAGS
208 if [ $? != 0 ]; then
209 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
210 exit $?
213 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
215 make $REUSEOBJFLAGS $MULTI_NAME
217 if [ $? != 0 ]; then
218 echo Error creating $MULTI_NAME
219 exit $?
222 export MULTI_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsdmulti-mips32el-openwrt-uclibc
223 export LDFLAGS="$SMALLLD"
225 make $REUSEOBJFLAGS $MULTI_NAME
227 if [ $? != 0 ]; then
228 echo Error creating $MULTI_NAME
229 exit $?
235 # Linux mips16el with uClibc 0.9.33.2 using gcc 4.9 from OpenWRT toolchain with statically linked libgcc for Asus routers, e.g. Asus RT-N66U
236 export CLIENT_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcs-mips16el-asus-rt-n66u-uclibc
237 export PROGRAM_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsd-mips16el-asus-rt-n66u-uclibc
238 export CC=/opt/toolchains/mipsel-openwrt-linux-uclibc/toolchain-mipsel_mips32_gcc-4.9-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-gcc
239 export CFLAGS="$SMALLCC -static-libgcc -DNO_LIMIT"
240 export PLATFORMFLAGS="-mips32 -mips16 -flto=jobserver -fwhole-program"
241 export LDFLAGS="$SMALLLD"
242 export THREADS=0
244 make $MAKEFLAGS
246 if [ $? != 0 ]; then
247 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
248 exit $?
251 export CLIENT_NAME=binaries/Linux/mips/little-endian/static/vlmcs-mips16el-asus-rt-n66u-uclibc-static
252 export PROGRAM_NAME=binaries/Linux/mips/little-endian/static/vlmcsd-mips16el-asus-rt-n66u-uclibc-static
253 export MULTI_NAME=binaries/Linux/mips/little-endian/static/vlmcsdmulti-mips16el-asus-rt-n66u-uclibc-static
254 export LDFLAGS="$LDFLAGS -static"
256 make $REUSEOBJFLAGS
258 if [ $? != 0 ]; then
259 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
260 exit $?
263 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
265 make $REUSEOBJFLAGS $MULTI_NAME
267 if [ $? != 0 ]; then
268 echo Error creating $MULTI_NAME
269 exit $?
272 export MULTI_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsdmulti-mips16el-asus-rt-n66u-uclibc
273 export LDFLAGS="$SMALLLD"
275 make $REUSEOBJFLAGS $MULTI_NAME
277 if [ $? != 0 ]; then
278 echo Error creating $MULTI_NAME
279 exit $?
287 # Linux mips16el with uClibc 0.9.33.2 using gcc 4.8 from OpenWRT toolchain
288 export CLIENT_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcs-mips16el-openwrt-uclibc
289 export PROGRAM_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsd-mips16el-openwrt-uclibc
290 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
291 export LDFLAGS="$SMALLLD"
293 make $MAKEFLAGS
295 if [ $? != 0 ]; then
296 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
297 exit $?
300 export CLIENT_NAME=binaries/Linux/mips/little-endian/static/vlmcs-mips16el-openwrt-uclib-static
301 export PROGRAM_NAME=binaries/Linux/mips/little-endian/static/vlmcsd-mips16el-openwrt-uclibc-static
302 export MULTI_NAME=binaries/Linux/mips/little-endian/static/vlmcsdmulti-mips16el-openwrt-uclibc-static
303 export LDFLAGS="$LDFLAGS -static"
305 make $REUSEOBJFLAGS
307 if [ $? != 0 ]; then
308 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
309 exit $?
312 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
314 make $REUSEOBJFLAGS $MULTI_NAME
316 if [ $? != 0 ]; then
317 echo Error creating $MULTI_NAME
318 exit $?
321 export MULTI_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsdmulti-mips16el-openwrt-uclibc
322 export LDFLAGS="$SMALLLD"
324 make $REUSEOBJFLAGS $MULTI_NAME
326 if [ $? != 0 ]; then
327 echo Error creating $MULTI_NAME
328 exit $?
334 # Linux mips16el eglibc 2.19 using gcc 4.8 from OpenWRT toolchain
335 export CLIENT_NAME=binaries/Linux/mips/little-endian/glibc/vlmcs-mips16el-openwrt-glibc
336 export PROGRAM_NAME=binaries/Linux/mips/little-endian/glibc/vlmcsd-mips16el-openwrt-glibc
337 export MULTI_NAME=binaries/Linux/mips/little-endian/glibc/vlmcsdmulti-mips16el-openwrt-glibc
338 export CC=/opt/toolchains/mipsel_74kc+dsp2_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mipsel-openwrt-linux-gnu-gcc-4.9.2
339 #export CC=~/openwrt/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_eglibc-2.19/bin/mipsel-openwrt-linux-gcc
340 export CFLAGS="$SMALLCC"
341 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=mips32 -mips16"
342 export LDFLAGS="$SMALLLD"
343 export THREADS=0
345 make $MAKEFLAGS
347 if [ $? != 0 ]; then
348 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
349 exit $?
352 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
354 make $REUSEOBJFLAGS $MULTI_NAME
356 if [ $? != 0 ]; then
357 echo Error creating $MULTI_NAME
358 exit $?
364 # PowerPC 64-bit big-endian glibc.
365 export CLIENT_NAME=binaries/Linux/ppc/big-endian/glibc/vlmcs-ppc64-glibc
366 export PROGRAM_NAME=binaries/Linux/ppc/big-endian/glibc/vlmcsd-ppc64-glibc
367 export MULTI_NAME=binaries/Linux/ppc/big-endian/glibc/vlmcsdmulti-ppc64-glibc
368 export CC=/opt/toolchains/ppc64-glibc2.19-gcc-4.9.1/bin/powerpc64-linux-gcc
369 export CFLAGS="$SMALLCC"
370 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
371 export LDFLAGS="$SMALLLD"
372 export THREADS=0
374 make $MAKEFLAGS
376 if [ $? != 0 ]; then
377 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
378 exit $?
381 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
383 make $REUSEOBJFLAGS $MULTI_NAME
385 if [ $? != 0 ]; then
386 echo Error creating $MULTI_NAME
387 exit $?
393 # PowerPC 64-bit little-endian glibc.
394 export CLIENT_NAME=binaries/Linux/ppc/little-endian/glibc/vlmcs-ppc64el-glibc
395 export PROGRAM_NAME=binaries/Linux/ppc/little-endian/glibc/vlmcsd-ppc64el-glibc
396 export MULTI_NAME=binaries/Linux/ppc/little-endian/glibc/vlmcsdmulti-ppc64el-glibc
397 export CC=/opt/toolchains/ppc64el-glibc2.20-gcc-4.9.1/bin/powerpc64le-linux-gcc
398 export CFLAGS="$SMALLCC"
399 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
400 export LDFLAGS="$SMALLLD"
401 export THREADS=0
403 make DNS_PARSER=OS $MAKEFLAGS
405 if [ $? != 0 ]; then
406 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
407 exit $?
410 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
412 make DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
414 if [ $? != 0 ]; then
415 echo Error creating $MULTI_NAME
416 exit $?
422 # PowerPC glibc. Compiles with gcc 4.8 from OpenWRT toolchain but uses libs from an old DM500 toolchain to be compatible with glibc 2.3
423 export CLIENT_NAME=binaries/Linux/ppc/big-endian/glibc/vlmcs-ppc-glibc
424 export PROGRAM_NAME=binaries/Linux/ppc/big-endian/glibc/vlmcsd-ppc-glibc
425 export MULTI_NAME=binaries/Linux/ppc/big-endian/glibc/vlmcsdmulti-ppc-glibc
426 export CC=~/openwrt/staging_dir/toolchain-powerpc_405_gcc-4.8-linaro_eglibc-2.19/bin/powerpc-openwrt-linux-gcc
427 export CFLAGS="$SMALLCC"
428 export PLATFORMFLAGS="-flto=jobserver -fwhole-program --sysroot=/opt/simplebuild/toolchains/powerpc -L/opt/simplebuild/toolchains/powerpc/lib -L/opt/simplebuild/toolchains/powerpc/usr/lib"
429 export LDFLAGS="$SMALLLD"
430 export THREADS=0
432 make $MAKEFLAGS
434 if [ $? != 0 ]; then
435 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
436 exit $?
439 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
441 make $REUSEOBJFLAGS $MULTI_NAME
443 if [ $? != 0 ]; then
444 echo Error creating $MULTI_NAME
445 exit $?
451 # Mips 32 glibc compiled with gcc 4.9.2 from OpenWRT toolchain
452 export CLIENT_NAME=binaries/Linux/mips/big-endian/glibc/vlmcs-mips32-openwrt-glibc
453 export PROGRAM_NAME=binaries/Linux/mips/big-endian/glibc/vlmcsd-mips32-openwrt-glibc
454 export MULTI_NAME=binaries/Linux/mips/big-endian/glibc/vlmcsdmulti-mips32-openwrt-glibc
455 export CC=/opt/toolchains/mips_34kc_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mips-openwrt-linux-gcc
456 #export CC=~/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_eglibc-2.19/bin/mips-openwrt-linux-gcc
457 export CFLAGS="$SMALLCC"
458 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
459 export LDFLAGS="$SMALLLD"
460 export THREADS=0
462 make $MAKEFLAGS
464 if [ $? != 0 ]; then
465 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
466 exit $?
469 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
471 make $REUSEOBJFLAGS $MULTI_NAME
473 if [ $? != 0 ]; then
474 echo Error creating $MULTI_NAME
475 exit $?
482 # Mips 32 glibc compiled with gcc 4.9.2 from OpenWRT toolchain
483 export CLIENT_NAME=binaries/Linux/mips/big-endian/glibc/vlmcs-mips16-openwrt-glibc
484 export PROGRAM_NAME=binaries/Linux/mips/big-endian/glibc/vlmcsd-mips16-openwrt-glibc
485 export MULTI_NAME=binaries/Linux/mips/big-endian/glibc/vlmcsdmulti-mips16-openwrt-glibc
486 export CC=/opt/toolchains/mips_34kc_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mips-openwrt-linux-gcc
487 #export CC=~/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_eglibc-2.19/bin/mips-openwrt-linux-gcc
488 export CFLAGS="$SMALLCC"
489 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32 -mips16"
490 export LDFLAGS="$SMALLLD"
491 export THREADS=0
493 make $MAKEFLAGS
495 if [ $? != 0 ]; then
496 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
497 exit $?
500 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
502 make $REUSEOBJFLAGS $MULTI_NAME
504 if [ $? != 0 ]; then
505 echo Error creating $MULTI_NAME
506 exit $?
513 # mips32el glibc 2.19 compiled with gcc 4.8 from OpenWRT toolchain
514 export CLIENT_NAME=binaries/Linux/mips/little-endian/glibc/vlmcs-mips32el-openwrt-glibc
515 export PROGRAM_NAME=binaries/Linux/mips/little-endian/glibc/vlmcsd-mips32el-openwrt-glibc
516 export MULTI_NAME=binaries/Linux/mips/little-endian/glibc/vlmcsdmulti-mips32el-openwrt-glibc
517 export CC=/opt/toolchains/mipsel_74kc+dsp2_gcc-4.9-linaro_eglibc-2.19-mips16/bin/mipsel-openwrt-linux-gnu-gcc-4.9.2
518 #export CC=~/openwrt/staging_dir/toolchain-mipsel_mips32_gcc-4.8-linaro_eglibc-2.19/bin/mipsel-openwrt-linux-gcc
519 export CFLAGS="$SMALLCC"
520 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
521 export LDFLAGS="$SMALLLD"
522 export THREADS=0
524 make $MAKEFLAGS
526 if [ $? != 0 ]; then
527 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
528 exit $?
531 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
533 make $REUSEOBJFLAGS $MULTI_NAME
535 if [ $? != 0 ]; then
536 echo Error creating $MULTI_NAME
537 exit $?
543 # mips1el uclibc with old tomato toolchain gcc 3.2.3 with Broadcom extensions uClibc 0.9.19
544 export CLIENT_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcs-mips1el-tomato-uclibc
545 export PROGRAM_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsd-mips1el-tomato-uclibc
546 export MULTI_NAME=binaries/Linux/mips/little-endian/uclibc/vlmcsdmulti-mips1el-tomato-uclibc
547 export CC=/opt/brcm/hndtools-mipsel-uclibc/bin/mipsel-uclibc-gcc
548 export CFLAGS="-DNO_BUILTIN -pipe -fno-common -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
549 export PLATFORMFLAGS=""
550 export LDFLAGS="-pipe -Wl,-z,norelro"
551 export THREADS=0
552 #export TERMINAL_WIDTH=80
554 make NO_DNS=1 CAT=2 $MAKEFLAGS $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
556 if [ $? != 0 ]; then
557 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
558 exit $?
561 export CLIENT_NAME=binaries/Linux/mips/little-endian/static/vlmcs-mips1el-tomato-uclibc-static
562 export PROGRAM_NAME=binaries/Linux/mips/little-endian/static/vlmcsd-mips1el-tomato-uclibc-static
563 export MULTI_NAME=binaries/Linux/mips/little-endian/static/vlmcsdmulti-mips1el-tomato-uclibc-static
564 export LDFLAGS="$LDFLAGS -static"
566 make NO_DNS=1 $REUSEOBJFLAGS $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME CAT=2
568 if [ $? != 0 ]; then
569 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
570 exit $?
576 #Android gcc 4.8 with API Level 3 (Android 1.5 cupcake) armv7
578 export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android15-armv7
579 export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android15-armv7
580 export CC=/opt/toolchains/armelv7-android-3/bin/arm-linux-androideabi-gcc
581 export CFLAGS="$SMALLCC"
582 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
583 export THREADS=0
584 export LDFLAGS="$SMALLLD"
586 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
588 if [ $? != 0 ]; then
589 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
590 exit $?
593 export CLIENT_NAME=binaries/Android/arm/static/vlmcs-android15-armv7-static
594 export PROGRAM_NAME=binaries/Android/arm/static/vlmcsd-android15-armv7-static
595 export MULTI_NAME=binaries/Android/arm/static/vlmcsdmulti-android15-armv7-static
596 export LDFLAGS="$LDFLAGS -static"
598 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS
600 if [ $? != 0 ]; then
601 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
602 exit $?
605 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
607 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
609 if [ $? != 0 ]; then
610 echo Error creating $MULTI_NAME
611 exit $?
614 export LDFLAGS="$SMALLLD"
615 export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android15-armv7
617 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
619 if [ $? != 0 ]; then
620 echo Error creating $MULTI_NAME
621 exit $?
627 #Android gcc 4.8 with API Level 3 (Android 1.5 cupcake) armv5
629 export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android15-armv5
630 export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android15-armv5
631 export CC=/opt/toolchains/armelv7-android-3/bin/arm-linux-androideabi-gcc
632 export CFLAGS="$SMALLCC"
633 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5te -mthumb"
634 export THREADS=0
635 export LDFLAGS="$SMALLLD"
637 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
639 if [ $? != 0 ]; then
640 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
641 exit $?
644 export CLIENT_NAME=binaries/Android/arm/static/vlmcs-android15-armv5-static
645 export PROGRAM_NAME=binaries/Android/arm/static/vlmcsd-android15-armv5-static
646 export MULTI_NAME=binaries/Android/arm/static/vlmcsdmulti-android15-armv5-static
647 export LDFLAGS="$LDFLAGS -static"
649 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS
651 if [ $? != 0 ]; then
652 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
653 exit $?
656 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
658 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
660 if [ $? != 0 ]; then
661 echo Error creating $MULTI_NAME
662 exit $?
665 export LDFLAGS="$SMALLLD"
666 export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android15-armv5
668 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
670 if [ $? != 0 ]; then
671 echo Error creating $MULTI_NAME
672 exit $?
678 #Android gcc 4.8 with API Level 16 (Android 4.1 Jelly Bean) armv7
680 export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android41-armv7
681 export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android41-armv7
682 export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android41-armv7
683 export CC=/opt/toolchains/armelv7-android-16/bin/arm-linux-androideabi-gcc
684 export CFLAGS="$SMALLCC"
685 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb -fPIE -pie"
686 export THREADS=0
687 export LDFLAGS="$SMALLLD"
689 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
691 if [ $? != 0 ]; then
692 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
693 exit $?
696 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
698 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
700 if [ $? != 0 ]; then
701 echo Error creating $MULTI_NAME
702 exit $?
708 ##Android gcc 4.8 with API Level 21 (Android 5.0 Lollipop) armv7
710 #export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android50-armv7
711 #export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android50-armv7
712 #export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android50-armv7
713 #export CC=/opt/toolchains/armelv7-android-21/bin/arm-linux-androideabi-gcc
714 #export CFLAGS="$SMALLCC"
715 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb -fPIE -pie"
716 #export THREADS=0
717 #export LDFLAGS="$SMALLLD"
719 #make NOLPTHREAD=1 $MAKEFLAGS
721 #if [ $? != 0 ]; then
722 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
723 # exit $?
726 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
728 #make NOLPTHREAD=1 $REUSEOBJFLAGS $MULTI_NAME
730 #if [ $? != 0 ]; then
731 # echo Error creating $MULTI_NAME
732 # exit $?
739 #Android gcc 4.9 with API Level 21 (Android 5.0 Lollipop) arm64el
741 export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android50-arm64v8
742 export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android50-arm64v8
743 export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android50-arm64v8
744 export CC=/opt/toolchains/arm64el-android-21/bin/aarch64-linux-android-gcc
745 export CFLAGS="$SMALLCC"
746 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mtune=generic -mfix-cortex-a53-835769 -march=armv8-a -fPIE -pie"
747 export THREADS=0
748 export LDFLAGS="$SMALLLD"
750 make NOLPTHREAD=1 NOLRESOLV=1 NO_DNS=0 $MAKEFLAGS
752 if [ $? != 0 ]; then
753 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
754 exit $?
757 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
759 make NOLPTHREAD=1 NOLRESOLV=1 NO_DNS=0 $REUSEOBJFLAGS $MULTI_NAME
761 if [ $? != 0 ]; then
762 echo Error creating $MULTI_NAME
763 exit $?
769 #Android gcc 4.9 with API Level 21 (Android 5.0 Lollipop) arm64el STATIC
771 export CLIENT_NAME=binaries/Android/arm/static/vlmcs-android50-arm64v8-static
772 export PROGRAM_NAME=binaries/Android/arm/static/vlmcsd-android50-arm64v8-static
773 export MULTI_NAME=binaries/Android/arm/static/vlmcsdmulti-android50-arm64v8-static
774 export CC=/opt/toolchains/arm64el-android-21/bin/aarch64-linux-android-gcc
775 export CFLAGS="$SMALLCC"
776 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mtune=generic -mfix-cortex-a53-835769 -march=armv8-a"
777 export THREADS=0
778 export LDFLAGS="$SMALLLD -static"
780 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
782 if [ $? != 0 ]; then
783 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
784 exit $?
787 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
789 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
791 if [ $? != 0 ]; then
792 echo Error creating $MULTI_NAME
793 exit $?
799 #Android gcc 4.8 with API Level 9 (Android 2.3 Gingerbread) x86
801 export CLIENT_NAME=binaries/Android/intel/bionic/vlmcs-android23-x86
802 export PROGRAM_NAME=binaries/Android/intel/bionic/vlmcsd-android23-x86
803 export CC=/opt/toolchains/x86-android-9/bin/i686-linux-android-gcc
804 export CFLAGS="$SMALLCC"
805 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m32"
806 export THREADS=1
807 export LDFLAGS="$SMALLLD"
809 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
811 if [ $? != 0 ]; then
812 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
813 exit $?
816 export CLIENT_NAME=binaries/Android/intel/static/vlmcs-android23-x86-static
817 export PROGRAM_NAME=binaries/Android/intel/static/vlmcsd-android23-x86-static
818 export MULTI_NAME=binaries/Android/intel/static/vlmcsdmulti-android23-x86-static
819 export LDFLAGS="$LDFLAGS -static"
821 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS
823 if [ $? != 0 ]; then
824 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
825 exit $?
828 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
830 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
832 if [ $? != 0 ]; then
833 echo Error creating $MULTI_NAME
834 exit $?
837 export LDFLAGS="$SMALLLD"
838 export MULTI_NAME=binaries/Android/intel/bionic/vlmcsdmulti-android23-x86
840 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
842 if [ $? != 0 ]; then
843 echo Error creating $MULTI_NAME
844 exit $?
850 #Android gcc 4.8 with API Level 16 (Android 4.1 Jelly Bean) x86
852 export CLIENT_NAME=binaries/Android/intel/bionic/vlmcs-android41-x86
853 export PROGRAM_NAME=binaries/Android/intel/bionic/vlmcsd-android41-x86
854 export MULTI_NAME=binaries/Android/intel/bionic/vlmcsdmulti-android41-x86
855 export CC=/opt/toolchains/x86-android-16/bin/i686-linux-android-gcc
856 export CFLAGS="$SMALLCC"
857 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m32 -fPIE -pie"
858 export THREADS=1
859 export LDFLAGS="$SMALLLD"
861 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
863 if [ $? != 0 ]; then
864 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
865 exit $?
868 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
870 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
872 if [ $? != 0 ]; then
873 echo Error creating $MULTI_NAME
874 exit $?
880 ##Android gcc 4.8 with API Level 21 (Android 5.0 Lollipop) x86
882 #export CLIENT_NAME=binaries/Android/intel/bionic/vlmcs-android50-x86
883 #export PROGRAM_NAME=binaries/Android/intel/bionic/vlmcsd-android50-x86
884 #export MULTI_NAME=binaries/Android/intel/bionic/vlmcsdmulti-android50-x86
885 #export CC=/opt/toolchains/x86-android-21/bin/i686-linux-android-gcc
886 #export CFLAGS="$SMALLCC"
887 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m32 -fPIE -pie"
888 #export THREADS=1
889 #export LDFLAGS="$SMALLLD"
891 #make NOLPTHREAD=1 $MAKEFLAGS
893 #if [ $? != 0 ]; then
894 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
895 # exit $?
898 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
900 #make NOLPTHREAD=1 $REUSEOBJFLAGS $MULTI_NAME
902 #if [ $? != 0 ]; then
903 # echo Error creating $MULTI_NAME
904 # exit $?
910 #Android gcc 4.9 with API Level 21 (Android 5.0 Lollipop) x64
912 export CLIENT_NAME=binaries/Android/intel/bionic/vlmcs-android50-x64
913 export PROGRAM_NAME=binaries/Android/intel/bionic/vlmcsd-android50-x64
914 export MULTI_NAME=binaries/Android/intel/bionic/vlmcsdmulti-android50-x64
915 export CC=/opt/toolchains/x86_64-android-21/bin/x86_64-linux-android-gcc
916 export CFLAGS="$SMALLCC"
917 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=atom -m64 -fPIE -pie"
918 export THREADS=0
919 export LDFLAGS="$SMALLLD"
921 make NOLPTHREAD=1 NOLRESOLV=1 NO_DNS=0 $MAKEFLAGS
923 if [ $? != 0 ]; then
924 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
925 exit $?
928 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
930 make NOLPTHREAD=1 NOLRESOLV=1 NO_DNS=0 $REUSEOBJFLAGS $MULTI_NAME
932 if [ $? != 0 ]; then
933 echo Error creating $MULTI_NAME
934 exit $?
940 #Android gcc 4.9 with API Level 21 (Android 5.0 Lollipop) x64 STATIC
942 export CLIENT_NAME=binaries/Android/intel/static/vlmcs-android50-x64-static
943 export PROGRAM_NAME=binaries/Android/intel/static/vlmcsd-android50-x64-static
944 export MULTI_NAME=binaries/Android/intel/static/vlmcsdmulti-android50-x64-static
945 export CC=/opt/toolchains/x86_64-android-21/bin/x86_64-linux-android-gcc
946 export CFLAGS="$SMALLCC"
947 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=nocona -m64"
948 export THREADS=0
949 export LDFLAGS="$SMALLLD -static"
951 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
953 if [ $? != 0 ]; then
954 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
955 exit $?
958 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
960 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
962 if [ $? != 0 ]; then
963 echo Error creating $MULTI_NAME
964 exit $?
971 #Android gcc 4.8 with API Level 9 (Android 2.3 Gingerbread) mips32el
973 export CLIENT_NAME=binaries/Android/mips/bionic/vlmcs-android23-mips32el
974 export PROGRAM_NAME=binaries/Android/mips/bionic/vlmcsd-android23-mips32el
975 export CC=/opt/toolchains/mipsel-android-9/bin/mipsel-linux-android-gcc
976 export CFLAGS="$SMALLCC"
977 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
978 export THREADS=1
979 export LDFLAGS="$SMALLLD"
981 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
983 if [ $? != 0 ]; then
984 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
985 exit $?
988 export CLIENT_NAME=binaries/Android/mips/static/vlmcs-android23-mips32el-static
989 export PROGRAM_NAME=binaries/Android/mips/static/vlmcsd-android23-mips32el-static
990 export MULTI_NAME=binaries/Android/mips/static/vlmcsdmulti-android23-mips32el-static
991 export LDFLAGS="$LDFLAGS -static"
993 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS
995 if [ $? != 0 ]; then
996 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
997 exit $?
1000 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1002 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
1004 if [ $? != 0 ]; then
1005 echo Error creating $MULTI_NAME
1006 exit $?
1009 export LDFLAGS="$SMALLLD"
1010 export MULTI_NAME=binaries/Android/mips/bionic/vlmcsdmulti-android23-mips32el
1012 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
1014 if [ $? != 0 ]; then
1015 echo Error creating $MULTI_NAME
1016 exit $?
1023 #Android gcc 4.8 with API Level 16 (Android 4.1 Jelly Bean) mips32el
1025 export CLIENT_NAME=binaries/Android/mips/bionic/vlmcs-android41-mips32el
1026 export PROGRAM_NAME=binaries/Android/mips/bionic/vlmcsd-android41-mips32el
1027 export MULTI_NAME=binaries/Android/mips/bionic/vlmcsdmulti-android41-mips32el
1028 export CC=/opt/toolchains/mipsel-android-16/bin/mipsel-linux-android-gcc
1029 export CFLAGS="$SMALLCC"
1030 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie"
1031 export THREADS=1
1032 export LDFLAGS="$SMALLLD"
1034 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
1036 if [ $? != 0 ]; then
1037 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1038 exit $?
1041 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1043 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
1045 if [ $? != 0 ]; then
1046 echo Error creating $MULTI_NAME
1047 exit $?
1054 ##Android gcc 4.8 with API Level 21 (Android 5.0 Lollipop) mips32el
1056 #export CLIENT_NAME=binaries/Android/mips/bionic/vlmcs-android50-mips32el
1057 #export PROGRAM_NAME=binaries/Android/mips/bionic/vlmcsd-android50-mips32el
1058 #export MULTI_NAME=binaries/Android/mips/bionic/vlmcsdmulti-android50-mips32el
1059 #export CC=/opt/toolchains/mipsel-android-21/bin/mipsel-linux-android-gcc
1060 #export CFLAGS="$SMALLCC"
1061 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie"
1062 #export THREADS=1
1063 #export LDFLAGS="$SMALLLD"
1065 #make NOLPTHREAD=1 $MAKEFLAGS
1067 #if [ $? != 0 ]; then
1068 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1069 # exit $?
1072 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1074 #make NOLPTHREAD=1 $REUSEOBJFLAGS $MULTI_NAME
1076 #if [ $? != 0 ]; then
1077 # echo Error creating $MULTI_NAME
1078 # exit $?
1084 ##Android gcc 4.8 with API Level 9 (Android 2.3 Gingerbread) mips16el
1086 #export CLIENT_NAME=binaries/Android/mips/bionic/vlmcs-android23-mips16el
1087 #export PROGRAM_NAME=binaries/Android/mips/bionic/vlmcsd-android23-mips16el
1088 #export CC=/opt/toolchains/mipsel-android-9/bin/mipsel-linux-android-gcc
1089 #export CFLAGS="$SMALLCC"
1090 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
1091 #export THREADS=1
1092 #export LDFLAGS="$SMALLLD"
1094 #make NOLPTHREAD=1 $MAKEFLAGS
1096 #if [ $? != 0 ]; then
1097 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1098 # exit $?
1101 #export CLIENT_NAME=binaries/Android/mips/static/vlmcs-android23-mips16el-static
1102 #export PROGRAM_NAME=binaries/Android/mips/static/vlmcsd-android23-mips16el-static
1103 #export MULTI_NAME=binaries/Android/mips/static/vlmcsdmulti-android23-mips16el-static
1104 #export LDFLAGS="$LDFLAGS -static"
1106 #make NOLPTHREAD=1 $REUSEOBJFLAGS
1108 #if [ $? != 0 ]; then
1109 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1110 # exit $?
1113 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1115 #make NOLPTHREAD=1 $REUSEOBJFLAGS $MULTI_NAME
1117 #if [ $? != 0 ]; then
1118 # echo Error creating $MULTI_NAME
1119 # exit $?
1122 #export LDFLAGS="$SMALLLD"
1123 #export MULTI_NAME=binaries/Android/mips/bionic/vlmcsdmulti-android23-mips16el
1125 #make NOLPTHREAD=1 $REUSEOBJFLAGS $MULTI_NAME
1127 #if [ $? != 0 ]; then
1128 # echo Error creating $MULTI_NAME
1129 # exit $?
1136 ##Android gcc 4.8 with API Level 16 (Android 4.1 Jelly Bean) mips16el
1138 #export CLIENT_NAME=binaries/Android/mips/bionic/vlmcs-android41-mips16el
1139 #export PROGRAM_NAME=binaries/Android/mips/bionic/vlmcsd-android41-mips16el
1140 #export MULTI_NAME=binaries/Android/mips/bionic/vlmcsdmulti-android41-mips16el
1141 #export CC=/opt/toolchains/mipsel-android-16/bin/mipsel-linux-android-gcc
1142 #export CFLAGS="$SMALLCC"
1143 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie -mips16"
1144 #export THREADS=1
1145 #export LDFLAGS="$SMALLLD"
1147 #make NOLPTHREAD=1 $MAKEFLAGS
1149 #if [ $? != 0 ]; then
1150 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1151 # exit $?
1154 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1156 #make NOLPTHREAD=1 $REUSEOBJFLAGS $MULTI_NAME
1158 #if [ $? != 0 ]; then
1159 # echo Error creating $MULTI_NAME
1160 # exit $?
1167 #Android gcc 4.8 with API Level 21 (Android 5.0 Lollipop) mips16el
1169 #export CLIENT_NAME=binaries/Android/mips/bionic/vlmcs-android50-mips16el
1170 #export PROGRAM_NAME=binaries/Android/mips/bionic/vlmcsd-android50-mips16el
1171 #export MULTI_NAME=binaries/Android/mips/bionic/vlmcsdmulti-android50-mips16el
1172 #export CC=/opt/toolchains/mipsel-android-21/bin/mipsel-linux-android-gcc
1173 #export CFLAGS="$SMALLCC"
1174 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie -mips16"
1175 #export THREADS=1
1176 #export LDFLAGS="$SMALLLD"
1178 #make NOLPTHREAD=1 $MAKEFLAGS
1180 #if [ $? != 0 ]; then
1181 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1182 # exit $?
1185 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1187 #make NOLPTHREAD=1 $REUSEOBJFLAGS $MULTI_NAME
1189 #if [ $? != 0 ]; then
1190 # echo Error creating $MULTI_NAME
1191 # exit $?
1195 #Android gcc 4.9 with API Level 21 (Android 5.0 Lollipop) mips64el
1197 export CLIENT_NAME=binaries/Android/mips/bionic/vlmcs-android50-mips64el
1198 export PROGRAM_NAME=binaries/Android/mips/bionic/vlmcsd-android50-mips64el
1199 export MULTI_NAME=binaries/Android/mips/bionic/vlmcsdmulti-android50-mips64el
1200 export CC=/opt/toolchains/mips64el-android-21/bin/mips64el-linux-android-gcc
1201 export CFLAGS="$SMALLCC"
1202 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -fPIE -pie"
1203 export THREADS=0
1204 export LDFLAGS="$SMALLLD"
1206 make NOLPTHREAD=1 NOLRESOLV=1 NO_DNS=0 $MAKEFLAGS
1208 if [ $? != 0 ]; then
1209 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1210 exit $?
1213 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1215 make NOLPTHREAD=1 NOLRESOLV=1 NO_DNS=0 $REUSEOBJFLAGS $MULTI_NAME
1217 if [ $? != 0 ]; then
1218 echo Error creating $MULTI_NAME
1219 exit $?
1225 #Android gcc 4.9 with API Level 21 (Android 5.0 Lollipop) mips64el STATIC
1227 export CLIENT_NAME=binaries/Android/mips/static/vlmcs-android50-mips64el-static
1228 export PROGRAM_NAME=binaries/Android/mips/static/vlmcsd-android50-mips64el-static
1229 export MULTI_NAME=binaries/Android/mips/static/vlmcsdmulti-android50-mips64el-static
1230 export CC=/opt/toolchains/mips64el-android-21/bin/mips64el-linux-android-gcc
1231 export CFLAGS="$SMALLCC"
1232 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
1233 export THREADS=0
1234 export LDFLAGS="$SMALLLD -static"
1236 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $MAKEFLAGS
1238 if [ $? != 0 ]; then
1239 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1240 exit $?
1243 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1245 make NOLPTHREAD=1 NOLRESOLV=1 DNS_PARSER=OS $REUSEOBJFLAGS $MULTI_NAME
1247 if [ $? != 0 ]; then
1248 echo Error creating $MULTI_NAME
1249 exit $?
1255 ## Android 5.0+ with Ubuntu toolchain
1256 #export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android5
1257 #export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android5
1258 #export CC=arm-linux-androideabi-gcc
1259 #export CFLAGS="$SMALLCC"
1260 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
1261 #export LDFLAGS="$SMALLLD -pie -fpie"
1262 #export THREADS=0
1264 #make $MAKEFLAGS
1266 #if [ $? != 0 ]; then
1267 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1268 # exit $?
1272 # Android 5.0+ with Ubuntu toolchain STATIC
1273 #export CLIENT_NAME=binaries/Android/arm/static/vlmcs-android5-static
1274 #export PROGRAM_NAME=binaries/Android/arm/static/vlmcsd-android5-static
1275 #export MULTI_NAME=binaries/Android/arm/static/vlmcsdmulti-android5-static
1276 #export LDFLAGS="$LDFLAGS -static"
1278 #make $REUSEOBJFLAGS
1280 #if [ $? != 0 ]; then
1281 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1282 # exit $?
1285 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1287 #make $REUSEOBJFLAGS $MULTI_NAME
1289 #if [ $? != 0 ]; then
1290 # echo Error creating $MULTI_NAME
1291 # exit $?
1294 #export LDFLAGS="$SMALLLD -pie -fpie"
1295 #export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android5
1297 #make $REUSEOBJFLAGS $MULTI_NAME
1299 #if [ $? != 0 ]; then
1300 # echo Error creating $MULTI_NAME
1301 # exit $?
1307 ## Android 5.0+ with Ubuntu toolchain for ARMv7 CPU with thumb2 instruction set
1308 #export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android5-armv7
1309 #export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android5-armv7
1310 #export CC=arm-linux-androideabi-gcc
1311 #export CFLAGS="$SMALLCC"
1312 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mthumb -march=armv7 -mtune=cortex-a9"
1313 #export LDFLAGS="$SMALLLD -pie -fpie"
1314 #export THREADS=0
1316 #make $MAKEFLAGS
1318 #if [ $? != 0 ]; then
1319 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1320 # exit $?
1323 #export CLIENT_NAME=binaries/Android/arm/static/vlmcs-android5-armv7-static
1324 #export PROGRAM_NAME=binaries/Android/arm/static/vlmcsd-android5-armv7-static
1325 #export MULTI_NAME=binaries/Android/arm/static/vlmcsdmulti-android5-armv7-static
1326 #export LDFLAGS="$LDFLAGS -static"
1328 #make $REUSEOBJFLAGS
1330 #if [ $? != 0 ]; then
1331 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1332 # exit $?
1335 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1337 #make $REUSEOBJFLAGS $MULTI_NAME
1339 #if [ $? != 0 ]; then
1340 # echo Error creating $MULTI_NAME
1341 # exit $?
1344 #export LDFLAGS="$SMALLLD -pie -fpie"
1345 #export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android5-armv7
1347 #make $REUSEOBJFLAGS $MULTI_NAME
1349 #if [ $? != 0 ]; then
1350 # echo Error creating $MULTI_NAME
1351 # exit $?
1354 ##unset TERMINAL_WIDTH
1360 ## Android with Ubuntu toolchain
1361 #export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android
1362 #export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android
1363 #export CC=arm-linux-androideabi-gcc
1364 #export CFLAGS="$SMALLCC"
1365 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
1366 #export LDFLAGS="$SMALLLD"
1367 #export THREADS=0
1369 #make $MAKEFLAGS
1371 #if [ $? != 0 ]; then
1372 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1373 # exit $?
1377 ## Android with Ubuntu toolchain STATIC
1378 #export CLIENT_NAME=binaries/Android/arm/static/vlmcs-android-static
1379 #export PROGRAM_NAME=binaries/Android/arm/static/vlmcsd-android-static
1380 #export MULTI_NAME=binaries/Android/arm/static/vlmcsdmulti-android-static
1381 #export LDFLAGS="$LDFLAGS -static"
1383 #make $REUSEOBJFLAGS
1385 #if [ $? != 0 ]; then
1386 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1387 # exit $?
1390 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1392 #make $REUSEOBJFLAGS $MULTI_NAME
1394 #if [ $? != 0 ]; then
1395 # echo Error creating $MULTI_NAME
1396 # exit $?
1399 #export LDFLAGS="$SMALLLD"
1400 #export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android
1402 #make $REUSEOBJFLAGS $MULTI_NAME
1404 #if [ $? != 0 ]; then
1405 # echo Error creating $MULTI_NAME
1406 # exit $?
1412 # Android with Ubuntu toolchain for ARMv7 CPU with thumb2 instruction set
1413 #export CLIENT_NAME=binaries/Android/arm/bionic/vlmcs-android-armv7
1414 #export PROGRAM_NAME=binaries/Android/arm/bionic/vlmcsd-android-armv7
1415 #export CC=arm-linux-androideabi-gcc
1416 #export CFLAGS="$SMALLCC"
1417 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mthumb -march=armv7 -mtune=cortex-a9"
1418 #export LDFLAGS="$SMALLLD"
1419 #export THREADS=0
1421 #make $MAKEFLAGS
1423 #if [ $? != 0 ]; then
1424 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1425 # exit $?
1428 #export CLIENT_NAME=binaries/Android/arm/static/vlmcs-android-armv7-static
1429 #export PROGRAM_NAME=binaries/Android/arm/static/vlmcsd-android-armv7-static
1430 #export MULTI_NAME=binaries/Android/arm/static/vlmcsdmulti-android-armv7-static
1431 #export LDFLAGS="$LDFLAGS -static"
1433 #make $REUSEOBJFLAGS
1435 #if [ $? != 0 ]; then
1436 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1437 # exit $?
1440 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1442 #make $REUSEOBJFLAGS $MULTI_NAME
1444 #if [ $? != 0 ]; then
1445 # echo Error creating $MULTI_NAME
1446 # exit $?
1449 #export LDFLAGS="$SMALLLD"
1450 #export MULTI_NAME=binaries/Android/arm/bionic/vlmcsdmulti-android-armv7
1452 #make $REUSEOBJFLAGS $MULTI_NAME
1454 #if [ $? != 0 ]; then
1455 # echo Error creating $MULTI_NAME
1456 # exit $?
1462 # Linux x86 glibc
1463 export MULTI_NAME=binaries/Linux/intel/glibc/vlmcsdmulti-x86-glibc
1464 export CLIENT_NAME=binaries/Linux/intel/glibc/vlmcs-x86-glibc
1465 export PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x86-glibc
1466 export CC=~/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_eglibc-2.19/bin/i486-openwrt-linux-gcc
1467 export CFLAGS="$SMALLCC"
1468 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i686 -mtune=generic"
1469 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1470 export THREADS=0
1472 make $MAKEFLAGS binaries/Linux/intel/glibc/vlmcsdmulti-x86-glibc
1474 if [ $? != 0 ]; then
1475 echo Error creating $MULTI_NAME
1476 exit $?
1479 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1481 make $REUSEOBJFLAGS
1483 if [ $? != 0 ]; then
1484 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1485 exit $?
1491 # Linux x86 glibc minimum standalone version
1492 export PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x86-glibc-minimum
1493 export CC=~/openwrt/staging_dir/toolchain-i386_i486_gcc-4.8-linaro_eglibc-2.19/bin/i486-openwrt-linux-gcc
1494 export CFLAGS="$SMALLCC"
1495 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i686 -mtune=generic"
1496 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1497 export THREADS=0
1498 export FEATURES=minimum
1500 make NO_DNS=1 $MAKEFLAGS $PROGRAM_NAME
1502 if [ $? != 0 ]; then
1503 echo Error creating $PROGRAM_NAME
1504 exit $?
1507 # Linux x86 glibc minimum inetd version
1508 export PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x86-glibc-minimum-inetd
1509 export CFLAGS="$CFLAGS -DNO_SOCKETS"
1511 make NO_DNS=1 $MAKEFLAGS $PROGRAM_NAME
1513 if [ $? != 0 ]; then
1514 echo Error creating $PROGRAM_NAME
1515 exit $?
1518 # Linux x86 glibc threads
1519 export FEATURES=full
1520 export THREADS=1
1521 export PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x86-glibc-threads
1522 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -lpthread"
1523 export CFLAGS="$SMALLCC"
1525 make $MAKEFLAGS $PROGRAM_NAME
1527 if [ $? != 0 ]; then
1528 echo Error creating $PROGRAM_NAME
1529 exit $?
1535 # Linux x86 musl
1536 export FEATURES=full
1537 export MULTI_NAME=binaries/Linux/intel/static/vlmcsdmulti-x86-musl-static
1538 export CLIENT_NAME=binaries/Linux/intel/static/vlmcs-x86-musl-static
1539 export PROGRAM_NAME=binaries/Linux/intel/static/vlmcsd-x86-musl-static
1540 export CC=/opt/toolchains/i386_i486_gcc-4.9-linaro_musl-1.1.6/bin/i486-openwrt-linux-musl-gcc-4.9.2
1541 export CFLAGS="$SMALLCC"
1542 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i686 -mtune=generic"
1543 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
1544 export THREADS=0
1545 export NOPROCFS=0
1546 export AUXV=1
1548 make $MAKEFLAGS $MULTI_NAME
1550 if [ $? != 0 ]; then
1551 echo Error creating $MULTI_NAME
1552 exit $?
1555 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1556 export MULTI_NAME=binaries/Linux/intel/musl/vlmcsdmulti-x86-musl
1558 make $MAKEFLAGS $MULTI_NAME
1560 if [ $? != 0 ]; then
1561 echo Error creating $MULTI_NAME
1562 exit $?
1565 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1566 export LDFLAGS="$LDFLAGS -static"
1568 make $REUSEOBJFLAGS
1570 if [ $? != 0 ]; then
1571 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1572 exit $?
1575 export CLIENT_NAME=binaries/Linux/intel/musl/vlmcs-x86-musl
1576 export PROGRAM_NAME=binaries/Linux/intel/musl/vlmcsd-x86-musl
1577 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1579 make $REUSEOBJFLAGS
1581 if [ $? != 0 ]; then
1582 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1583 exit $?
1589 # Linux x86 musl static threads
1590 export FEATURES=full
1591 export PROGRAM_NAME=binaries/Linux/intel/static/vlmcsd-x86-musl-static-threads
1592 export CC=/opt/toolchains/i386_i486_gcc-4.9-linaro_musl-1.1.6/bin/i486-openwrt-linux-musl-gcc-4.9.2
1593 export CFLAGS="$SMALLCC"
1594 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i686 -mtune=generic"
1595 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
1596 export THREADS=1
1597 export NOPROCFS=0
1598 export AUXV=1
1600 make $MAKEFLAGS $PROGRAM_NAME
1602 if [ $? != 0 ]; then
1603 echo Error creating $PROGRAM_NAME
1604 exit $?
1611 # Linux x32 glibc
1612 export FEATURES=full
1613 export MULTI_NAME=binaries/Linux/intel/glibc/vlmcsdmulti-x32-glibc
1614 export CLIENT_NAME=binaries/Linux/intel/glibc/vlmcs-x32-glibc
1615 export PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x32-glibc
1616 export CC=gcc
1617 export CFLAGS="$SMALLCC"
1618 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mx32 -march=nocona -mtune=generic"
1619 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1620 export THREADS=0
1621 export NOPROCFS=0
1622 export AUXV=1
1624 make DNS_PARSER=OS $MAKEFLAGS binaries/Linux/intel/glibc/vlmcsdmulti-x32-glibc
1626 if [ $? != 0 ]; then
1627 echo Error creating $MULTI_NAME
1628 exit $?
1631 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1633 make DNS_PARSER=OS $REUSEOBJFLAGS
1635 if [ $? != 0 ]; then
1636 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1637 exit $?
1643 # Linux x32 glibc threads
1644 export FEATURES=full
1645 export PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x32-glibc-threads
1646 export CC=gcc
1647 export CFLAGS="$SMALLCC"
1648 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mx32 -march=nocona -mtune=generic"
1649 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -lpthread"
1650 export THREADS=1
1651 export NOPROCFS=0
1652 export AUXV=1
1654 make DNS_PARSER=OS $MAKEFLAGS $PROGRAM_NAME
1656 if [ $? != 0 ]; then
1657 echo Error creating $PROGRAM_NAME
1658 exit $?
1664 # Linux armv4 little-endian glibc
1665 export FEATURES=full
1666 export MULTI_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv4el-glibc
1667 export CLIENT_NAME=binaries/Linux/arm/little-endian/glibc/vlmcs-armv4el-glibc
1668 export PROGRAM_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsd-armv4el-glibc
1669 export CC=/opt/toolchains/armelv5t-glibc-2.20/bin/arm-linux-gcc
1670 export CFLAGS="$SMALLCC"
1671 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4 -marm"
1672 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1673 export THREADS=0
1674 export NOPROCFS=0
1675 export AUXV=0
1677 make $MAKEFLAGS
1679 if [ $? != 0 ]; then
1680 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1681 exit $?
1684 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1686 make $REUSEOBJFLAGS $MULTI_NAME
1688 if [ $? != 0 ]; then
1689 echo Error creating $MULTI_NAME
1690 exit $?
1696 # Linux armv4 little-endian glibc thumb instruction set
1698 export MULTI_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv4el-glibc-thumb
1699 export CLIENT_NAME=binaries/Linux/arm/little-endian/glibc/vlmcs-armv4el-glibc-thumb
1700 export PROGRAM_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsd-armv4el-glibc-thumb
1701 export CC=/opt/toolchains/armelv5t-glibc-2.20/bin/arm-linux-gcc
1702 export FEATURES=full
1703 export CFLAGS="$SMALLCC"
1704 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4t -mthumb"
1705 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1706 export THREADS=0
1708 make $MAKEFLAGS
1710 if [ $? != 0 ]; then
1711 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1712 exit $?
1715 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1717 make $REUSEOBJFLAGS $MULTI_NAME
1719 if [ $? != 0 ]; then
1720 echo Error creating $MULTI_NAME
1721 exit $?
1727 # Linux armv5 little-endian glibc thumb instruction set
1728 export PROGRAM_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsd-armv5el-glibc-thumb
1729 export CLIENT_NAME=binaries/Linux/arm/little-endian/glibc/vlmcs-armv5el-glibc-thumb
1730 export MULTI_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv5el-glibc-thumb
1731 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5t -mthumb"
1733 make $MAKEFLAGS
1735 if [ $? != 0 ]; then
1736 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1737 exit $?
1740 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1742 make $REUSEOBJFLAGS $MULTI_NAME
1744 if [ $? != 0 ]; then
1745 echo Error creating $MULTI_NAME
1746 exit $?
1751 # Linux armv5 little-endian glibc
1752 export PROGRAM_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsd-armv5el-glibc
1753 export CLIENT_NAME=binaries/Linux/arm/little-endian/glibc/vlmcs-armv5el-glibc
1754 export MULTI_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv5el-glibc
1755 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5 -marm"
1757 make $MAKEFLAGS
1759 if [ $? != 0 ]; then
1760 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1761 exit $?
1764 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1766 make $REUSEOBJFLAGS $MULTI_NAME
1768 if [ $? != 0 ]; then
1769 echo Error creating $MULTI_NAME
1770 exit $?
1776 # Linux armv7 little-endian glibc thumb2 instruction set
1777 export PROGRAM_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsd-armv7el-glibc
1778 export CLIENT_NAME=binaries/Linux/arm/little-endian/glibc/vlmcs-armv7el-glibc
1779 export MULTI_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv7el-glibc
1780 export CC=/opt/toolchains/armelv7-cortex-a8-glibc-2.18/usr/bin/arm-linux-gcc
1781 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
1782 export FEATURES=full
1783 export CFLAGS="$SMALLCC"
1784 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1785 export THREADS=0
1787 make $MAKEFLAGS
1789 if [ $? != 0 ]; then
1790 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1791 exit $?
1794 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1796 make $REUSEOBJFLAGS $MULTI_NAME
1798 if [ $? != 0 ]; then
1799 echo Error creating $MULTI_NAME
1800 exit $?
1806 # Linux armv4 little-endian openwrt toolchain
1807 export PROGRAM_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsd-armv4el-openwrt-glibc
1808 export CLIENT_NAME=binaries/Linux/arm/little-endian/glibc/vlmcs-armv4el-openwrt-glibc
1809 export MULTI_NAME=binaries/Linux/arm/little-endian/glibc/vlmcsdmulti-armv4el-openwrt-glibc
1810 export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_eglibc-2.19_eabi/bin/arm-openwrt-linux-gcc
1811 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4"
1812 export FEATURES=full
1813 export CFLAGS="$SMALLCC"
1814 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1815 export THREADS=0
1817 make $MAKEFLAGS
1819 if [ $? != 0 ]; then
1820 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1821 exit $?
1824 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1826 make $REUSEOBJFLAGS $MULTI_NAME
1828 if [ $? != 0 ]; then
1829 echo Error creating $MULTI_NAME
1830 exit $?
1837 # Linux armv7 little-endian openwrt toolchain thumb 2 instruction set
1838 INSTALLDIR=binaries/Linux/arm/little-endian/glibc/
1839 SUFFIX=-armv7el-openwrt-glibc
1840 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
1841 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
1842 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
1843 export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_eglibc-2.19_eabi/bin/arm-openwrt-linux-gcc
1844 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
1845 export FEATURES=full
1846 export CFLAGS="$SMALLCC"
1847 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1848 export THREADS=0
1850 make $MAKEFLAGS
1852 if [ $? != 0 ]; then
1853 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1854 exit $?
1857 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1859 make $REUSEOBJFLAGS $MULTI_NAME
1861 if [ $? != 0 ]; then
1862 echo Error creating $MULTI_NAME
1863 exit $?
1868 # Linux armv5 little endian thumb instruction set
1869 INSTALLDIR=binaries/Linux/arm/little-endian/static/
1870 SUFFIX=-armv5el-musl-thumb
1871 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}-static
1872 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}-static
1873 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}-static
1874 export CC=/opt/toolchains/armelv5t-musl/usr/bin/arm-linux-gcc
1875 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
1876 export FEATURES=full
1877 export CFLAGS="$SMALLCC"
1878 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
1879 export THREADS=0
1880 export NOPROCFS=0
1881 export AUXV=1
1883 make $MAKEFLAGS
1885 if [ $? != 0 ]; then
1886 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1887 exit $?
1890 INSTALLDIR=binaries/Linux/arm/little-endian/musl/
1891 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
1892 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
1893 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1894 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
1896 make $REUSEOBJFLAGS
1898 if [ $? != 0 ]; then
1899 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1900 exit $?
1903 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1905 make $REUSEOBJFLAGS $MULTI_NAME
1907 if [ $? != 0 ]; then
1908 echo Error creating $MULTI_NAME
1909 exit $?
1912 INSTALLDIR=binaries/Linux/arm/little-endian/static/
1913 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}-static
1914 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
1916 make $REUSEOBJFLAGS $MULTI_NAME
1918 if [ $? != 0 ]; then
1919 echo Error creating $MULTI_NAME
1920 exit $?
1926 # Linux armv5 little-endian uclibc thumb instruction set
1927 INSTALLDIR=binaries/Linux/arm/little-endian/uclibc/
1928 SUFFIX=-armv5el-uclibc-thumb
1929 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
1930 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
1931 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
1932 export CC=/opt/toolchains/armelv5t-uclibc-0.9.33/usr/bin/arm-linux-gcc
1933 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv5t -mthumb"
1934 export FEATURES=full
1935 export CFLAGS="$SMALLCC"
1936 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1937 export THREADS=0
1938 export NOPROCFS=0
1939 export AUXV=0
1941 make $MAKEFLAGS
1943 if [ $? != 0 ]; then
1944 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1945 exit $?
1948 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1950 make $REUSEOBJFLAGS $MULTI_NAME
1952 if [ $? != 0 ]; then
1953 echo Error creating $MULTI_NAME
1954 exit $?
1960 # Linux armv7 little-endian uclibc thumb 2 instruction set
1961 INSTALLDIR=binaries/Linux/arm/little-endian/
1962 SUFFIX=-armv7el-uclibc
1963 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
1964 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
1965 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
1966 export CC=/opt/toolchains/armelv7-cortex-a8-uclibc-0.9.33/usr/bin/arm-linux-gcc
1967 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
1968 export FEATURES=full
1969 export CFLAGS="$SMALLCC"
1970 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
1971 export THREADS=0
1973 make $MAKEFLAGS
1975 if [ $? != 0 ]; then
1976 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1977 exit $?
1980 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
1981 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
1982 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
1983 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
1985 make $REUSEOBJFLAGS
1987 if [ $? != 0 ]; then
1988 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
1989 exit $?
1992 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
1994 make $REUSEOBJFLAGS $MULTI_NAME
1996 if [ $? != 0 ]; then
1997 echo Error creating $MULTI_NAME
1998 exit $?
2001 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2002 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
2004 make $REUSEOBJFLAGS $MULTI_NAME
2006 if [ $? != 0 ]; then
2007 echo Error creating $MULTI_NAME
2008 exit $?
2014 # Linux armv4 little-endian uclibc openwrt toolchain
2015 INSTALLDIR=binaries/Linux/arm/little-endian/uclibc/
2016 SUFFIX=-armv4el-openwrt-uclibc
2017 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2018 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2019 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2020 export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
2021 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4 -marm"
2022 export FEATURES=full
2023 export CFLAGS="$SMALLCC"
2024 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
2025 export THREADS=0
2027 make $MAKEFLAGS
2029 if [ $? != 0 ]; then
2030 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2031 exit $?
2034 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2036 make $REUSEOBJFLAGS $MULTI_NAME
2038 if [ $? != 0 ]; then
2039 echo Error creating $MULTI_NAME
2040 exit $?
2046 ## Linux armv4 little-endian uclibc openwrt toolchain thumb instruction set
2047 #INSTALLDIR=binaries/Linux/arm/little-endian/uclibc/
2048 #SUFFIX=-armv4el-openwrt-uclibc-thumb
2049 #export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2050 #export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2051 #export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2052 #export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
2053 #export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv4t -mthumb"
2054 #export FEATURES=full
2055 #export CFLAGS="$SMALLCC"
2056 #export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
2057 #export THREADS=0
2059 #make $MAKEFLAGS
2061 #if [ $? != 0 ]; then
2062 # echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2063 # exit $?
2066 #rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2068 #make $REUSEOBJFLAGS $MULTI_NAME
2070 #if [ $? != 0 ]; then
2071 # echo Error creating $MULTI_NAME
2072 # exit $?
2078 # Linux armv7 little-endian uclibc openwrt toolchain thumb 2 instruction set
2079 INSTALLDIR=binaries/Linux/arm/little-endian/uclibc/
2080 SUFFIX=-armv7el-openwrt-uclibc
2081 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2082 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2083 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2084 export CC=~/openwrt/staging_dir/toolchain-arm_mpcore+vfp_gcc-4.8-linaro_uClibc-0.9.33.2_eabi/bin/arm-openwrt-linux-gcc
2085 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv7 -mthumb"
2086 export FEATURES=full
2087 export CFLAGS="$SMALLCC"
2088 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
2089 export THREADS=0
2091 make $MAKEFLAGS
2093 if [ $? != 0 ]; then
2094 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2095 exit $?
2098 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2100 make $REUSEOBJFLAGS $MULTI_NAME
2102 if [ $? != 0 ]; then
2103 echo Error creating $MULTI_NAME
2104 exit $?
2110 #Linux armv4 little-endian uclibc
2111 INSTALLDIR=binaries/Linux/arm/little-endian/
2112 SUFFIX=-armv4el-uclibc
2113 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
2114 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
2115 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2116 export CC=/root/cross-compiler-armv4l/bin/armv4l-gcc
2117 export PLATFORMFLAGS="-pipe"
2118 export FEATURES=full
2119 export CFLAGS="$SMALLCC"
2120 export LDFLAGS="-Wl,-z,norelro -fwhole-program"
2121 export THREADS=0
2122 export NOPROCFS=1
2124 make $MAKEFLAGS $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME CAT=2
2126 if [ $? != 0 ]; then
2127 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
2128 exit $?
2131 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2132 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2133 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2134 export LDFLAGS="-Wl,-z,norelro -fwhole-program -static"
2136 make $REUSEOBJFLAGS $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME CAT=2
2138 if [ $? != 0 ]; then
2139 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
2140 exit $?
2147 # mips1 little-endian with openssl 0.9.8 support dreambox toolchain
2148 INSTALLDIR=binaries/Linux/mips/little-endian/glibc/
2149 SUFFIX=-mips1el-glibc-openssl0.9.8-soft-EXPERIMENTAL
2150 export CRYPTO=openssl_with_aes_soft
2151 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2152 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2153 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2154 export CC=/opt/simplebuild/toolchains/mipsoe20/bin/mipsel-unknown-linux-gnu-gcc
2155 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
2156 export FEATURES=full
2157 export CFLAGS="$SMALLCC"
2158 export LDFLAGS="$SMALLLD"
2159 export THREADS=0
2160 export NOPROCFS=0
2162 make $MAKEFLAGS
2164 if [ $? != 0 ]; then
2165 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2166 exit $?
2169 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2171 make $REUSEOBJFLAGS $MULTI_NAME
2173 if [ $? != 0 ]; then
2174 echo Error creating $MULTI_NAME
2175 exit $?
2181 # mips1 little-endian dreambox toolchain
2182 INSTALLDIR=binaries/Linux/mips/little-endian/glibc/
2183 SUFFIX=-mips1el-glibc
2184 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2185 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2186 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2187 export CC=/opt/simplebuild/toolchains/mipsoe20/bin/mipsel-unknown-linux-gnu-gcc
2188 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
2189 export FEATURES=full
2190 export CFLAGS="$SMALLCC"
2191 export LDFLAGS="$SMALLLD"
2192 export THREADS=0
2193 export CRYPTO=internal
2195 make $MAKEFLAGS
2197 if [ $? != 0 ]; then
2198 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2199 exit $?
2202 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2204 make $REUSEOBJFLAGS $MULTI_NAME
2206 if [ $? != 0 ]; then
2207 echo Error creating $MULTI_NAME
2208 exit $?
2214 # Linux mips1 little-endian uclibc
2215 INSTALLDIR=binaries/Linux/mips/little-endian/
2216 SUFFIX=-mips1el-uclibc
2217 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
2218 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
2219 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2220 export CC=/root/cross-compiler-mipsel/bin/mipsel-gcc
2221 export PLATFORMFLAGS="-pipe"
2222 export FEATURES=full
2223 export CFLAGS="$SMALLCC"
2224 export LDFLAGS="-Wl,-z,norelro -fwhole-program"
2225 export THREADS=0
2226 export CRYPTO=internal
2227 export NOPROCFS=1
2229 make $MAKEFLAGS CAT=2 $CLIENT_NAME $MULTI_NAME $PROGRAM_NAME
2231 if [ $? != 0 ]; then
2232 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
2233 exit $?
2236 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2237 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2238 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2239 export LDFLAGS="-Wl,-z,norelro -fwhole-program -static"
2241 make $REUSEOBJFLAGS CAT=2 $CLIENT_NAME $MULTI_NAME $PROGRAM_NAME
2243 if [ $? != 0 ]; then
2244 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
2245 exit $?
2251 # Linux mips16 little endian glibc
2252 INSTALLDIR=binaries/Linux/mips/little-endian/glibc/
2253 SUFFIX=-mips16el-glibc
2254 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2255 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2256 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2257 export CC=/opt/toolchains/mips32el-mips16-glibc-2.18/usr/bin/mipsel-linux-gcc
2258 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32 -mips16"
2259 export FEATURES=full
2260 export CFLAGS="$SMALLCC"
2261 export LDFLAGS="$SMALLLD"
2262 export THREADS=0
2263 export CRYPTO=internal
2264 export NOPROCFS=0
2266 make $MAKEFLAGS
2268 if [ $? != 0 ]; then
2269 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2270 exit $?
2273 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2275 make $REUSEOBJFLAGS $MULTI_NAME
2277 if [ $? != 0 ]; then
2278 echo Error creating $MULTI_NAME
2279 exit $?
2285 # Linux mips16 little-endian uclibc
2286 INSTALLDIR=binaries/Linux/mips/little-endian/uclibc/
2287 SUFFIX=-mips16el-uclibc
2288 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2289 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2290 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2291 export CC=/opt/toolchains/mips32el-mips16-uclibc-0.9.33/bin/mipsel-linux-gcc
2292 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32 -mips16"
2293 export FEATURES=full
2294 export CFLAGS="$SMALLCC"
2295 export LDFLAGS="$SMALLLD"
2296 export THREADS=0
2297 export CRYPTO=internal
2299 make $MAKEFLAGS
2301 if [ $? != 0 ]; then
2302 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2303 exit $?
2306 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2308 make $REUSEOBJFLAGS $MULTI_NAME
2310 if [ $? != 0 ]; then
2311 echo Error creating $MULTI_NAME
2312 exit $?
2318 # Linux PowerPC glibc with SSL support and Dreambox 500 toolchain
2319 INSTALLDIR=binaries/Linux/ppc/big-endian/glibc/
2320 SUFFIX=-ppc-glibc-openssl0.9.8-soft-EXPERIMENTAL
2321 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2322 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2323 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2324 export CC=/opt/simplebuild/toolchains/powerpc/bin/powerpc-linux-gcc
2325 export PLATFORMFLAGS="-pipe"
2326 export FEATURES=full
2327 export CFLAGS="-fno-common -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants"
2328 export LDFLAGS="-Wl,--no-gc-sections -Wl,-z,norelro"
2329 export THREADS=0
2330 export CRYPTO=internal
2332 make NO_DNS=1 $MAKEFLAGS CAT=2 $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
2334 if [ $? != 0 ]; then
2335 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
2336 exit $?
2344 #Linux PowerPC uclibc OpenWRT toolchain
2345 INSTALLDIR=binaries/Linux/ppc/big-endian/
2346 SUFFIX=-ppc-uclibc
2347 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
2348 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
2349 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2350 #export CC=~/openwrt/staging_dir/toolchain-powerpc_405_gcc-4.8-linaro_uClibc-0.9.33.2/bin/powerpc-openwrt-linux-gcc
2351 export CC=/opt/toolchains/ppc-uclibc0.9.33.2-gcc-4.9.1-binutils2.24/bin/powerpc-linux-gcc
2352 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -L/root/cross-compiler-powerpc/lib -L/root/cross-compiler-powerpc/usr/lib"
2353 export FEATURES=full
2354 export CFLAGS="$SMALLCC"
2355 export LDFLAGS="$SMALLLD"
2356 export THREADS=0
2357 export CRYPTO=internal
2359 make $MAKEFLAGS
2361 if [ $? != 0 ]; then
2362 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2363 exit $?
2366 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2367 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2368 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2369 export LDFLAGS="$SMALLLD -static"
2371 make $REUSEOBJFLAGS
2373 if [ $? != 0 ]; then
2374 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2375 exit $?
2378 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2380 make $REUSEOBJFLAGS $MULTI_NAME
2382 if [ $? != 0 ]; then
2383 echo Error creating $MULTI_NAME
2384 exit $?
2387 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2388 export LDFLAGS="$SMALLLD"
2390 make $REUSEOBJFLAGS $MULTI_NAME
2392 if [ $? != 0 ]; then
2393 echo Error creating $MULTI_NAME
2394 exit $?
2400 #Fritzbox 7170 (mips32r2 little-endian) device specific, May or may not run on other devices
2401 INSTALLDIR=binaries/Linux/mips/little-endian/
2402 SUFFIX=-mips32r2el-Fritzbox-71xx-72xx-uclibc
2403 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
2404 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
2405 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2406 export CC=/opt/simplebuild/toolchains/fritz71xx/bin/mipsel-linux-uclibc-gcc
2407 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=4kec -mtune=4kec"
2408 export FEATURES=full
2409 export CFLAGS="$SMALLCC"
2410 export LDFLAGS="$SMALLLD"
2411 export THREADS=0
2412 export CRYPTO=internal
2414 make NOLRESOLV=1 $MAKEFLAGS
2416 if [ $? != 0 ]; then
2417 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2418 exit $?
2421 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2422 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2423 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2424 export LDFLAGS="$SMALLLD -static"
2426 make NOLRESOLV=1 $REUSEOBJFLAGS
2428 if [ $? != 0 ]; then
2429 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2430 exit $?
2433 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2435 make NOLRESOLV=1 $REUSEOBJFLAGS $MULTI_NAME
2437 if [ $? != 0 ]; then
2438 echo Error creating $MULTI_NAME
2439 exit $?
2442 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2443 export LDFLAGS="$SMALLLD"
2445 make NOLRESOLV=1 $REUSEOBJFLAGS $MULTI_NAME
2447 if [ $? != 0 ]; then
2448 echo Error creating $MULTI_NAME
2449 exit $?
2455 #Fritzbox 7370 (mips32r2 big-endian) device specific, May or may not run on other devices
2456 INSTALLDIR=binaries/Linux/mips/big-endian/
2457 SUFFIX=-mips16-Fritzbox-33xx-73xx-74xx-63xx-64xx-uclibc
2458 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
2459 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
2460 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2461 export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
2462 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
2463 export FEATURES=full
2464 export CFLAGS="$SMALLCC"
2465 export LDFLAGS="$SMALLLD"
2466 export THREADS=0
2467 export CRYPTO=internal
2469 make NOLRESOLV=1 $MAKEFLAGS
2471 if [ $? != 0 ]; then
2472 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2473 exit $?
2476 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2477 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2478 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2479 export LDFLAGS="$SMALLLD -static"
2481 make NOLRESOLV=1 $REUSEOBJFLAGS
2483 if [ $? != 0 ]; then
2484 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2485 exit $?
2488 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2490 make NOLRESOLV=1 $REUSEOBJFLAGS $MULTI_NAME
2492 if [ $? != 0 ]; then
2493 echo Error creating $MULTI_NAME
2494 exit $?
2497 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2498 export LDFLAGS="$SMALLLD"
2500 make NOLRESOLV=1 $REUSEOBJFLAGS $MULTI_NAME
2502 if [ $? != 0 ]; then
2503 echo Error creating $MULTI_NAME
2504 exit $?
2510 #Fritzbox 7370 (mips32r2 big-endian) device specific with _PEDANTIC, May or may not run on other devices
2511 INSTALLDIR=binaries/Linux/mips/big-endian/uclibc/
2512 SUFFIX=-mips16-Fritzbox-33xx-73xx-74xx-63xx-64xx-uclibc-pedantic
2513 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2514 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2515 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2516 export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
2517 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
2518 export FEATURES=full
2519 export CFLAGS="$SMALLCC -D_PEDANTIC"
2520 export LDFLAGS="$SMALLLD"
2521 export THREADS=0
2522 export CRYPTO=internal
2524 make NOLRESOLV=1 $MAKEFLAGS $PROGRAM_NAME
2526 if [ $? != 0 ]; then
2527 echo Error creating $PROGRAM_NAME
2528 exit $?
2534 #Fritzbox 7370 (mips32r2 big-endian) device specific inetd start only, May or may not run on other devices
2535 INSTALLDIR=binaries/Linux/mips/big-endian/uclibc/
2536 SUFFIX=-mips16-Fritzbox-33xx-73xx-74xx-63xx-64xx-uclibc-inetd
2537 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2538 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2539 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2540 export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
2541 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
2542 export FEATURES=inetd
2543 export CFLAGS="$SMALLCC"
2544 export LDFLAGS="$SMALLLD"
2545 export THREADS=0
2546 export CRYPTO=internal
2548 make NOLRESOLV=1 $MAKEFLAGS $PROGRAM_NAME
2550 if [ $? != 0 ]; then
2551 echo Error creating $PROGRAM_NAME
2552 exit $?
2558 #Fritzbox 7370 (mips32r2 big-endian) device specific with pthreads, May or may not run on other devices
2559 INSTALLDIR=binaries/Linux/mips/big-endian/uclibc/
2560 SUFFIX=-mips16-Fritzbox-33xx-73xx-74xx-63xx-64xx-uclibc-threads
2561 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2562 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2563 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2564 export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
2565 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
2566 export FEATURES=full
2567 export CFLAGS="$SMALLCC"
2568 export LDFLAGS="$SMALLLD -lpthread"
2569 export THREADS=1
2571 make NOLRESOLV=1 $MAKEFLAGS $PROGRAM_NAME
2573 if [ $? != 0 ]; then
2574 echo Error creating $PROGRAM_NAME
2575 exit $?
2581 #Fritzbox 7370 (mips32r2 big-endian) device specific with OpenSSL support, May or may not run on other devices
2582 INSTALLDIR=binaries/Linux/mips/big-endian/uclibc/
2583 SUFFIX=-mips16-Fritzbox-33xx-73xx-74xx-63xx-64xx-uclibc-openssl0.9.8-soft-EXPERIMENTAL
2584 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2585 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2586 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2587 export CC=/opt/simplebuild/toolchains/fritz73xxOS62/bin/mips-linux-cc
2588 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mtune=24kc -mips16 -mdsp"
2589 export FEATURES=full
2590 export CFLAGS="$SMALLCC"
2591 export LDFLAGS="$SMALLLD"
2592 export THREADS=0
2593 export CRYPTO=openssl_with_aes_soft
2594 export OPENSSL_HMAC=0
2596 make NOLRESOLV=1 $MAKEFLAGS
2598 if [ $? != 0 ]; then
2599 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2600 exit $?
2603 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2605 make NOLRESOLV=1 $REUSEOBJFLAGS $MULTI_NAME
2607 if [ $? != 0 ]; then
2608 echo Error creating $MULTI_NAME
2609 exit $?
2612 unset OPENSSL_HMAC
2616 #make $MAKEFLAGS CLIENT_NAME=binaries/Linux/mips/big-endian/uclibc/vlmcs-mips32-uclibc CFLAGS="$SMALL -pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=binaries/Linux/mips/big-endian/uclibc/vlmcsd-mips32-uclibc CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc && \
2617 # Linux mips32 big-endian uclibc
2618 INSTALLDIR=binaries/Linux/mips/big-endian/uclibc/
2619 SUFFIX=-mips32-uclibc
2620 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2621 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2622 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2623 export CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc
2624 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
2625 export FEATURES=full
2626 export CFLAGS="$SMALLCC"
2627 export LDFLAGS="$SMALLLD"
2628 export THREADS=0
2629 export CRYPTO=internal
2631 make $MAKEFLAGS
2633 if [ $? != 0 ]; then
2634 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2635 exit $?
2638 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2640 make $REUSEOBJFLAGS $MULTI_NAME
2642 if [ $? != 0 ]; then
2643 echo Error creating $MULTI_NAME
2644 exit $?
2650 # Linux mips16 big-endian uclibc
2651 INSTALLDIR=binaries/Linux/mips/big-endian/uclibc/
2652 SUFFIX=-mips16-uclibc
2653 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2654 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2655 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2656 export CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc
2657 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
2658 export FEATURES=full
2659 export CFLAGS="$SMALLCC"
2660 export LDFLAGS="$SMALLLD"
2661 export THREADS=0
2662 export CRYPTO=internal
2664 make $MAKEFLAGS
2666 if [ $? != 0 ]; then
2667 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2668 exit $?
2671 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2673 make $REUSEOBJFLAGS $MULTI_NAME
2675 if [ $? != 0 ]; then
2676 echo Error creating $MULTI_NAME
2677 exit $?
2683 #Atheros ar7xxx/ar9xxx chips with OpenWRT toolchain (mips16 big-endian) device specific, May or may not run on other devices
2684 INSTALLDIR=binaries/Linux/mips/big-endian/
2685 SUFFIX=-mips16-openwrt-atheros-ar7xxx-ar9xxx-uclibc
2686 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
2687 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
2688 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2689 export CC=/opt/toolchains/mips-openwrt-linux-uclibc/bin/mips-openwrt-linux-gcc
2690 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mips16"
2691 export FEATURES=full
2692 export CFLAGS="$SMALLCC -DNO_LIMIT"
2693 export LDFLAGS="$SMALLLD"
2694 export THREADS=0
2695 export CRYPTO=internal
2697 make $MAKEFLAGS
2699 if [ $? != 0 ]; then
2700 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2701 exit $?
2704 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2706 make $REUSEOBJFLAGS $MULTI_NAME
2708 if [ $? != 0 ]; then
2709 echo Error creating $MULTI_NAME
2710 exit $?
2717 #Atheros ar7xxx/ar9xxx chips with OpenWRT toolchain (mips16 big-endian) device specific, May or may not run on other devices
2718 INSTALLDIR=binaries/Linux/mips/big-endian/
2719 SUFFIX=-mips16-openwrt-atheros-ar7xxx-ar9xxx-musl
2720 export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
2721 export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
2722 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
2723 export CC=/opt/toolchains/mips_34kc_gcc-4.9-linaro_musl-1.1.6-mips16/bin/mips-openwrt-linux-musl-gcc-4.9.2
2724 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc -mips16"
2725 export FEATURES=full
2726 export CFLAGS="$SMALLCC"
2727 export LDFLAGS="$SMALLLD"
2728 export THREADS=0
2729 export CRYPTO=internal
2731 make $MAKEFLAGS
2733 if [ $? != 0 ]; then
2734 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2735 exit $?
2738 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2739 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2740 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2741 export LDFLAGS="$LDFLAGS -static"
2743 make $REUSEOBJFLAGS
2745 if [ $? != 0 ]; then
2746 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2747 exit $?
2750 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2752 make $REUSEOBJFLAGS $MULTI_NAME
2754 if [ $? != 0 ]; then
2755 echo Error creating $MULTI_NAME
2756 exit $?
2759 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
2760 export LDFLAGS="$SMALLLD"
2762 make $REUSEOBJFLAGS $MULTI_NAME
2764 if [ $? != 0 ]; then
2765 echo Error creating $MULTI_NAME
2766 exit $?
2772 #Atheros ar7xxx/ar9xxx chips with OpenWRT toolchain (mips32r2 big-endian) device specific, May or may not run on other devices
2773 INSTALLDIR=binaries/Linux/mips/big-endian/
2774 SUFFIX=-mips32r2-openwrt-atheros-ar7xxx-ar9xxx-uclibc
2775 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
2776 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
2777 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2778 export CC=/opt/toolchains/mips-openwrt-linux-uclibc/bin/mips-openwrt-linux-gcc
2779 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=24kc"
2780 export FEATURES=full
2781 export CFLAGS="$SMALLCC -DNO_LIMIT"
2782 export LDFLAGS="$SMALLLD"
2783 export THREADS=0
2784 export CRYPTO=internal
2786 make $MAKEFLAGS
2788 if [ $? != 0 ]; then
2789 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2790 exit $?
2793 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2794 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2795 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2796 export LDFLAGS="$SMALLLD -static"
2798 make $REUSEOBJFLAGS
2800 if [ $? != 0 ]; then
2801 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2802 exit $?
2805 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2807 make $REUSEOBJFLAGS $MULTI_NAME
2809 if [ $? != 0 ]; then
2810 echo Error creating $MULTI_NAME
2811 exit $?
2814 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
2815 export LDFLAGS="$SMALLLD"
2817 make $REUSEOBJFLAGS $MULTI_NAME
2819 if [ $? != 0 ]; then
2820 echo Error creating $MULTI_NAME
2821 exit $?
2827 # Linux mips16 big-endian uclibc threads
2828 INSTALLDIR=binaries/Linux/mips/big-endian/uclibc/
2829 SUFFIX=-mips16-uclibc-threads
2830 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2831 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2832 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2833 export CC=/opt/toolchains/mips32eb-uclibc-0.9.33/usr/bin/mips-linux-cc
2834 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
2835 export FEATURES=full
2836 export CFLAGS="$SMALLCC"
2837 export LDFLAGS="$SMALLLD -lpthread"
2838 export THREADS=1
2839 export CRYPTO=internal
2841 make $MAKEFLAGS $PROGRAM_NAME
2843 if [ $? != 0 ]; then
2844 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2845 exit $?
2851 # Linux mips32 big-endian glibc
2852 INSTALLDIR=binaries/Linux/mips/big-endian/glibc/
2853 SUFFIX=-mips32-glibc
2854 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2855 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2856 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2857 export CC=/opt/toolchains/mips32eb-glibc-2.19/usr/bin/mips-linux-cc
2858 export PLATFORMFLAGS="-flto=jobserver -fwhole-program"
2859 export FEATURES=full
2860 export CFLAGS="$SMALLCC"
2861 export LDFLAGS="$SMALLLD"
2862 export THREADS=0
2863 export CRYPTO=internal
2865 make $MAKEFLAGS
2867 if [ $? != 0 ]; then
2868 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2869 exit $?
2872 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2874 make $REUSEOBJFLAGS $MULTI_NAME
2876 if [ $? != 0 ]; then
2877 echo Error creating $MULTI_NAME
2878 exit $?
2884 # Linux mips16 big-endian glibc
2885 INSTALLDIR=binaries/Linux/mips/big-endian/glibc/
2886 SUFFIX=-mips16-glibc
2887 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
2888 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
2889 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
2890 export CC=/opt/toolchains/mips32eb-glibc-2.19/usr/bin/mips-linux-cc
2891 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
2892 export FEATURES=full
2893 export CFLAGS="$SMALLCC"
2894 export LDFLAGS="$SMALLLD"
2895 export THREADS=0
2896 export CRYPTO=internal
2898 make $MAKEFLAGS
2900 if [ $? != 0 ]; then
2901 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2902 exit $?
2905 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2907 make $REUSEOBJFLAGS $MULTI_NAME
2909 if [ $? != 0 ]; then
2910 echo Error creating $MULTI_NAME
2911 exit $?
2917 #Linux mips32 big-endian musl
2918 INSTALLDIR=binaries/Linux/mips/big-endian/
2919 SUFFIX=-mips32-musl
2920 export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
2921 export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
2922 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
2923 export CC=/opt/toolchains/mips32eb-musl/usr/bin/mips-linux-cc
2924 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
2925 export FEATURES=full
2926 export CFLAGS="$SMALLCC"
2927 export LDFLAGS="$SMALLLD"
2928 export THREADS=0
2929 export CRYPTO=internal
2930 export NOPROCFS=0
2931 export AUXV=1
2934 make $MAKEFLAGS
2936 if [ $? != 0 ]; then
2937 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2938 exit $?
2941 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2942 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
2943 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
2944 export LDFLAGS="$SMALLLD -static"
2946 make $REUSEOBJFLAGS
2948 if [ $? != 0 ]; then
2949 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2950 exit $?
2953 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
2955 make $REUSEOBJFLAGS $MULTI_NAME
2957 if [ $? != 0 ]; then
2958 echo Error creating $MULTI_NAME
2959 exit $?
2962 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
2963 export LDFLAGS="$SMALLLD"
2965 make $REUSEOBJFLAGS $MULTI_NAME
2967 if [ $? != 0 ]; then
2968 echo Error creating $MULTI_NAME
2969 exit $?
2975 #Linux mips16 little-endian musl soft-float
2976 INSTALLDIR=binaries/Linux/mips/little-endian/
2977 SUFFIX=-mips16el-musl
2978 export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
2979 export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
2980 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
2981 export CC=/opt/toolchains/mips32el-mips16-musl/usr/bin/mipsel-linux-cc
2982 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
2983 export FEATURES=full
2984 export CFLAGS="$SMALLCC"
2985 export LDFLAGS="$SMALLLD"
2986 export THREADS=0
2987 export CRYPTO=internal
2988 export NOPROCFS=0
2989 export AUXV=1
2991 make $MAKEFLAGS
2993 if [ $? != 0 ]; then
2994 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
2995 exit $?
2998 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
2999 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
3000 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
3001 export LDFLAGS="$SMALLLD -static"
3003 make $REUSEOBJFLAGS
3005 if [ $? != 0 ]; then
3006 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3007 exit $?
3010 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3012 make $REUSEOBJFLAGS $MULTI_NAME
3014 if [ $? != 0 ]; then
3015 echo Error creating $MULTI_NAME
3016 exit $?
3019 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
3020 export LDFLAGS="$SMALLLD"
3022 make $REUSEOBJFLAGS $MULTI_NAME
3024 if [ $? != 0 ]; then
3025 echo Error creating $MULTI_NAME
3026 exit $?
3032 #Linux mips16 little-endian musl fpu
3033 INSTALLDIR=binaries/Linux/mips/little-endian/
3034 SUFFIX=-mips16el-musl-fpu
3035 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
3036 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
3037 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
3038 export CC=/opt/toolchains/mips32el-mips16-musl-fpu/usr/bin/mipsel-linux-cc
3039 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips16"
3040 export FEATURES=full
3041 export CFLAGS="$SMALLCC"
3042 export LDFLAGS="$SMALLLD -static"
3043 export THREADS=0
3044 export CRYPTO=internal
3045 export NOPROCFS=0
3046 export AUXV=1
3048 make $MAKEFLAGS
3050 if [ $? != 0 ]; then
3051 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3052 exit $?
3055 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3057 make $REUSEOBJFLAGS $MULTI_NAME
3059 if [ $? != 0 ]; then
3060 echo Error creating $MULTI_NAME
3061 exit $?
3066 # Linux x86 uclibc
3067 INSTALLDIR=binaries/Linux/intel/uclibc/
3068 SUFFIX=-x86-uclibc
3069 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
3070 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
3071 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
3072 export CC=/opt/toolchains/i486-uclibc-0.9.33/bin/i486-linux-gcc
3073 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m32 -march=i486 -mtune=generic"
3074 export FEATURES=full
3075 export CFLAGS="$SMALLCC"
3076 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
3077 export THREADS=0
3078 export CRYPTO=internal
3079 export NOPROCFS=0
3080 export AUXV=0
3082 make $MAKEFLAGS
3084 if [ $? != 0 ]; then
3085 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3086 exit $?
3089 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3091 make $REUSEOBJFLAGS $MULTI_NAME
3093 if [ $? != 0 ]; then
3094 echo Error creating $MULTI_NAME
3095 exit $?
3100 #make $MAKEFLAGS CLIENT_NAME=binaries/Linux/intel/glibc/vlmcs-x64-glibc LDFLAGS="-Wl,--hash-style=gnu" CFLAGS="$SMALL -pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x64-glibc CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic"&& \
3101 # Linux x64 glibc
3102 INSTALLDIR=binaries/Linux/intel/glibc/
3103 SUFFIX=-x64-glibc
3104 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
3105 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
3106 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
3107 export CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc
3108 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
3109 export FEATURES=full
3110 export CFLAGS="$SMALLCC"
3111 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
3112 export THREADS=0
3113 export CRYPTO=internal
3115 make $MAKEFLAGS
3117 if [ $? != 0 ]; then
3118 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3119 exit $?
3122 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3124 make $REUSEOBJFLAGS $MULTI_NAME
3126 if [ $? != 0 ]; then
3127 echo Error creating $MULTI_NAME
3128 exit $?
3134 #Linux Sparc32v7 glibc
3135 INSTALLDIR=binaries/Linux/sparc32/glibc/
3136 SUFFIX=-sparc32v7-glibc
3137 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
3138 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
3139 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
3140 export CC=/opt/toolchains/sparc32-glibc-gcc-4.7.4/bin/sparc-buildroot-linux-gnu-gcc
3141 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mcpu=v7"
3142 export FEATURES=full
3143 export CFLAGS="$SMALLCC"
3144 export LDFLAGS="$SMALLLD -lpthread"
3145 export THREADS=0
3146 export CRYPTO=internal
3148 make $MAKEFLAGS
3150 if [ $? != 0 ]; then
3151 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3152 exit $?
3155 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3157 make $REUSEOBJFLAGS $MULTI_NAME
3159 if [ $? != 0 ]; then
3160 echo Error creating $MULTI_NAME
3161 exit $?
3167 #make $MAKEFLAGS binaries/Linux/intel/glibc/vlmcsd-x64-glibc-threads CLIENT_NAME=binaries/Linux/intel/glibc/vlmcs-x64-glibc-threads THREADS=1 LDFLAGS="-Wl,--hash-style=gnu -lpthread" CFLAGS="-pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x64-glibc-threads CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic"&& \
3168 # Linux x64 glibc with threads
3169 INSTALLDIR=binaries/Linux/intel/glibc/
3170 SUFFIX=-x64-glibc-threads
3171 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
3172 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
3173 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
3174 export CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc
3175 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
3176 export FEATURES=full
3177 export CFLAGS="$SMALLCC"
3178 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -lpthread"
3179 export THREADS=1
3180 export CRYPTO=internal
3182 make $MAKEFLAGS $PROGRAM_NAME
3184 if [ $? != 0 ]; then
3185 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3186 exit $?
3192 #make $MAKEFLAGS LDFLAGS="-Wl,--hash-style=gnu" CLIENT_NAME=binaries/Linux/intel/glibc/vlmcs-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL CRYPTO=openssl_with_aes CFLAGS="$SMALL -pipe -flto=jobserver -fwhole-program" PROGRAM_NAME=binaries/Linux/intel/glibc/vlmcsd-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc PLATFORMFLAGS="-m64 -mtune=generic" && \
3193 # Linux x64 glibc with OpenSSL 1.0.x support
3194 INSTALLDIR=binaries/Linux/intel/glibc/
3195 SUFFIX=-x64-glibc-openssl1.0.0-hard-EXPERIMENTAL
3196 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
3197 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
3198 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
3199 export CC=/opt/toolchains/x86_64-glibc-2.19/usr/bin/x86_64-linux-gcc
3200 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
3201 export FEATURES=full
3202 export CFLAGS="$SMALLCC"
3203 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
3204 export THREADS=0
3205 export CRYPTO=openssl_with_aes
3207 make $MAKEFLAGS
3209 if [ $? != 0 ]; then
3210 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3211 exit $?
3214 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3216 make $REUSEOBJFLAGS $MULTI_NAME
3218 if [ $? != 0 ]; then
3219 echo Error creating $MULTI_NAME
3220 exit $?
3226 # Linux x64 musl
3227 INSTALLDIR=binaries/Linux/intel/
3228 SUFFIX=-x64-musl
3229 export PROGRAM_NAME=${INSTALLDIR}musl/vlmcsd${SUFFIX}
3230 export CLIENT_NAME=${INSTALLDIR}musl/vlmcs${SUFFIX}
3231 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
3232 export CC=/opt/toolchains/x86_64_gcc-4.9-linaro_musl-1.1.6/bin/x86_64-openwrt-linux-musl-gcc-4.9.2
3233 #export CC=/opt/toolchains/x86_64-musl/usr/bin/x86_64-linux-gcc
3234 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
3235 export FEATURES=full
3236 export CFLAGS="$SMALLCC"
3237 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
3238 export THREADS=0
3239 export CRYPTO=internal
3240 export NOPROCFS=0
3241 export AUXV=1
3243 make $MAKEFLAGS
3245 if [ $? != 0 ]; then
3246 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3247 exit $?
3250 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
3251 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
3252 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
3253 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu -static"
3255 make $REUSEOBJFLAGS
3257 if [ $? != 0 ]; then
3258 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3259 exit $?
3262 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3264 make $REUSEOBJFLAGS $MULTI_NAME
3266 if [ $? != 0 ]; then
3267 echo Error creating $MULTI_NAME
3268 exit $?
3271 export MULTI_NAME=${INSTALLDIR}musl/vlmcsdmulti${SUFFIX}
3272 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
3274 make $REUSEOBJFLAGS $MULTI_NAME
3276 if [ $? != 0 ]; then
3277 echo Error creating $MULTI_NAME
3278 exit $?
3284 #make $MAKEFLAGS CC=/opt/toolchains/x86_64-uclibc-0.9.33/bin/x86_64-linux-gcc LDFLAGS="-Wl,--hash-style=gnu" CLIENT_NAME=binaries/Linux/intel/uclibc/vlmcs-x64-uclibc PROGRAM_NAME=binaries/Linux/intel/uclibc/vlmcsd-x64-uclibc CFLAGS="$SMALL -flto=jobserver -fwhole-program -pipe -fno-stack-protector" && \
3285 # Linux x64 uclibc
3286 INSTALLDIR=binaries/Linux/intel/uclibc/
3287 SUFFIX=-x64-uclibc
3288 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
3289 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
3290 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
3291 export CC=/opt/toolchains/x86_64-uclibc-0.9.33/bin/x86_64-linux-gcc
3292 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -m64 -mtune=generic"
3293 export FEATURES=full
3294 export CFLAGS="$SMALLCC"
3295 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
3296 export THREADS=0
3297 export CRYPTO=internal
3298 export NOPROCFS=0
3299 export AUXV=0
3301 make $MAKEFLAGS
3303 if [ $? != 0 ]; then
3304 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3305 exit $?
3308 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3310 make $REUSEOBJFLAGS $MULTI_NAME
3312 if [ $? != 0 ]; then
3313 echo Error creating $MULTI_NAME
3314 exit $?
3319 # mips32 little-endian DD-WRT toolchain with gcc 4.1.0
3320 export CC=/opt/simplebuild/toolchains/ddwrt410/bin/mipsel-linux-gcc
3321 INSTALLDIR=binaries/Linux/mips/little-endian/
3322 SUFFIX=-mips32el-ddwrt-gcc$($CC -dumpversion)-uclibc
3323 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
3324 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
3325 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
3326 export PLATFORMFLAGS="-pipe -mips32"
3327 export FEATURES=full
3328 export CFLAGS="$SMALLCC"
3329 export LDFLAGS="-fwhole-program"
3330 export THREADS=0
3331 export CRYPTO=internal
3333 make $MAKEFLAGS CAT=2 $PROGRAM_NAME $MULTI_NAME $CLIENT_NAME
3335 if [ $? != 0 ]; then
3336 echo Error creating $PROGRAM_NAME, $MULTI_NAME and/or $CLIENT_NAME
3337 exit $?
3340 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
3341 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
3342 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
3343 export LDFLAGS="-fwhole-program -static"
3345 make $REUSEOBJFLAGS CAT=2 $PROGRAM_NAME $MULTI_NAME $CLIENT_NAME
3347 if [ $? != 0 ]; then
3348 echo Error creating $PROGRAM_NAME, $MULTI_NAME and/or $CLIENT_NAME
3349 exit $?
3356 #Linux mips32 little-endian uclibc
3357 INSTALLDIR=binaries/Linux/mips/little-endian/
3358 SUFFIX=-mips32el-uclibc
3359 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
3360 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
3361 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
3362 export CC=/opt/toolchains/mips32el-uclibc-0.9.33/bin/mipsel-linux-gcc
3363 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -mips32"
3364 export FEATURES=full
3365 export CFLAGS="$SMALLCC"
3366 export LDFLAGS="$SMALLLD"
3367 export THREADS=0
3368 export CRYPTO=internal
3370 make $MAKEFLAGS
3372 if [ $? != 0 ]; then
3373 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3374 exit $?
3377 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
3378 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
3379 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
3380 export LDFLAGS="$SMALLLD -static"
3382 make $REUSEOBJFLAGS
3384 if [ $? != 0 ]; then
3385 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3386 exit $?
3389 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3391 make $REUSEOBJFLAGS $MULTI_NAME
3393 if [ $? != 0 ]; then
3394 echo Error creating $MULTI_NAME
3395 exit $?
3398 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
3399 export LDFLAGS="$SMALLLD"
3401 make $REUSEOBJFLAGS $MULTI_NAME
3403 if [ $? != 0 ]; then
3404 echo Error creating $MULTI_NAME
3405 exit $?
3411 #Linux armv6 hard-float little-endian. Used on Raspberry Pi with Raspbian.
3412 #The hard-float ABI cannot be combined with thumb.
3413 #You may wish to use armv5el-thumb instead because the binary is smaller
3414 INSTALLDIR=binaries/Linux/arm/little-endian/glibc/
3415 SUFFIX=-armv6hf-Raspberry-glibc
3416 export PROGRAM_NAME=${INSTALLDIR}vlmcsd${SUFFIX}
3417 export CLIENT_NAME=${INSTALLDIR}vlmcs${SUFFIX}
3418 export MULTI_NAME=${INSTALLDIR}vlmcsdmulti${SUFFIX}
3419 export CC=/opt/toolchains/armhfv6-glibc-2.19/bin/arm-linux-gcc
3420 export PLATFORMFLAGS="-flto=jobserver -fwhole-program -march=armv6zk -mfpu=vfp -mfloat-abi=hard -mtune=arm1176jzf-s"
3421 export FEATURES=full
3422 export CFLAGS="$SMALLCC"
3423 export LDFLAGS="$SMALLLD -Wl,--hash-style=gnu"
3424 export THREADS=0
3425 export CRYPTO=internal
3427 make $MAKEFLAGS
3429 if [ $? != 0 ]; then
3430 echo Error creating $CLIENT_NAME and/or $PROGRAM_NAME
3431 exit $?
3434 rm -f *_all.c vlmcsd.o vlmcs.o vlmcsdmulti.o 2> /dev/null
3436 make $REUSEOBJFLAGS $MULTI_NAME
3438 if [ $? != 0 ]; then
3439 echo Error creating $MULTI_NAME
3440 exit $?
3446 # Linux arm big-endian uclibc
3447 INSTALLDIR=binaries/Linux/arm/big-endian/
3448 SUFFIX=-armeb-nslu2-uclibc
3449 export PROGRAM_NAME=${INSTALLDIR}uclibc/vlmcsd${SUFFIX}
3450 export CLIENT_NAME=${INSTALLDIR}uclibc/vlmcs${SUFFIX}
3451 export MULTI_NAME=${INSTALLDIR}uclibc/vlmcsdmulti${SUFFIX}
3452 export CC=/opt/simplebuild/toolchains/nslu2open/bin/armeb-linux-uclibc-gcc
3453 export PLATFORMFLAGS="-pipe"
3454 export FEATURES=full
3455 export CFLAGS="$SMALLCC"
3456 export LDFLAGS="-Wl,-z,norelo"
3457 export THREADS=0
3459 make $MAKEFLAGS CAT=2 $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
3461 if [ $? != 0 ]; then
3462 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
3463 exit $?
3466 export PROGRAM_NAME=${INSTALLDIR}static/vlmcsd${SUFFIX}-static
3467 export CLIENT_NAME=${INSTALLDIR}static/vlmcs${SUFFIX}-static
3468 export MULTI_NAME=${INSTALLDIR}static/vlmcsdmulti${SUFFIX}-static
3469 export LDFLAGS="-Wl,-z,norelo -static"
3471 make $REUSEOBJFLAGS CAT=2 $CLIENT_NAME $PROGRAM_NAME $MULTI_NAME
3473 if [ $? != 0 ]; then
3474 echo Error creating $CLIENT_NAME, $MULTI_NAME and/or $PROGRAM_NAME
3475 exit $?
3479 # Strip off unnecessary stuff from binaries
3481 find binaries -xdev -name 'vlmcs*' -exec /opt/toolchains/mips32el-mips16-glibc-2.18/usr/bin/mipsel-linux-strip -s --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag {} \; 2>/dev/null
3482 find binaries -xdev -name 'vlmcs*' -exec strip -s --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag {} \; 2>/dev/null
3483 find binaries -xdev -name 'vlmcs*' -exec sstrip -z {} \; 2>/dev/null
3485 make alldocs
3487 rm *.o
3489 #cp -p binaries/Linux/intel/glibc/vlmcs-x32-glibc /usr/local/bin/vlmcs
3491 if [ `lsb_release -is` == "Debian" ]; then
3492 cp -pf binaries/Linux/intel/glibc/vlmcsdmulti-x86-glibc /usr/local/sbin/vlmcsdmulti
3493 else
3494 cp -pf binaries/Linux/intel/glibc/vlmcsdmulti-x32-glibc /usr/local/sbin/vlmcsdmulti
3497 ln -s vlmcsdmulti /usr/local/sbin/vlmcsd 2>/dev/null
3498 ln -s ../sbin/vlmcsdmulti /usr/local/bin/vlmcs 2>/dev/null
3499 mkdir -p /usr/local/man/man1 2>/dev/null
3500 mkdir -p /usr/local/man/man5 2>/dev/null
3501 mkdir -p /usr/local/man/man8 2>/dev/null
3502 mkdir -p /usr/local/man/man7 2>/dev/null
3503 cp -a vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/
3504 cp -a vlmcsd.7 /usr/local/man/man7/
3505 cp -a vlmcsd.8 /usr/local/man/man8/
3506 cp -a vlmcsd.ini.5 /usr/local/man/man5/
3507 pbzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8
3508 #pbzip2 -f /usr/local/man/man7/vlmcsd.7
3509 #pbzip2 -f /usr/local/man/man8/vlmcsd.8
3511 mandb >/dev/null 2>&1