local current = "" ;
local includes = ;
local with-cmph = [ option.get "with-cmph" ] ;
if $(with-cmph) {
  lib cmph : : <search>$(with-cmph)/lib ;
  includes += <include>$(with-cmph)/include ;
  current = "--with-cmph=$(with-cmph)" ;
}
else {
  alias cmph ;
}

alias sources : [ glob *.cpp ] ;

path-constant PT-LOG : bin/pt.log ;
update-if-changed $(PT-LOG) $(current) ;

lib CompactPT : sources ..//moses_internal cmph : $(includes) <dependency>$(PT-LOG) ;
