trunk:src/online support for shared library compilation handling

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3354 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Ho Yin Chan 2013-12-25 17:52:24 +00:00
Родитель 3976573464
Коммит 5c13717dd4
1 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -11,6 +11,20 @@ ifeq ($(UNAME), Darwin)
EXTRA_LDLIBS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreServices
endif
ifeq ($(UNAME), Linux)
ifneq "$(wildcard ../../tools/portaudio/install/lib/libportaudio.a)" ""
EXTRA_LDLIBS = ../../tools/portaudio/install/lib/libportaudio.a
else
EXTRA_LDLIBS = ../../tools/portaudio/install/lib64/libportaudio.a
endif
ifneq ($(wildcard ../../tools/portaudio/install/include/pa_linux_alsa.h),)
EXTRA_LDLIBS += -lasound -lrt
else
EXTRA_LDLIBS += -lrt
endif
endif
TESTFILES = online-feat-test
OBJFILES = online-audio-source.o online-feat-input.o online-decodable.o online-faster-decoder.o onlinebin-util.o online-tcp-source.o
@ -20,7 +34,7 @@ LIBNAME = kaldi-online
ADDLIBS = ../decoder/kaldi-decoder.a ../lat/kaldi-lat.a ../feat/kaldi-feat.a \
../transform/kaldi-transform.a ../gmm/kaldi-gmm.a ../hmm/kaldi-hmm.a \
../tree/kaldi-tree.a ../matrix/kaldi-matrix.a ../util/kaldi-util.a \
../base/kaldi-base.a
../base/kaldi-base.a ../thread/kaldi-thread.a
include ../makefiles/default_rules.mk