Commit 1ad6f99c authored by Jan Trmal's avatar Jan Trmal
Browse files

removing the kald-lat custom rule -- does not matter now

parent 9dab5412
...@@ -21,27 +21,3 @@ ADDLIBS = ../hmm/kaldi-hmm.a ../tree/kaldi-tree.a ../matrix/kaldi-matrix.a \ ...@@ -21,27 +21,3 @@ ADDLIBS = ../hmm/kaldi-hmm.a ../tree/kaldi-tree.a ../matrix/kaldi-matrix.a \
include ../makefiles/default_rules.mk include ../makefiles/default_rules.mk
# Overriding the default library rule
# Added 2015-06-22 in connection with creating a standalone kws lib
# It's purpose is to make the transition more seamless for users
# Will be removed in a half a year or so.
$(LIBFILE): $(OBJFILES)
$(AR) -d $(LIBNAME).a kws-functions.o
$(AR) -cru $(LIBNAME).a $(OBJFILES)
$(RANLIB) $(LIBNAME).a
ifeq ($(KALDI_FLAVOR), dynamic)
ifeq ($(shell uname), Darwin)
$(CXX) -dynamiclib -o $@ -install_name @rpath/$@ -framework Accelerate $(LDFLAGS) $(XLDLIBS) $(OBJFILES) $(LDLIBS)
rm -f $(KALDILIBDIR)/$@; ln -s $(shell pwd)/$@ $(KALDILIBDIR)/$@
else
ifeq ($(shell uname), Linux)
# Building shared library from static (static was compiled with -fPIC)
$(CXX) -shared -o $@ -Wl,--no-undefined -Wl,--as-needed -Wl,-soname=$@,--whole-archive $(LIBNAME).a -Wl,--no-whole-archive $(LDFLAGS) $(XDEPENDS) $(LDLIBS)
rm -f $(KALDILIBDIR)/$@; ln -s $(shell pwd)/$@ $(KALDILIBDIR)/$@
#cp $@ $(KALDILIBDIR)
else # Platform not supported
$(error Dynamic libraries not supported on this platform. Run configure with --static flag. )
endif
endif
endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment