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