Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Jamfile « LM « src « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dd25775a252271cba0067f09ef5d1ff1d28e1ef3 (plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import option ;

# Shell with trailing line removed http://lists.boost.org/boost-build/2007/08/17051.php
rule trim-nl ( str )
{
  return [ MATCH "([^
]*)" : $(str) ] ;
}
rule _shell ( cmd )
{
  return [ trim-nl [ SHELL $(cmd) ] ] ;
}

with-irstlm = [ option.get "with-irstlm" ] ;
if $(with-irstlm) != ""
{
  lib irstlm : : <search>$(with-irstlm)/lib ;
  obj IRST.o : IRST.cpp ..//headers : <include>$(with-irstlm)/include ;
  alias irst : IRST.o irstlm : : : <define>LM_IRST ;
  echo "" ;
  echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ;
  echo "!!! You are linking the IRSTLM library; be sure the release is >= 5.70.02 !!!" ;
  echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" ;
  echo "" ;
} else {
  alias irst ;
}

with-srilm = [ option.get "with-srilm" ] ;
if $(with-srilm) != ""
{
  if [ option.get "with-srilm-dynamic" : no : yes ] = yes
  {
    alias sri-libs : srilm ;
  } else {
    sri-arch = [ option.get "with-srilm-arch" ] ;
    sri-arch ?= [ _shell $(with-srilm)/sbin/machine-type ] ;
    sri-lib = <search>$(with-srilm)/lib/$(sri-arch) <search>$(with-srilm)/flm/obj/$(sri-arch) ;

    lib flm : : $(sri-lib) ;
    lib misc : flm : $(sri-lib) ;
    lib dstruct : misc flm : $(sri-lib) ;
    lib oolm : dstruct misc flm : $(sri-lib) ;

    alias sri-libs : oolm dstruct misc flm ;
  }

  obj SRI.o : SRI.cpp ..//headers : <include>$(with-srilm)/include ;
  obj ParallelBackoff.o : ParallelBackoff.cpp ..//headers : <include>$(with-srilm)/include ;
  alias sri : SRI.o ParallelBackoff.o sri-libs : : : <define>LM_SRI ;
} else {
  alias sri ;
}

with-randlm = [ option.get "with-randlm" ] ;
if $(with-randlm) != ""
{
  lib randlm : : <search>$(with-randlm)/lib ;
  obj Rand.o : Rand.cpp randlm ..//headers : <include>$(with-randlm)/include ;
  alias rand : Rand.o : : : <define>LM_RAND ;
} else {
  alias rand ;
}

lib LM : Base.cpp Factory.cpp Implementation.cpp Joint.cpp Ken.cpp MultiFactor.cpp Remote.cpp SingleFactor.cpp 
  ../../../lm//lm irst sri rand ..//headers ;