#!/bin/bash if echo "$@" | grep -iq r; then Param1="RELEASE_VERSION=yes" else Param1="DEBUG_VERSION=yes" fi make clean clear if echo "$@" | grep -iq e; then #------ compile for euler ------------------- make -j 4 $Param1 CXX=arm-ztkp_openeuler-linux-gnueabi-g++ AR=arm-ztkp_openeuler-linux-gnueabi-ar OUTPUT_LIB_DIR=../../libs-euler/ else #------- compile for arm32 ------------------ make -j 4 $Param1 CXX=arm-linux-gnueabihf-g++ AR=arm-linux-gnueabihf-ar OUTPUT_LIB_DIR=../../libs-arm32/ fi