From 6cf120185f9cfa5126d6770db38bdeb8f23f5ecf Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Wed, 16 Dec 2015 10:26:28 -0500 Subject: [PATCH] update makefile to support PLUTO builds --- external/Makefile | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/external/Makefile b/external/Makefile index 587fae40..e6441e04 100644 --- a/external/Makefile +++ b/external/Makefile @@ -271,6 +271,25 @@ polipo-clean: -rm -f bin/polipo -rm -f polipo-build-stamp +#------------------------------------------------------------------------------# +# PLUTO Pluggable Transports + +pluto/bin/android_arm/obfs4proxy: + cd pluto && \ + build.sh + +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 + cp pluto/bin/android_arm/meek-client bin + +pluto-clean: + -rm -rf pluto/bin + -rm pluto/bin/android_arm/obfs4proxy + #------------------------------------------------------------------------------# # JTorControl library @@ -297,7 +316,7 @@ jtorctl-clean: #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 -assets: tor polipo jtorctl iptables +assets: tor polipo jtorctl iptables pluto install -d ../libs install bin/jtorctl.jar ../libs install -d ../assets/$(APP_ABI) @@ -307,18 +326,24 @@ assets: tor polipo jtorctl iptables -zip ../assets/$(APP_ABI)/tor.mp3 bin/tor -$(STRIP) bin/xtables -zip ../assets/$(APP_ABI)/xtables.mp3 bin/xtables + -$(STRIP) bin/meek-client + -zip ../assets/$(APP_ABI)/meek-client.mp3 bin/meek-client + -$(STRIP) bin/obfs4proxy + -zip ../assets/$(APP_ABI)/obfs4proxy.mp3 bin/obfs4proxy assets-clean: -rm ../assets/$(APP_ABI)/polipo.mp3 -rm ../assets/$(APP_ABI)/tor.mp3 -rm ../assets/$(APP_ABI)/xtables.mp3 + -rm ../assets/$(APP_ABI)/meek-client.mp3 + -rm ../assets/$(APP_ABI)/obfs4proxy.mp3 -rm ../libs/jtorctl.jar #------------------------------------------------------------------------------# # cleanup, cleanup, put the toys away ##clean: openssl-clean libevent-clean tor-clean polipo-clean jtorctl-clean assets-clean -clean: openssl-clean libevent-clean tor-clean polipo-clean iptables-clean jtorctl-clean assets-clean +clean: openssl-clean libevent-clean tor-clean polipo-clean iptables-clean jtorctl-clean assets-clean pluto-clean #------------------------------------------------------------------------------# # debugging stuff