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)
|
2015-02-04 21:29:03 +00:00
|
|
|
NDK_PROCESSOR=x86_64
|
2013-12-06 00:28:54 +00:00
|
|
|
else
|
|
|
|
NDK_PROCESSOR=x86
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Android NDK setup
|
2015-06-03 20:13:18 +00:00
|
|
|
ANDROID_NDK_HOME ?= /opt/android-ndk
|
2015-04-12 01:16:20 +00:00
|
|
|
NDK_PLATFORM_LEVEL ?= 16
|
2015-05-13 15:55:41 +00:00
|
|
|
NDK_TOOLCHAIN_VERSION=4.8
|
2014-06-06 14:10:48 +00:00
|
|
|
APP_ABI ?= armeabi
|
2015-05-12 06:27:07 +00:00
|
|
|
NDK_ABI ?= $(APP_ABI)
|
2015-04-27 15:58:57 +00:00
|
|
|
ifneq ($(filter arm%, $(APP_ABI)),)
|
|
|
|
NDK_ABI := arm
|
|
|
|
endif
|
|
|
|
ifneq ($(filter arm64%, $(APP_ABI)),)
|
|
|
|
NDK_ABI := arm64
|
|
|
|
endif
|
2015-06-03 20:13:18 +00:00
|
|
|
NDK_SYSROOT=$(ANDROID_NDK_HOME)/platforms/android-$(NDK_PLATFORM_LEVEL)/arch-$(NDK_ABI)
|
2013-12-06 00:28:54 +00:00
|
|
|
NDK_UNAME := $(shell uname -s | tr '[A-Z]' '[a-z]')
|
2015-04-27 15:58:57 +00:00
|
|
|
ifneq ($(filter mips%, $(NDK_ABI)),)
|
|
|
|
HOST := $(NDK_ABI)el-linux-android
|
|
|
|
endif
|
|
|
|
ifneq ($(filter arm64, $(NDK_ABI)),)
|
|
|
|
HOST := aarch64-linux-android
|
|
|
|
endif
|
|
|
|
ifneq ($(filter arm, $(NDK_ABI)),)
|
|
|
|
HOST := arm-linux-androideabi
|
|
|
|
endif
|
|
|
|
ifneq ($(filter x86, $(NDK_ABI)),)
|
|
|
|
HOST := i686-linux-android
|
|
|
|
endif
|
|
|
|
ifneq ($(filter x86_64, $(NDK_ABI)),)
|
|
|
|
HOST := x86_64-linux-android
|
|
|
|
endif
|
|
|
|
|
|
|
|
NDK_TOOLCHAIN := $(HOST)-$(NDK_TOOLCHAIN_VERSION)
|
|
|
|
ifneq ($(filter x86%, $(NDK_ABI)),)
|
|
|
|
NDK_TOOLCHAIN := $(NDK_ABI)-$(NDK_TOOLCHAIN_VERSION)
|
2013-12-06 00:28:54 +00:00
|
|
|
endif
|
2015-06-03 20:13:18 +00:00
|
|
|
NDK_TOOLCHAIN_BASE=$(ANDROID_NDK_HOME)/toolchains/$(NDK_TOOLCHAIN)/prebuilt/$(NDK_UNAME)-$(NDK_PROCESSOR)
|
2013-12-06 00:28:54 +00:00
|
|
|
|
|
|
|
# include Android's build flags
|
|
|
|
TARGET_ARCH_ABI = $(APP_ABI)
|
2015-06-03 20:13:18 +00:00
|
|
|
include $(ANDROID_NDK_HOME)/toolchains/$(NDK_TOOLCHAIN)/setup.mk
|
2013-12-06 00:28:54 +00:00
|
|
|
|
|
|
|
CC := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-gcc --sysroot=$(NDK_SYSROOT)
|
2014-04-09 23:23:52 +00:00
|
|
|
CXX := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-g++ --sysroot=$(NDK_SYSROOT)
|
|
|
|
CPP := $(NDK_TOOLCHAIN_BASE)/bin/$(HOST)-cpp --sysroot=$(NDK_SYSROOT)
|
2013-12-06 00:28:54 +00:00
|
|
|
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 \
|
2015-04-15 13:58:02 +00:00
|
|
|
--strip-unneeded -R .note -R .comment --strip-debug
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2015-04-15 13:58:02 +00:00
|
|
|
# PIEFLAGS for SDK 16/Android L must be set to -fPIE -pie, but can override for earlier targets
|
2015-04-15 14:15:38 +00:00
|
|
|
PIEFLAGS ?= -fPIE -pie
|
2014-11-06 19:05:19 +00:00
|
|
|
CFLAGS = -DANDROID $(TARGET_CFLAGS) $(PIEFLAGS)
|
|
|
|
LDFLAGS = -llog $(TARGET_LDFLAGS) $(PIEFLAGS)
|
2014-04-25 16:45:11 +00:00
|
|
|
|
2013-12-06 00:28:54 +00:00
|
|
|
# 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 \
|
2014-04-25 03:43:33 +00:00
|
|
|
polipo polipo-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
|
|
|
|
2015-04-29 14:08:02 +00:00
|
|
|
# Disable rc4 cipher for 64-bit archs, to avoid this link error for tor:
|
|
|
|
# external/lib/libcrypto.a(e_rc4_hmac_md5.o):e_rc4_hmac_md5.c:function rc4_hmac_md5_cipher: error: undefined reference to 'rc4_md5_enc'
|
|
|
|
OPENSSL_CONF_FLAG=
|
|
|
|
ifneq ($(findstring 64, $(NDK_ABI)),)
|
2015-04-29 20:57:13 +00:00
|
|
|
OPENSSL_CONF_FLAG+=no-rc4
|
|
|
|
endif
|
|
|
|
|
|
|
|
# OpenSSL's 'make depend' fails if _MIPS_SZLONG is not set:
|
|
|
|
ifneq ($(filter mips%, $(NDK_ABI)),)
|
|
|
|
ifneq ($(findstring 64, $(NDK_ABI)),)
|
|
|
|
OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=64
|
|
|
|
else
|
2015-07-09 15:02:31 +00:00
|
|
|
OPENSSL_CONF_FLAG+=-D_MIPS_SZLONG=32 -D__MIPSEL__
|
2015-04-29 20:57:13 +00:00
|
|
|
endif
|
2015-04-29 14:08:02 +00:00
|
|
|
endif
|
|
|
|
|
2013-07-22 17:57:10 +00:00
|
|
|
lib/libcrypto.a:
|
2013-12-27 21:41:54 +00:00
|
|
|
cd openssl && \
|
2015-04-29 14:08:02 +00:00
|
|
|
./Configure android -DL_ENDIAN $(OPENSSL_CONF_FLAG) && \
|
|
|
|
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr depend && \
|
2014-06-06 14:10:48 +00:00
|
|
|
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr 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 && \
|
2015-04-29 14:08:02 +00:00
|
|
|
./Configure android -DL_ENDIAN $(OPENSSL_CONF_FLAG) && \
|
|
|
|
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr depend && \
|
2014-06-06 14:10:48 +00:00
|
|
|
make CC="$(CC)" ANDROID_DEV=$(NDK_SYSROOT)/usr 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:
|
2014-03-27 17:46:34 +00:00
|
|
|
sed -i 's@\(SUBDIRS = . include\) sample test@\1@' libevent/Makefile.am
|
2015-04-29 13:29:28 +00:00
|
|
|
cp libevent-patch-1 libevent
|
|
|
|
-cd libevent && \
|
|
|
|
patch -N -p1 --reject-file=- < libevent-patch-1
|
2015-03-17 17:02:12 +00:00
|
|
|
##sed -i 's@\(AC_OUTPUT(Makefile include/Makefile\) test/Makefile sample/Makefile)@\1)@' libevent/configure.in
|
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
|
2014-03-27 17:46:34 +00:00
|
|
|
$(MAKE) -C libevent ./include/event2/event-config.h all-am
|
2012-05-03 22:29:28 +00:00
|
|
|
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
|
2015-05-13 16:17:54 +00:00
|
|
|
cp iptables-patch-4 iptables
|
2013-12-28 14:10:05 +00:00
|
|
|
-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
|
2015-05-13 16:17:54 +00:00
|
|
|
-cd iptables && \
|
|
|
|
patch -N -p0 --reject-file=- < iptables-patch-4
|
2012-07-06 18:53:29 +00:00
|
|
|
cd iptables && ./autogen.sh
|
|
|
|
cp config.sub iptables
|
|
|
|
cp config.guess iptables
|
|
|
|
cd iptables && \
|
2016-01-14 19:57:30 +00:00
|
|
|
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -I$(EXTERNAL_ROOT)/include" LDFLAGS="$(LDFLAGS)" \
|
2015-05-12 06:27:07 +00:00
|
|
|
./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
|
2015-03-19 01:20:20 +00:00
|
|
|
cp fix_android_0.2.6.4rc_build.patch tor
|
|
|
|
cd tor && \
|
|
|
|
git apply fix_android_0.2.6.4rc_build.patch
|
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 && \
|
2014-11-06 19:05:19 +00:00
|
|
|
CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -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
|
2015-03-19 01:20:20 +00:00
|
|
|
-cd tor && \
|
|
|
|
git reset HEAD --hard
|
2012-05-04 21:00:17 +00:00
|
|
|
|
2012-05-03 22:29:28 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
2014-04-25 03:43:33 +00:00
|
|
|
# polipo
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2014-04-25 03:43:33 +00:00
|
|
|
polipo-build-stamp:
|
2014-11-17 19:11:17 +00:00
|
|
|
CC="$(CC)" CFLAGS="$(PIEFLAGS)" LDFLAGS="$(PIEFLAGS)" $(MAKE) -C polipo
|
2014-04-25 03:43:33 +00:00
|
|
|
touch polipo-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2014-04-25 03:43:33 +00:00
|
|
|
polipo: polipo-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
test -d bin || mkdir bin
|
2014-04-25 03:43:33 +00:00
|
|
|
cp polipo/polipo bin
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2014-04-25 03:43:33 +00:00
|
|
|
polipo-clean:
|
2015-04-12 01:16:20 +00:00
|
|
|
$(MAKE) -C polipo clean
|
2014-11-17 19:11:17 +00:00
|
|
|
-rm -f polipo/polipo
|
2014-04-25 03:43:33 +00:00
|
|
|
-rm -f bin/polipo
|
|
|
|
-rm -f polipo-build-stamp
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2015-12-16 15:26:28 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# PLUTO Pluggable Transports
|
|
|
|
|
|
|
|
pluto/bin/android_arm/obfs4proxy:
|
2016-01-07 15:59:58 +00:00
|
|
|
#don't build for now until we sort out Go SDK
|
|
|
|
# cd pluto && \
|
|
|
|
# ./build.sh
|
2015-12-16 15:26:28 +00:00
|
|
|
|
|
|
|
pluto-build-stamp: pluto/bin/android_arm/obfs4proxy
|
|
|
|
touch pluto-build-stamp
|
|
|
|
|
|
|
|
pluto: pluto-build-stamp
|
|
|
|
test -d bin || mkdir bin
|
|
|
|
cp pluto/bin/android_arm/obfs4proxy bin
|
|
|
|
|
|
|
|
pluto-clean:
|
2016-01-07 15:59:58 +00:00
|
|
|
# -rm -rf pluto/bin
|
2015-12-16 15:26:28 +00:00
|
|
|
|
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
|
|
|
|
|
2016-01-14 19:57:30 +00:00
|
|
|
assets: tor polipo iptables pluto
|
2015-03-19 12:50:55 +00:00
|
|
|
install -d ../libs
|
2015-04-12 01:16:20 +00:00
|
|
|
install -d ../assets/$(APP_ABI)
|
2015-04-15 13:58:02 +00:00
|
|
|
-$(STRIP) bin/polipo
|
2015-04-12 01:16:20 +00:00
|
|
|
-zip ../assets/$(APP_ABI)/polipo.mp3 bin/polipo
|
2015-04-15 13:58:02 +00:00
|
|
|
-$(STRIP) bin/tor
|
2015-04-12 01:16:20 +00:00
|
|
|
-zip ../assets/$(APP_ABI)/tor.mp3 bin/tor
|
2015-04-15 13:58:02 +00:00
|
|
|
-$(STRIP) bin/xtables
|
2015-04-12 01:16:20 +00:00
|
|
|
-zip ../assets/$(APP_ABI)/xtables.mp3 bin/xtables
|
2015-12-16 15:26:28 +00:00
|
|
|
-$(STRIP) bin/obfs4proxy
|
|
|
|
-zip ../assets/$(APP_ABI)/obfs4proxy.mp3 bin/obfs4proxy
|
2016-01-04 06:38:36 +00:00
|
|
|
-$(STRIP) ../libs/$(APP_ABI)/pdnsd
|
|
|
|
-zip ../assets/$(APP_ABI)/pdnsd.mp3 ../libs/$(APP_ABI)/pdnsd
|
|
|
|
-rm ../libs/$(APP_ABI)/pdnsd
|
2012-05-03 23:10:41 +00:00
|
|
|
|
|
|
|
assets-clean:
|
2015-04-12 01:16:20 +00:00
|
|
|
-rm ../assets/$(APP_ABI)/polipo.mp3
|
|
|
|
-rm ../assets/$(APP_ABI)/tor.mp3
|
|
|
|
-rm ../assets/$(APP_ABI)/xtables.mp3
|
2015-12-16 15:26:28 +00:00
|
|
|
-rm ../assets/$(APP_ABI)/obfs4proxy.mp3
|
2016-01-04 06:38:36 +00:00
|
|
|
-rm ../assets/$(APP_ABI)/pdnsd.mp3
|
2012-05-03 22:29:28 +00:00
|
|
|
|
2012-05-03 22:46:17 +00:00
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# cleanup, cleanup, put the toys away
|
|
|
|
|
2016-01-14 19:57:30 +00:00
|
|
|
##clean: openssl-clean libevent-clean tor-clean polipo-clean assets-clean
|
|
|
|
clean: openssl-clean libevent-clean tor-clean polipo-clean iptables-clean pluto-clean
|
2013-12-06 00:28:54 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------#
|
|
|
|
# debugging stuff
|
|
|
|
|
|
|
|
showsetup:
|
|
|
|
@echo "NDK_TOOLCHAIN_VERSION: $(NDK_TOOLCHAIN_VERSION)"
|
|
|
|
@echo "NDK_TOOLCHAIN: $(NDK_TOOLCHAIN)"
|
2014-06-06 14:10:48 +00:00
|
|
|
@echo "NDK_PLATFORM_LEVEL: $(NDK_PLATFORM_LEVEL)"
|
2013-12-06 00:28:54 +00:00
|
|
|
@echo "NDK_SYSROOT: $(NDK_SYSROOT)"
|
|
|
|
@echo "APP_ABI: $(APP_ABI)"
|
|
|
|
@echo "HOST: $(HOST)"
|
|
|
|
@echo "CC: $(CC)"
|
|
|
|
@echo "LD: $(LD)"
|
|
|
|
@echo "CFLAGS: $(CFLAGS)"
|
|
|
|
@echo "LDFLAGS: $(LDFLAGS)"
|