mirror of
https://github.com/radareorg/radare2.git
synced 2026-04-12 12:56:05 +02:00
34 lines
727 B
Bash
Executable File
34 lines
727 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MAKE=make
|
|
gmake --version > /dev/null 2>&1
|
|
[ $? = 0 ] && MAKE=gmake
|
|
|
|
echo "[*] Finding `type ${MAKE}` OK"
|
|
|
|
if [ ! -f config-user.mk ]; then
|
|
printf "[*] Configuring the build system ... "
|
|
./configure > /dev/null 2>&1 || exit 1
|
|
echo OK
|
|
fi
|
|
|
|
# checks
|
|
if [ -d "$HOME/.local/share/radare2/prefix/include/capstone" ]; then
|
|
echo "[*] Using capstone from r2pm"
|
|
export PKG_CONFIG_PATH
|
|
else
|
|
echo "[*] Using bundled capstone from subprojects"
|
|
fi
|
|
|
|
echo "[*] Checking subprojects... "
|
|
${MAKE} -C subprojects > /dev/null
|
|
|
|
printf "[*] Running configure... "
|
|
CFGARGS=""
|
|
if [ `uname` = Linux ]; then
|
|
CFGARGS="${CFGARGS} --with-rpath"
|
|
fi
|
|
./configure ${CFGARGS} > /dev/null 2>&1
|
|
echo OK
|
|
echo "[*] Ready. You can now run 'make'."
|