radare2/preconfigure
2021-10-19 20:21:36 +02:00

27 lines
723 B
Bash
Executable File

#!/bin/sh
if [ ! -f config-user.mk ]; then
printf "[*] Configuring the build system ... "
./configure || exit 1
fi
printf "[*] Checking out capstone... "
rm -rf shlr/capstone
MAKE=make
gmake --version > /dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
${MAKE} -C shlr capstone > /dev/null 2>&1 || exit 1
echo OK
printf "[*] Checking out vector35-arm64... "
rm -rf libr/asm/arch/arm/v35arm64/arch-arm64
${MAKE} -C libr/asm/arch/arm/v35arm64 arch-arm64 > /dev/null || exit 1
echo OK
printf "[*] Checking out vector35-armv7... "
rm -rf libr/asm/arch/arm/v35arm64/arch-armv7
${MAKE} -C libr/asm/arch/arm/v35arm64 arch-armv7 > /dev/null || exit 1
echo OK
if [ `uname` = Linux ]; then
./configure --with-rpath
else
./configure
fi