diff --git a/.gitignore b/.gitignore index e4134a08..cd2360e1 100644 --- a/.gitignore +++ b/.gitignore @@ -18,5 +18,7 @@ tools/sox-14.4.2 tools/soxbindings tools/montreal-forced-aligner/ tools/Montreal-Forced-Aligner/ +tools/sctk +tools/sctk-20159b5/ *output/ diff --git a/tools/Makefile b/tools/Makefile index 9fb1dc89..c925054b 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -1,8 +1,16 @@ SHELL:= /bin/bash PYTHON:= python3.7 + +CXX ?= g++ +CC ?= gcc # used for sph2pipe +# CXX = clang++ # Uncomment these lines... +# CC = clang # ...to build with Clang. + +WGET ?= wget + .PHONY: all clean -all: virtualenv kenlm.done sox.done soxbindings.done mfa.done +all: virtualenv kenlm.done sox.done soxbindings.done mfa.done sclite.done virtualenv: test -d venv || virtualenv -p $(PYTHON) venv @@ -41,11 +49,22 @@ mfa.done: touch mfa.done +#== SCTK =============================================================================== +# SCTK official repo does not have version tags. Here's the mapping: +# # 2.4.9 = 659bc36; 2.4.10 = d914e1b; 2.4.11 = 20159b5. +SCTK_GITHASH = 20159b5 + +SCTK_CXFLAGS = -w -march=native +SCTK_MKENV = CFLAGS="$(CFLAGS) $(SCTK_CXFLAGS)" \ + CXXFLAGS="$(CXXFLAGS) -std=c++11 $(SCTK_CXFLAGS)" \ + + # Keep the existing target 'sclite' to avoid breaking the users who might have # scripted it in. -.PHONY: sclite sctk_cleaned sctk_made +.PHONY: sclite.done sctk_cleaned sctk_made -sclite sctk_made: sctk/.compiled +sclite.done sctk_made: sctk/.compiled + touch sclite.done sctk/.compiled: sctk rm -f sctk/.compiled @@ -74,4 +93,4 @@ sctk_cleaned: -for d in sctk/ sctk-*/; do \ [ ! -f $$d/.compiled ] || $(MAKE) -C $$d clean; \ rm -f $$d/.compiled; \ - done \ No newline at end of file + done