Skip to content

Commit

Permalink
Fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Oct 2, 2012
1 parent 02580de commit 20da730
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion binr/blob/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ clean:
mv main.k main.c
rm -f ${BINS2} r2

SOURCES= main.c rabin2.c radare2.c radiff2.c rafind2.c
SOURCES+=rahash2.c rarun2.c rasm2.c rax2.c ragg2.c

build:
mv main.c main.k
rm -f *.[ch]
Expand All @@ -94,7 +97,7 @@ build:
rm -f _$$a ; \
done
rm -f _*
${CC} -o radare2 *.c ${CFLAGS} ${LDFLAGS}
${CC} -o radare2 ${SOURCES} ${CFLAGS} ${LDFLAGS}
mv main.c main.k
rm -f *.[ch]
mv main.k main.c
Expand Down
3 changes: 3 additions & 0 deletions sys/android-build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

BUILD=1
PREFIX="/data/data/org.radare.installer/radare2"
if [ -z "${NDK}" ]; then
echo "use ./android-{arm|mips|x86}.sh"
Expand Down Expand Up @@ -62,6 +63,7 @@ echo NDK_ARCH: ${NDK_ARCH}
echo "Using NDK_ARCH: ${NDK_ARCH}"
echo "Using STATIC_BUILD: ${STATIC_BUILD}"

if [ "${BUILD}" = 1 ]; then
# start build
sleep 2

Expand All @@ -76,6 +78,7 @@ echo ./configure --with-compiler=android --with-ostype=android \
./configure --with-compiler=android --with-ostype=android \
--without-ewf --without-ssl --prefix=${PREFIX} ${CFGFLAGS} || exit 1
make -s -j 4 || exit 1
fi
rm -rf $D
mkdir -p $D

Expand Down

0 comments on commit 20da730

Please sign in to comment.