Blame view
src/makefiles/android_openblas.mk
1.24 KB
8dcb6dfcb first commit |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# OpenBLAS specific Android configuration ifndef DOUBLE_PRECISION $(error DOUBLE_PRECISION not defined.) endif ifndef OPENFSTINC $(error OPENFSTINC not defined.) endif ifndef OPENFSTLIBS $(error OPENFSTLIBS not defined.) endif ifndef OPENBLASINC $(error OPENBLASINC not defined.) endif ifndef OPENBLASLIBS $(error OPENBLASLIBS not defined.) endif ifndef ANDROIDINC $(error ANDROIDINC not defined.) endif COMPILER = $(shell $(CXX) -v 2>&1) ifneq ($(findstring clang,$(COMPILER)),clang) $(error Android build does not support compiling with $(CXX). Supported compilers: clang++) endif CXXFLAGS = -std=c++11 -I.. -I$(OPENFSTINC) -O1 $(EXTRA_CXXFLAGS) \ -Wall -Wno-sign-compare -Wno-unused-local-typedefs \ -Wno-deprecated-declarations -Winit-self -Wno-mismatched-tags \ -DKALDI_DOUBLEPRECISION=$(DOUBLE_PRECISION) \ -DHAVE_CXXABI_H -DHAVE_OPENBLAS -DANDROID_BUILD \ -I$(OPENBLASINC) -I$(ANDROIDINC) -ftree-vectorize -mfloat-abi=softfp \ -mfpu=neon -pthread \ -g # -O0 -DKALDI_PARANOID ifeq ($(KALDI_FLAVOR), dynamic) CXXFLAGS += -fPIC endif LDFLAGS = $(EXTRA_LDFLAGS) $(OPENFSTLDFLAGS) -Wl,--no-warn-mismatch -pie LDLIBS = $(EXTRA_LDLIBS) $(OPENFSTLIBS) $(OPENBLASLIBS) -lm -ldl |