Lines Matching +full:mingw32 +full:- +full:make
4 # By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2014
6 # Note: to cross-compile "nix32" on Linux, package gcc-multilib is required.
11 IOS_SDK=`xcrun --sdk iphoneos --show-sdk-path`
12 IOS_CC=`xcrun --sdk iphoneos -f clang`
13 IOS_CFLAGS="-Os -Wimplicit -isysroot $IOS_SDK"
14 IOS_LDFLAGS="-isysroot $IOS_SDK"
21 CC="$IOS_CC" CFLAGS="$IOS_CFLAGS" LDFLAGS="$IOS_LDFLAGS" LIBARCHS="$IOS_ARCHS" ${MAKE}
26 if [ -z "$NDK" ]; then
30 HOSTOS=$(uname -s | tr 'LD' 'ld')
31 HOSTARCH=$(uname -m)
38 [ -n "$APILEVEL" ] || APILEVEL="android-14" # default to ICS
39 [ -n "$GCCVER" ] || GCCVER="4.8"
40 CROSS=arm-linux-androideabi-
43 [ -n "$APILEVEL" ] || APILEVEL="android-21" # first with arm64
44 [ -n "$GCCVER" ] || GCCVER="4.9"
45 CROSS=aarch64-linux-android-
54 TOOLCHAIN="$NDK/toolchains/$CROSS$GCCVER/prebuilt/$HOSTOS-$HOSTARCH"
55 PLATFORM="$NDK/platforms/$APILEVEL/arch-$TARGARCH"
57 …CROSS="$TOOLCHAIN/bin/$CROSS" CFLAGS="--sysroot=$PLATFORM" LDFLAGS="--sysroot=$PLATFORM" ${MAKE} $*
62 if [ $(uname -s) = Darwin ]; then
66 if [ -n "$CC" ]; then
67 ${MAKE} CC="$CC" $*
69 ${MAKE} $*
77 rm -rf /usr/lib/libcapstone.*
78 rm -rf /usr/include/capstone
82 PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)"
83 # set PKGCFGDIR only in non-Brew environment & pkg-config is available
86 ${MAKE} CC=$CC PKGCFGDIR=$PKGCFGDIR install
88 ${MAKE} PKGCFGDIR=$PKGCFGDIR install
92 ${MAKE} CC=$CC install
94 ${MAKE} install
98 if test -d /usr/lib64; then
99 if [ -n "$CC" ]; then
100 ${MAKE} LIBDIRARCH=lib64 CC="$CC" install
102 ${MAKE} LIBDIRARCH=lib64 install
105 if [ -n "$CC" ]; then
106 ${MAKE} CC="$CC" install
108 ${MAKE} install
118 PKGCFGDIR="$(pkg-config --variable pc_path pkg-config | cut -d ':' -f 1)"
121 ${MAKE} PKGCFGDIR=$PKGCFGDIR uninstall
123 ${MAKE} uninstall
126 if test -d /usr/lib64; then
127 ${MAKE} LIBDIRARCH=lib64 uninstall
129 ${MAKE} uninstall
134 MAKE=make
136 export MAKE=gmake
142 export MAKE=gmake
152 … CAPSTONE_USE_SYS_DYN_MEM=yes CAPSTONE_STATIC=yes CFLAGS='-O0 -g -fsanitize=address' LDFLAGS='-fsa…
155 "nix32" ) CFLAGS=-m32 LDFLAGS=-m32 build $*;;
156 "cross-win32" ) CROSS=i686-w64-mingw32- build $*;;
157 "cross-win64" ) CROSS=x86_64-w64-mingw32- build $*;;
158 "cygwin-mingw32" ) CROSS=i686-pc-mingw32- build $*;;
159 "cygwin-mingw64" ) CROSS=x86_64-w64-mingw32- build $*;;
160 "cross-android" ) build_android $*;;
167 …"osx-kernel" ) CAPSTONE_USE_SYS_DYN_MEM=yes CAPSTONE_HAS_OSXKERNEL=yes CAPSTONE_ARCHS=x86 CAPSTONE…
168 …cho "Usage: make.sh [nix32|cross-win32|cross-win64|cygwin-mingw32|cygwin-mingw64|ios|ios_armv7|ios…