1SubDir HAIKU_TOP src libs glut ; 2UseBuildFeatureHeaders glu ; 3UseBuildFeatureHeaders mesa ; 4 5SetSubDirSupportedPlatformsBeOSCompatible ; 6 7if $(TARGET_PLATFORM) != haiku { 8 UseHeaders [ FDirName $(HAIKU_TOP) headers os opengl ] : true ; 9 # We need our public GL headers also when not compiling for Haiku. 10} 11 12 13local sourcesCc = 14 # C sources 15 glut_8x13.c 16 glut_9x15.c 17 glut_bitmap.c 18 glut_bwidth.c 19 glut_hel10.c 20 glut_hel12.c 21 glut_hel18.c 22 glut_tr10.c 23 glut_tr24.c 24 glut_mroman.c 25 glut_roman.c 26 glut_stroke.c 27 glut_swidth.c 28 glut_shapes.c 29 glut_teapot.c 30 glut_vidresize.c 31 glut_util.c 32 glut_ext.c 33; 34 35 36local sourcesCpp = 37 glutBlocker.cpp 38 glutInit.cpp 39 glutWindow.cpp 40 glutEvent.cpp 41 glutCallback.cpp 42 glutOverlay.cpp 43 glutGet.cpp 44 glutColor.cpp 45 glutCursor.cpp 46 glutMenu.cpp 47 glutDstr.cpp 48 glutGameMode.cpp 49 beos_x11.cpp 50; 51 52 53# For GCC2 54if $(HAIKU_GCC_VERSION[1]) < 3 { 55 SubDirC++Flags --no-warnings ; 56} 57 58 59# Ensure Mesa dependency is met 60Includes [ FGristFiles $(sourcesCc) $(sourcesCpp) ] : 61 [ BuildFeatureAttribute glu : headers ] 62 [ BuildFeatureAttribute mesa : headers ] 63 ; 64 65SharedLibrary libglut.so : 66 $(sourcesCpp) 67 $(sourcesCc) 68 : 69 GL game be $(TARGET_LIBSTDC++) 70 [ BuildFeatureAttribute glu : library ] 71; 72