40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# ATLAS specific Linux ARM 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 ATLASINC
|
|
$(error ATLASINC not defined.)
|
|
endif
|
|
ifndef ATLASLIBS
|
|
$(error ATLASLIBS not defined.)
|
|
endif
|
|
|
|
CXXFLAGS = -std=c++11 -I.. -isystem $(OPENFSTINC) -O1 $(EXTRA_CXXFLAGS) \
|
|
-Wall -Wno-sign-compare -Wno-unused-local-typedefs \
|
|
-Wno-deprecated-declarations -Winit-self \
|
|
-DKALDI_DOUBLEPRECISION=$(DOUBLE_PRECISION) \
|
|
-DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I$(ATLASINC) \
|
|
-ftree-vectorize -pthread \
|
|
-g # -O0 -DKALDI_PARANOID
|
|
|
|
ifeq ($(KALDI_FLAVOR), dynamic)
|
|
CXXFLAGS += -fPIC
|
|
endif
|
|
|
|
# Compiler specific flags
|
|
COMPILER = $(shell $(CXX) -v 2>&1)
|
|
ifeq ($(findstring clang,$(COMPILER)),clang)
|
|
# Suppress annoying clang warnings that are perfectly valid per spec.
|
|
CXXFLAGS += -Wno-mismatched-tags
|
|
endif
|
|
|
|
LDFLAGS = $(EXTRA_LDFLAGS) $(OPENFSTLDFLAGS) -rdynamic
|
|
LDLIBS = $(EXTRA_LDLIBS) $(OPENFSTLIBS) $(ATLASLIBS) -lm -lpthread -ldl
|