diff --git a/test/Jamfile b/test/Jamfile index 0df6694f..9a9f91f7 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -31,13 +31,8 @@ unit-test graph : graph.cpp : $(BOOST_ROOT) ; compile graph_concepts.cpp : $(BOOST_ROOT) ; -compile leda_graph_cc.cpp : $(BOOST_ROOT) : - $(LEDA)/incl $(LEDA)/libG.a ; - compile reverse_graph_cc.cpp : $(BOOST_ROOT) ; -compile stanford_graph_cc.cpp : $(BOOST_ROOT) - $(SGB) $(SGB)/libgb.a ; unit-test subgraph : subgraph.cpp ../../test/build/boost_test_exec_monitor : $(BOOST_ROOT) ; @@ -48,3 +43,24 @@ compile vector_graph_cc.cpp : $(BOOST_ROOT) ; compile copy.cpp : $(BOOST_ROOT) ; +# Run SDB tests only when -sSDB= is set. +if $(SDB) != "" +{ + local SDB_DEPENDCIES = + $(SGB) $(SGB)/libgb.a ; + + compile stanford_graph_cc.cpp : $(BOOST_ROOT) + $(SDB_DEPENDCIES) ; +} + +# Run LEDA tests only when -sLEDA= is set. +if $(LEDA) != "" +{ + local LEDA_DEPENDENCIES = + $(LEDA)/incl + $(LEDA)/libG.a + ; + + compile leda_graph_cc.cpp : $(BOOST_ROOT) + $(LEDA_DEPENDENCIES) ; +}