2014-01-29 22:37:42 +04:00
|
|
|
local most-deps = [ glob *.cpp : ExtractionPhrasePair.cpp *Test.cpp *-main.cpp ] ;
|
2012-11-12 18:17:48 +04:00
|
|
|
#Build .o files with include path setting, reused.
|
|
|
|
for local d in $(most-deps) {
|
2012-11-14 17:43:04 +04:00
|
|
|
obj $(d:B).o : $(d) ;
|
2012-11-12 18:17:48 +04:00
|
|
|
}
|
|
|
|
#and stuff them into an alias.
|
2014-12-06 00:33:59 +03:00
|
|
|
alias deps : $(most-deps:B).o ..//z ..//boost_iostreams ..//boost_filesystem ../moses//moses ../moses//ThreadPool ../moses//Util ../util//kenutil ;
|
2012-11-12 18:17:48 +04:00
|
|
|
|
2014-01-29 22:37:42 +04:00
|
|
|
#ExtractionPhrasePair.cpp requires that main define some global variables.
|
2012-11-12 18:17:48 +04:00
|
|
|
#Build the mains that do not need these global variables.
|
|
|
|
for local m in [ glob *-main.cpp : score-main.cpp ] {
|
|
|
|
exe [ MATCH "(.*)-main.cpp" : $(m) ] : $(m) deps ;
|
|
|
|
}
|
|
|
|
|
2014-01-29 22:37:42 +04:00
|
|
|
#The side dishes that use ExtractionPhrasePair.cpp
|
|
|
|
exe score : ExtractionPhrasePair.cpp score-main.cpp deps ;
|
2011-11-25 14:26:19 +04:00
|
|
|
|
2012-11-03 03:30:51 +04:00
|
|
|
import testing ;
|
2014-01-29 22:37:42 +04:00
|
|
|
run ScoreFeatureTest.cpp ExtractionPhrasePair.cpp deps ..//boost_unit_test_framework ..//boost_iostreams : : test.domain ;
|