2012-05-03 22:29:28 +00:00
|
|
|
# Please install the following prerequisites (instructions for each follows):
|
|
|
|
# Android OS SDK: http://source.android.com/download
|
|
|
|
#
|
|
|
|
# Install and prepare the Android OS SDK ( http://source.android.com/download )
|
|
|
|
# on Debian or Ubuntu
|
|
|
|
|
|
|
|
### these modify the calling shell
|
|
|
|
# workaround for cross-compiling bug in autoconf
|
|
|
|
export ac_cv_func_malloc_0_nonnull=yes
|
|
|
|
export ac_cv_func_setpgrp_void=yes
|
|
|
|
|
2013-12-06 00:28:54 +00:00
|
|
|
EXTERNAL_ROOT := $(shell pwd)
|
|
|
|
|
|
|
|
# Android now has 64-bit and 32-bit versions of the NDK for GNU/Linux. We
|
|
|
|
# assume that the build platform uses the appropriate version, otherwise the
|
|
|
|
# user building this will have to manually set NDK_PROCESSOR or NDK_TOOLCHAIN.
|
|
|
|
CPU := $(shell uname -m)
|
|
|
|
ifeq ($(CPU),x86_64)
|
|
|
|
NDK_PROCESSOR=x86_64
|
|
|
|
else
|
|
|
|
NDK_PROCESSOR=x86
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Android NDK setup
|
|
|
|
NDK_BASE ?= /opt/android-ndk
|
2014-03-24 18:34:20 +00:00
|
|
|
NDK_PLATFORM_LEVEL ?= 5
|
2013-12-06 00:28:54 +00:00
|
|
|
NDK_ABI=arm
|
2014-03-24 18:34:20 +00:00
|
|
|
NDK_COMPILER_VERSION = 4.7
|
|
|
|
NDK_SYSROOT=$(NDK_BASE)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
|
2013-12-06 00:28:54 +00:00
|
|
|
APP_ABI=armeabi
|
|
|
|
# NDK platform level, aka APP_PLATFORM, is equivalent to minSdkVersion
|
|
|
|
APP_PLATFORM := android-$(shell sed -n 's,.*android:minSdkVersion="\([0-9][0-9]*\)".*,\1,p' \
|
|
|
|
$(EXTERNAL_ROOT)/../AndroidManifest.xml)
|
|
|
|
NDK_SYSROOT=$(NDK_BASE)/platforms/$(APP_PLATFORM)/arch-$(NDK_ABI)
|
2014-01-13 03:15:50 +00:00
|
|
|
NDK_TOOLCHAIN_VERSION=4.7
|
2013-12-06 00:28:54 +00:00
|
|
|
NDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')
|
|
|
|
ifeq ($(NDK_ABI),x86)
|
|
|
|
HOST = i686-linux-android
|
|
|
|
NDK_TOOLCHAIN = $(NDK_ABI)-$(NDK_TOOLCHAIN_VERSION)
|
|
|
|
else
|
|
|
|
HOST = $(NDK_ABI)-linux-androideabi
|
|
|
|
NDK_TOOLCHAIN = $(HOST)-$(NDK_TOOLCHAIN_VERSION)
|
|
|
|
endif
|
|
|
|
NDK_TOOLCHAIN_BASE=$(NDK_BASE)/toolchains/$(NDK_TOOLCHAIN)/prebuilt/$(NDK_UNAME)-$(NDK_PROCESSOR)
|
|
|
|
|
|
|
|
# include Android's build flags
|
|
|
|
TARGET_ARCH_ABI = $(APP_ABI)
|
|
|
|
include $(NDK_BASE)/toolchains/$(NDK_TOOLCHAIN)/setup.mk
|
|
|
|
|
|
|
|
CC := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-gcc --sysroot=$(NDK_SYSROOT)
|
|
|
|
CXX := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-g++
|
|
|
|
CPP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-cpp
|
|
|
|
LD := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ld
|
|
|
|
AR := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ar
|
|
|
|
RANLIB := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-ranlib
|
|
|
|
STRIP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-strip \
|
2012-05-03 22:29:28 +00:00
|
|
|
--strip-unneeded -R .note -R .comment
|
|
|
|
|
2013-12-06 00:28:54 +00:00
|
|
|
CFLAGS = -DANDROID $(TARGET_CFLAGS)
|
|
|
|
LDFLAGS = -llog $(TARGET_LDFLAGS)
|
|
|
|
|
|
|
|
# change 'release' to 'debug' for unoptimized debug builds
|
|
|
|
ifeq ($(APP_ABI),armeabi-v7a)
|
|
|
|
CFLAGS += $(TARGET_arm_release_CFLAGS)
|
|
|
|
endif
|
|
|
|
ifeq ($(APP_ABI),armeabi)
|
|
|
|
CFLAGS += $(TARGET_thumb_release_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY = clean showsetup \
|
|
|
|
assets assets-clean \
|
|
|
|
openssl-static openssl-static-clean \
|
|
|
|
libevent libevent-clean \
|
|
|
|
iptables iptables-clean \
|
|
|
|
tor tor-clean \
|
|
|
|
obfsproxy obfsproxy-clean \
|
2014-02-23 00:19:50 +00:00
|
|
|
obfsclient obfsclient-clean \
|
2013-12-06 00:28:54 +00:00
|
|
|
privoxy privoxy-clean
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2012-05-03 22:46:17 +00:00
|
|
|
all: assets
|
2012-05-03 22:29:28 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------#
|
2013-12-27 21:41:54 +00:00
|
|
|
# openssl
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2013-07-22 17:57:10 +00:00
|
|
|
lib/libcrypto.a:
|
2013-12-27 21:41:54 +00:00
|
|
|
cd openssl && \
|
|
|
|
CC="$(CC)" \
|
2014-01-13 03:15:50 +00:00
|
|
|
./Configure android -DL_ENDIAN && \
|
2013-12-27 21:41:54 +00:00
|
|
|
ANDROID_DEV=$(NDK_BASE)/platforms/android-8/arch-arm/usr make build_libs
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2013-07-22 17:57:10 +00:00
|
|
|
lib/libssl.a:
|
2013-12-27 21:41:54 +00:00
|
|
|
cp config.sub openssl
|
|
|
|
cp config.guess openssl
|
|
|
|
cd openssl && \
|
|
|
|
CC="$(CC)"\
|
2014-01-13 03:15:50 +00:00
|
|
|
./Configure android -DL_ENDIAN && \
|
2013-12-27 21:41:54 +00:00
|
|
|
ANDROID_DEV=$(NDK_BASE)/platforms/android-8/arch-arm/usr make build_libs
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2013-12-27 21:41:54 +00:00
|
|
|
openssl-build-stamp: lib/libcrypto.a lib/libssl.a
|
|
|
|
touch openssl-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2013-12-27 21:41:54 +00:00
|
|
|
openssl: openssl-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
test -d lib || mkdir lib
|
|
|
|
test -d include || mkdir include
|
2012-06-28 04:28:48 +00:00
|
|
|
test -d include/openssl || mkdir include/openssl
|
2013-12-27 21:41:54 +00:00
|
|
|
cp openssl/libcrypto.a lib/libcrypto.a
|
|
|
|
cp openssl/libssl.a lib/libssl.a
|
|
|
|
cp openssl/include/openssl/* include/openssl
|
|
|
|
|
|
|
|
openssl-clean:
|
|
|
|
-rm openssl-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
-rm lib/libcrypto.a
|
|
|
|
-rm lib/libssl.a
|
2013-12-27 21:41:54 +00:00
|
|
|
-cd openssl && \
|
2012-05-04 21:00:17 +00:00
|
|
|
git clean -fdx
|
2012-05-03 22:29:28 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# libevent
|
|
|
|
|
2012-05-04 21:00:17 +00:00
|
|
|
libevent/Makefile:
|
2012-05-03 22:29:28 +00:00
|
|
|
cd libevent && ./autogen.sh
|
2012-05-03 23:10:41 +00:00
|
|
|
cp config.sub libevent
|
|
|
|
cp config.guess libevent
|
2012-05-03 22:29:28 +00:00
|
|
|
cd libevent && \
|
2013-12-05 23:38:11 +00:00
|
|
|
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -I$(EXTERNAL_ROOT)/include" LDFLAGS="$(LDFLAGS)" \
|
2012-05-03 22:29:28 +00:00
|
|
|
./configure \
|
|
|
|
--host=$(HOST) \
|
2012-05-04 21:00:17 +00:00
|
|
|
--disable-shared
|
2012-05-03 22:29:28 +00:00
|
|
|
|
|
|
|
libevent-build-stamp: libevent/Makefile
|
|
|
|
$(MAKE) -C libevent
|
|
|
|
touch libevent-build-stamp
|
|
|
|
|
2013-12-27 21:41:54 +00:00
|
|
|
libevent: openssl libevent-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
test -d lib || mkdir lib
|
|
|
|
test -d include || mkdir include
|
|
|
|
cp libevent/.libs/libevent.a lib
|
2013-02-12 06:44:09 +00:00
|
|
|
cp -R libevent/include/event2 include
|
2012-05-03 22:29:28 +00:00
|
|
|
|
|
|
|
libevent-clean:
|
2013-02-12 06:44:09 +00:00
|
|
|
-rm -f include/event2
|
2012-05-03 22:29:28 +00:00
|
|
|
-rm -f lib/libevent.a
|
|
|
|
-rm -f libevent-build-stamp
|
2012-05-04 21:00:17 +00:00
|
|
|
-cd libevent && \
|
|
|
|
git clean -fdx
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2012-07-06 18:53:29 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# iptables
|
|
|
|
|
|
|
|
iptables/Makefile:
|
2013-12-28 14:10:05 +00:00
|
|
|
cp iptables-patch-1 iptables
|
|
|
|
cp iptables-patch-2 iptables
|
|
|
|
cp iptables-patch-3 iptables
|
|
|
|
-cd iptables && \
|
|
|
|
patch -N -p1 --reject-file=- < iptables-patch-1
|
|
|
|
-cd iptables && \
|
|
|
|
patch -N -p1 --reject-file=- < iptables-patch-2
|
|
|
|
-cd iptables && \
|
|
|
|
patch -N -p1 --reject-file=- < iptables-patch-3
|
2012-07-06 18:53:29 +00:00
|
|
|
cd iptables && ./autogen.sh
|
|
|
|
cp config.sub iptables
|
|
|
|
cp config.guess iptables
|
|
|
|
cd iptables && \
|
2013-12-28 14:10:05 +00:00
|
|
|
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -I$(EXTERNAL_ROOT)/include" LDFLAGS="$(LDFLAGS)" \
|
|
|
|
./configure --host=$(HOST) --disable-shared --enable-static
|
2012-07-06 18:53:29 +00:00
|
|
|
|
|
|
|
iptables-build-stamp: iptables/Makefile
|
|
|
|
$(MAKE) -C iptables
|
|
|
|
touch iptables-build-stamp
|
2013-12-28 14:10:05 +00:00
|
|
|
cp iptables/iptables/xtables-multi bin/xtables
|
2012-07-06 18:53:29 +00:00
|
|
|
|
|
|
|
iptables: iptables-build-stamp
|
|
|
|
|
|
|
|
iptables-clean:
|
|
|
|
-rm -f iptables-build-stamp
|
2013-12-28 14:10:05 +00:00
|
|
|
-rm bin/xtables
|
|
|
|
-cd iptables && \
|
|
|
|
git clean -fdx
|
2012-07-06 18:53:29 +00:00
|
|
|
|
2012-05-03 22:29:28 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# tor
|
|
|
|
|
|
|
|
tor/configure:
|
|
|
|
cd tor && \
|
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
tor/Makefile: tor/configure
|
2012-05-03 23:10:41 +00:00
|
|
|
cp config.sub tor
|
|
|
|
cp config.guess tor
|
2012-05-03 22:29:28 +00:00
|
|
|
cd tor && \
|
2012-09-30 19:48:06 +00:00
|
|
|
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fPIE -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \
|
2013-02-12 06:44:09 +00:00
|
|
|
LIBS="-L$(EXTERNAL_ROOT)/lib" CFLAGS="-I$(EXTERNAL_ROOT)/include -I$(EXTERNAL_ROOT)/include/event2" \
|
2012-05-03 22:29:28 +00:00
|
|
|
./configure \
|
|
|
|
--host=$(HOST) \
|
|
|
|
--disable-asciidoc \
|
2012-09-30 19:48:06 +00:00
|
|
|
--enable-static-libevent --with-libevent-dir=$(EXTERNAL_ROOT) \
|
|
|
|
--enable-static-openssl --with-openssl-dir=$(EXTERNAL_ROOT) \
|
|
|
|
--disable-linker-hardening --disable-gcc-hardening
|
2012-05-03 22:29:28 +00:00
|
|
|
|
|
|
|
tor-build-stamp: tor/Makefile
|
2014-03-24 18:18:23 +00:00
|
|
|
$(MAKE) -C tor all-am
|
2012-05-03 22:29:28 +00:00
|
|
|
touch tor-build-stamp
|
|
|
|
|
2013-12-27 21:41:54 +00:00
|
|
|
tor: libevent openssl tor-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
test -d bin || mkdir bin
|
|
|
|
cp tor/src/or/tor bin
|
|
|
|
|
|
|
|
tor-clean:
|
|
|
|
-rm -f bin/tor
|
|
|
|
-rm -f tor-build-stamp
|
2012-05-04 21:00:17 +00:00
|
|
|
-cd tor && \
|
|
|
|
git clean -fdx
|
|
|
|
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# obfsproxy
|
|
|
|
|
|
|
|
|
|
|
|
obfsproxy/Makefile:
|
2012-05-04 21:38:37 +00:00
|
|
|
cp obfsproxy_android_no_hardening.patch obfsproxy
|
2012-06-28 04:28:48 +00:00
|
|
|
-cd obfsproxy && \
|
2012-05-04 21:38:37 +00:00
|
|
|
patch -N -p1 --reject-file=- < obfsproxy_android_no_hardening.patch
|
|
|
|
cd obfsproxy && \
|
|
|
|
./autogen.sh
|
2012-05-04 21:00:17 +00:00
|
|
|
cp config.sub obfsproxy
|
|
|
|
cp config.guess obfsproxy
|
|
|
|
cd obfsproxy && \
|
|
|
|
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fPIE -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \
|
|
|
|
libevent_LIBS="-L$(EXTERNAL_ROOT)/lib -levent" libevent_CFLAGS="-I$(EXTERNAL_ROOT)/include" \
|
|
|
|
libcrypto_LIBS="-L$(EXTERNAL_ROOT)/lib -lcrypto" libcrypto_CFLAGS="-I$(EXTERNAL_ROOT)/include" \
|
|
|
|
./configure \
|
|
|
|
--host=$(HOST) \
|
|
|
|
|
|
|
|
obfsproxy-build-stamp: obfsproxy/Makefile
|
|
|
|
$(MAKE) -C obfsproxy
|
|
|
|
touch obfsproxy-build-stamp
|
|
|
|
|
2013-12-27 21:41:54 +00:00
|
|
|
obfsproxy: openssl libevent obfsproxy-build-stamp
|
2012-05-04 21:00:17 +00:00
|
|
|
test -d bin || mkdir bin
|
|
|
|
cp obfsproxy/obfsproxy bin
|
|
|
|
|
|
|
|
obfsproxy-clean:
|
|
|
|
-rm -f bin/obfsproxy
|
|
|
|
-rm -f obfsproxy-build-stamp
|
|
|
|
-cd obfsproxy && \
|
|
|
|
git clean -fdx
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2014-02-23 00:19:50 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# obfsclient
|
|
|
|
|
|
|
|
|
|
|
|
obfsclient/Makefile:
|
|
|
|
cd obfsclient && \
|
|
|
|
./autogen.sh
|
|
|
|
cp config.sub obfsclient
|
|
|
|
cp config.guess obfsclient
|
|
|
|
cd obfsclient && \
|
2014-03-24 18:18:23 +00:00
|
|
|
CPP="$(CPP)" CXX="$(CXX)" AR="$(AR)" RANLIB=$(RANLIB) CPPFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fPIE -fwrapv -fno-strict-aliasing -fno-strict-overflow" CXXFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fPIE -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \
|
|
|
|
LIBS="-L$(EXTERNAL_ROOT)/lib" CFLAGS="-I$(EXTERNAL_ROOT)/include -I$(EXTERNAL_ROOT)/include/event2" \
|
2014-02-23 00:19:50 +00:00
|
|
|
./configure \
|
|
|
|
--host=$(HOST) \
|
|
|
|
|
|
|
|
obfsclient-build-stamp: obfsclient/Makefile
|
|
|
|
$(MAKE) -C obfsclient
|
|
|
|
touch obfsclient-build-stamp
|
|
|
|
|
|
|
|
obfsclient: openssl libevent obfsclient-build-stamp
|
|
|
|
test -d bin || mkdir bin
|
|
|
|
cp obfsclient/obfsclient bin
|
|
|
|
|
|
|
|
obfsclient-clean:
|
|
|
|
-rm -f bin/obfsclient
|
|
|
|
-rm -f obfsclient-build-stamp
|
|
|
|
-cd obfsclient && \
|
|
|
|
git clean -fdx
|
|
|
|
|
2012-05-03 22:29:28 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# privoxy
|
|
|
|
|
|
|
|
|
2012-05-07 02:47:34 +00:00
|
|
|
privoxy/config.log:
|
2012-07-06 18:53:29 +00:00
|
|
|
tar xzvf privoxy.tar.gz
|
|
|
|
mv privoxy*stable privoxy
|
|
|
|
cp privoxy.configure.in privoxy/configure.in
|
2012-05-04 22:03:18 +00:00
|
|
|
cd privoxy && \
|
|
|
|
autoheader
|
|
|
|
cd privoxy && \
|
|
|
|
autoconf
|
2012-05-03 23:10:41 +00:00
|
|
|
cp config.sub privoxy
|
|
|
|
cp config.guess privoxy
|
2012-05-03 22:29:28 +00:00
|
|
|
cd privoxy && \
|
|
|
|
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
|
|
|
|
./configure \
|
2012-06-05 16:04:56 +00:00
|
|
|
--host=arm-linux-eabi --enable-pthread
|
|
|
|
## --disable-pthread
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2012-05-07 02:47:34 +00:00
|
|
|
privoxy-build-stamp: privoxy/config.log
|
2012-05-03 22:29:28 +00:00
|
|
|
$(MAKE) -C privoxy
|
|
|
|
touch privoxy-build-stamp
|
|
|
|
|
|
|
|
privoxy: privoxy-build-stamp
|
|
|
|
test -d bin || mkdir bin
|
|
|
|
cp privoxy/privoxy bin
|
|
|
|
|
|
|
|
privoxy-clean:
|
|
|
|
-rm -f bin/privoxy
|
|
|
|
-rm -f privoxy-build-stamp
|
2012-07-06 18:53:29 +00:00
|
|
|
-rm -rf privoxy
|
2012-05-03 22:29:28 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# JTorControl library
|
|
|
|
|
2012-05-07 02:47:34 +00:00
|
|
|
jtorctl/bin/jtorctl.jar:
|
2012-05-03 22:29:28 +00:00
|
|
|
test -d jtorctl/bin || mkdir jtorctl/bin
|
|
|
|
cd jtorctl && \
|
2012-06-20 00:44:06 +00:00
|
|
|
javac -source 1.6 -target 1.6 net/freehaven/tor/control/TorControlConnection.java -d bin
|
2012-05-03 22:46:17 +00:00
|
|
|
cd jtorctl/bin && \
|
2012-05-07 02:47:34 +00:00
|
|
|
jar cvf jtorctl.jar *
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2012-05-07 02:47:34 +00:00
|
|
|
jtorctl-build-stamp: jtorctl/bin/jtorctl.jar
|
|
|
|
touch jtorctl-build-stamp
|
|
|
|
|
|
|
|
jtorctl: jtorctl-build-stamp
|
|
|
|
test -d bin || mkdir bin
|
|
|
|
cp jtorctl/bin/jtorctl.jar bin
|
2013-12-05 23:38:11 +00:00
|
|
|
|
2012-05-07 02:47:34 +00:00
|
|
|
jtorctl-clean:
|
|
|
|
-rm -rf jtorctl/bin
|
|
|
|
-rm jtorctl-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------#
|
2012-05-07 02:47:34 +00:00
|
|
|
#create and clean assets: FYI - tor is stored as a ZIP file with an mp3 extension
|
|
|
|
#in order to stop Android OS (older devices) from trying to compress/decompress it
|
|
|
|
#this is related to a bug in compression of assets and resources > 1MB
|
|
|
|
|
2013-12-28 14:10:05 +00:00
|
|
|
assets: tor privoxy jtorctl obfsproxy iptables
|
2013-12-27 16:14:11 +00:00
|
|
|
install -d ../libs/armeabi
|
2012-05-03 22:46:17 +00:00
|
|
|
install -d ../libs
|
2013-12-27 16:14:11 +00:00
|
|
|
install bin/privoxy ../libs/armeabi/libprivoxy.so
|
|
|
|
install bin/obfsproxy ../libs/armeabi/libobfsproxy.so
|
2012-05-07 02:47:34 +00:00
|
|
|
install bin/jtorctl.jar ../libs
|
2013-12-27 16:14:11 +00:00
|
|
|
install bin/tor ../libs/armeabi/libtor.so
|
2013-12-28 14:10:05 +00:00
|
|
|
install bin/xtables ../libs/armeabi/libxtables.so
|
2012-05-03 23:10:41 +00:00
|
|
|
|
|
|
|
assets-clean:
|
2013-12-28 14:10:05 +00:00
|
|
|
-rm ../libs/armeabi/libxtables.so
|
2013-12-27 16:14:11 +00:00
|
|
|
-rm ../libs/armeabi/libtor.so
|
|
|
|
-rm ../libs/armeabi/libprivoxy.so
|
|
|
|
-rm ../libs/armeabi/libobfsproxy.so
|
|
|
|
-rm ../libs/jtorctl.jar
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2012-05-03 22:46:17 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# cleanup, cleanup, put the toys away
|
|
|
|
|
2013-12-27 21:41:54 +00:00
|
|
|
clean: openssl-clean libevent-clean tor-clean privoxy-clean jtorctl-clean assets-clean
|
2013-12-06 00:28:54 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# debugging stuff
|
|
|
|
|
|
|
|
showsetup:
|
|
|
|
@echo "NDK_TOOLCHAIN_VERSION: $(NDK_TOOLCHAIN_VERSION)"
|
|
|
|
@echo "NDK_TOOLCHAIN: $(NDK_TOOLCHAIN)"
|
|
|
|
@echo "NDK_SYSROOT: $(NDK_SYSROOT)"
|
|
|
|
@echo "APP_PLATFORM: $(APP_PLATFORM)"
|
|
|
|
@echo "APP_ABI: $(APP_ABI)"
|
|
|
|
@echo "HOST: $(HOST)"
|
|
|
|
@echo "CC: $(CC)"
|
|
|
|
@echo "LD: $(LD)"
|
|
|
|
@echo "CFLAGS: $(CFLAGS)"
|
|
|
|
@echo "LDFLAGS: $(LDFLAGS)"
|