mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-27 01:26:07 +00:00
31 lines
537 B
Bash
Executable File
31 lines
537 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MAKE=make
|
|
gmake --help >/dev/null 2>&1
|
|
[ $? = 0 ] && MAKE=gmake
|
|
|
|
# find root
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
ccache --help > /dev/null 2>&1
|
|
if [ $? = 0 ]; then
|
|
[ -z "${CC}" ] && CC=gcc
|
|
CC="ccache ${CC}"
|
|
export CC
|
|
fi
|
|
PREFIX=/usr
|
|
if [ -n "$1" ]; then
|
|
PREFIX="$1"
|
|
fi
|
|
DOBUILD=1
|
|
if [ 1 = "${DOBUILD}" ]; then
|
|
# build
|
|
if [ -f config-user.mk ]; then
|
|
${MAKE} mrproper > /dev/null 2>&1
|
|
fi
|
|
export CFLAGS="-fPIC -pie -D__ANDROID__=1"
|
|
./configure-plugins
|
|
./configure --prefix=$PREFIX --with-nonpic --without-pic
|
|
fi
|
|
${MAKE} -j 8
|