android/mbedtls_vs_boringssl/bssl/Makefile.aarch64

30 wiersze
842 B
Makefile

include ../common.mk
BUILD_DIR = src/build
MAKE = cmake --build .
all: prepare build
clean:
rm -rf $(BUILD_DIR)
prepare: clean
rm -rf $(BUILD_DIR)
mkdir -p $(BUILD_DIR)
cd $(BUILD_DIR); \
cmake \
-DANDROID_TOOLCHAIN_NAME=aarch64-linux-android-clang5.0 \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
-DANDROID_NATIVE_API_LEVEL=$(NDK_TARGETVER) \
-DCMAKE_BUILD_TYPE=Release \
-DANDROID_ABI=arm64-v8a \
-DOPENSSL_SMALL=1 \
-DCMAKE_C_FLAGS_RELEASE="-Os -fdata-sections -Wno-error=unused-command-line-argument" \
-DCMAKE_CXX_FLAGS_RELEASE="-Os -fdata-sections -Wno-error=unused-command-line-argument" \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,--gc-sections -Wno-error=unused-command-line-argument" \
..
build:
cd $(BUILD_DIR); \
$(MAKE)
python ../print_bssl_size.py " -fdata-sections (+)"