diff --git a/external/Makefile b/external/Makefile index 4d3dd1d6..300a465d 100644 --- a/external/Makefile +++ b/external/Makefile @@ -109,10 +109,10 @@ libevent: openssl-static libevent-build-stamp test -d lib || mkdir lib test -d include || mkdir include cp libevent/.libs/libevent.a lib - cp -R libevent/include/* include + cp -R libevent/include/event2 include libevent-clean: - -rm -f include/*.h + -rm -f include/event2 -rm -f lib/libevent.a -rm -f libevent-build-stamp -cd libevent && \ @@ -153,7 +153,7 @@ tor/Makefile: tor/configure cp config.guess tor cd tor && \ CC="$(CC)" AR="$(AR)" RANLIB=$(RANLIB) CFLAGS="$(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" \ + LIBS="-L$(EXTERNAL_ROOT)/lib" CFLAGS="-I$(EXTERNAL_ROOT)/include -I$(EXTERNAL_ROOT)/include/event2" \ ./configure \ --host=$(HOST) \ --prefix=$(NDK_TOOLCHAIN) \ @@ -280,7 +280,6 @@ assets: tor privoxy jtorctl obfsproxy zip ../../res/raw/tor.mp3 tor assets-clean: - -rm ../res/raw/tor -rm ../res/raw/tor.mp3 -rm ../res/raw/privoxy -rm ../libs/*