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