SubDir HAIKU_TOP src libs glut ; UseLibraryHeaders glut ; local sourcesCc = # C sources glut_8x13.c glut_9x15.c glut_bitmap.c glut_bwidth.c glut_hel10.c glut_hel12.c glut_hel18.c glut_tr10.c glut_tr24.c glut_mroman.c glut_roman.c glut_stroke.c glut_swidth.c glut_shapes.c glut_teapot.c glut_vidresize.c glut_util.c glut_ext.c ; local sourcesCpp = glutBlocker.cpp glutInit.cpp glutWindow.cpp glutEvent.cpp glutCallback.cpp glutOverlay.cpp glutGet.cpp glutColor.cpp glutCursor.cpp glutMenu.cpp glutDstr.cpp glutGameMode.cpp beos_x11.cpp ; local architectureObject ; for architectureObject in [ MultiArchSubDirSetup ] { on $(architectureObject) { local architecture = $(TARGET_PACKAGING_ARCH) ; UseBuildFeatureHeaders glu ; UseBuildFeatureHeaders mesa ; # For GCC2 if $(architecture) = x86_gcc2 { SubDirC++Flags --no-warnings ; } # Ensure Mesa dependency is met Includes [ FGristFiles $(sourcesCc) $(sourcesCpp) ] : [ BuildFeatureAttribute glu : headers ] [ BuildFeatureAttribute mesa : headers ] ; SharedLibrary [ MultiArchDefaultGristFiles libglut.so ] : $(sourcesCpp) $(sourcesCc) : game be [ TargetLibstdc++ ] [ BuildFeatureAttribute mesa : library ] [ BuildFeatureAttribute glu : library ] ; } }