Blame view

src/onlinebin/Makefile 1.33 KB
8dcb6dfcb   Yannick Estève   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
43
44
45
  all:
  
  EXTRA_CXXFLAGS += -Wno-sign-compare -I../../tools/portaudio/install/include
  include ../kaldi.mk
  
  # The PA_RingBuffer interface is internal and is not exported in the .so libray
  # so we have to link against the static one
  
  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
  
  UNAME=$(shell uname)
  ifeq ($(UNAME), Linux)
    ifneq ($(wildcard ../../tools/portaudio/install/include/pa_linux_alsa.h),)
      EXTRA_LDLIBS += -lasound -lrt
    else
      EXTRA_LDLIBS += -lrt
    endif
  endif
  
  ifeq ($(UNAME), Darwin)
      EXTRA_LDLIBS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework CoreServices
  endif
  
  
  BINFILES = online-net-client online-server-gmm-decode-faster online-gmm-decode-faster \
             online-wav-gmm-decode-faster online-audio-server-decode-faster \
             online-audio-client
  
  OBJFILES =
  
  
  TESTFILES =
  
  
  ADDLIBS = ../online/kaldi-online.a ../decoder/kaldi-decoder.a \
            ../lat/kaldi-lat.a ../hmm/kaldi-hmm.a ../feat/kaldi-feat.a \
            ../transform/kaldi-transform.a ../gmm/kaldi-gmm.a \
            ../tree/kaldi-tree.a ../util/kaldi-util.a ../matrix/kaldi-matrix.a \
            ../base/kaldi-base.a 
  
  include ../makefiles/default_rules.mk