
# The following global variables must be set:
#
#	$1		The interface subsystem
#
# The following global variables are set by this function:
#
#	$includes	Header directories for building shared library
#	$options	Compiler flags for building shared library
#	$asmobjs	Assembler objects to add to the build list
#	$libraries	The set of SDL libraries to build
#	$extralibs	Extra libraries necessary for building SDL
#
GenSubsystemFlags()
{
	case $1 in
	  x11)
		includes="$includes -I/usr/openwin/include -Isrc/linux/x11"
		libraries="$libraries lib/libSDLx11.so.\$(version)"
		;;
	  *)
		echo "Unknown subsystem '$1'"
		exit 3
		;;
	esac
}

# The following global variables must be set:
#
#	$1		The interface subsystem directory
#
# The following global variables are set by this function:
#
#	$includes	Header directories for building shared library
#	$options	Compiler flags for building shared library
#	$asmobjs	Assembler objects to add to the build list
#	$libraries	The set of SDL libraries to build
#	$extralibs	Extra libraries necessary for building SDL
#
GenMakeFlags()
{
	echo \
"
* Compiling with pthreads -- you need compile your application with
   -D_REENTRANT and link with the pthread library (-lpthread)"
#
	options="$options -DSDL_USE_PTHREADS -D_REENTRANT"
}

# Determine which subsystems to build
possible="X11"
