#
#  Jamfile for the all-bin directory.  This controls which sub projects
#  are built for a given platform.
#

SubDir All all-bin ;

#
#  This explicit SubRules call imports the rules and definitions
#  in the Jamrules in the "shared" directory.
#
SubRules All shared : SHARED ;

#
#  Determine which sub projects we should build, by operating system:
#
if $(UNIX)
{
	Echo "Unix build (specifically, $(OS))" ;
	COMPONENT_PROJECTS ?= server xwindows ;
}
else if $(NT)
{
	Echo "NT build" ;
	COMPONENT_PROJECTS ?= server pcwin ;
}
else if $(WIN98)
{
	Echo "Windows 98/2000/whatever build - client only" ;
	COMPONENT_PROJECTS ?= pcwin ;
}
else if $(MAC)
{
	Echo "Mac build - client only" ;
	COMPONENT_PROJECTS ?= mac ;
}
else
{
	Echo "For (and on) which platform are you building?" ;
	Exit "Aborting - unknown platform!" ;
}

#
#  Now compile each appropriate component project, as determined above:
#
for sub in $(COMPONENT_PROJECTS)
{
	Echo "Building $(sub)..." ;
	SubInclude All $(sub) ;
}