SubDir PLASMA ;

if ! $(PLASMA_READY) {

if SHARED in $(LIBRARIES) { 
  if PROFILE in $(VARIANTS) {
    Exit Cannot build PROFILE and SHARED ;
  }
  if CUSTOM in $(VARIANTS) && $(PROFILE) {
    Exit Cannot build PROFILE and SHARED ;
  }
}

PLANWORKS_COMPONENTS = $(PLASMA)/MasterController.cc $(PLASMA)/SingleSolverController.cc ;

Depends plasma-all : all ;

Module plasma : all System ;

Depends run-tests : tests ;

Depends run-all-tests : run-checkin-tests ;
Depends run-all-tests : run-all-module-tests ; 
Depends run-all-tests : run-examples-tests ;
Depends run-all-tests : run-nddl-tests ;
Depends run-all-tests : run-hsts-planner-tests ;


Depends run-checkin-tests : check-cvs-changes ;
Depends run-checkin-tests : run-tests ;
Depends run-checkin-tests : run-nddl-planner-tests ;
Depends run-checkin-tests : run-makefile-tests ;

Depends run-makefile-tests : check-makefile ;

# install tests designed for off site customers to check system is installed without cvs update
Depends run-install-tests : run-tests ;

NOCARE run-all-tests run-tests run-checkin-tests run-nddl-tests run-nddl-planner-tests tests run-hsts-planner-tests ;

SubInclude PLASMA TinyXml ;
SubInclude PLASMA Utils ;
SubInclude PLASMA ConstraintEngine ;
SubInclude PLASMA documentation ;
SubInclude PLASMA PlanDatabase ;
SubInclude PLASMA Resource ;
SubInclude PLASMA HeuristicsEngine ;
SubInclude PLASMA RulesEngine ;
SubInclude PLASMA CBPlanner ;
SubInclude PLASMA TemporalNetwork ;
SubInclude PLASMA NDDL ;
SubInclude PLASMA Solvers ;
SubInclude PLASMA Aver ;
SubInclude PLASMA HSTS ;
SubInclude PLASMA System ;

SubInclude PLASMA Examples ;

RemoveBinaries clean-all ;
Depends clean-all : clean clean-nddl-xml clean-system-xml ;

ExecuteSO check-cvs-changes : checkcvs : $(PLASMA) ;

ExecuteSO check-makefile : checkmakeproject : $(PLASMA) ;

} # PLASMA_READY
