[go: up one dir, main page]

Menu

[d6a55f]: / build_w64.sh  Maximize  Restore  History

Download this file

44 lines (33 with data), 648 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# Change this script to meet your needs and/or environment.
#TARGET=x86_64-pc-mingw32
TARGET=x86_64-w64-mingw32
PREFIX=/opt/cross_win64
PATH="$PREFIX/bin:$PATH"
export PATH
W64BUILD=1
export W64BUILD
CC="$TARGET-gcc"
AS="$TARGET-as"
RANLIB="$TARGET-ranlib"
AR="$TARGET-ar"
WINDRES="$TARGET-windres"
export CC AS RANLIB AR WINDRES
STRIPPER="$TARGET-strip"
if [ "$1" = "strip" ]; then
$STRIPPER vispatch.exe
exit 0
fi
HOST_OS=`uname|sed -e s/_.*//|tr '[:upper:]' '[:lower:]'`
case "$HOST_OS" in
linux)
MAKE_CMD=make
;;
freebsd|openbsd|netbsd)
MAKE_CMD=gmake
;;
*)
MAKE_CMD=make
;;
esac
exec $MAKE_CMD -f Makefile.mingw $*