SubDir HAIKU_TOP src tests kits opengl direct_mode ;
SubDirSysHdrs $(HAIKU_MESA_HEADERS) ;

SetSubDirSupportedPlatformsBeOSCompatible ;

if $(TARGET_PLATFORM) != haiku {
	# Needed for <GL/glut.h>, not present in R5.
	# Unfortunately we also get the other headers there,
	# that we don't really want.
	UsePublicHeaders opengl ;
}

local sources =
	GLDirectMode.cpp
;

Includes [ FGristFiles $(sources) ] : $(HAIKU_MESA_HEADERS_DEPENDENCY) ;

SimpleTest GLDirectMode :
	$(sources)
	: be game GL $(TARGET_LIBSUPC++)
	: GLDirectMode.rdef
;
