add obfsclient build but don't include binary yet

This commit is contained in:
Nathan Freitas 2014-02-22 19:19:50 -05:00
parent 0aa4294a1e
commit d605b45488
1 changed files with 29 additions and 0 deletions

29
external/Makefile vendored
View File

@ -71,6 +71,7 @@ endif
iptables iptables-clean \ iptables iptables-clean \
tor tor-clean \ tor tor-clean \
obfsproxy obfsproxy-clean \ obfsproxy obfsproxy-clean \
obfsclient obfsclient-clean \
privoxy privoxy-clean privoxy privoxy-clean
all: assets all: assets
@ -241,6 +242,34 @@ obfsproxy-clean:
-cd obfsproxy && \ -cd obfsproxy && \
git clean -fdx git clean -fdx
#------------------------------------------------------------------------------#
# obfsclient
obfsclient/Makefile:
cd obfsclient && \
./autogen.sh
cp config.sub obfsclient
cp config.guess obfsclient
cd obfsclient && \
CPP="$(CPP)" AR="$(AR)" RANLIB=$(RANLIB) CPPFLAGS="$(CFLAGS) -D_FORTIFY_SOURCE=2 -fPIE -fwrapv -fno-strict-aliasing -fno-strict-overflow" LDFLAGS="$(LDFLAGS)" \
./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
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
# privoxy # privoxy