Clone of mesa.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Configuration for Darwin / MacOS X, making dynamic libs
  2. include $(TOP)/configs/default
  3. CONFIG_NAME = darwin
  4. INSTALL_DIR = /usr/X11
  5. X11_DIR = $(INSTALL_DIR)
  6. # Compiler and flags
  7. CC = gcc
  8. CXX = g++
  9. PIC_FLAGS = -fPIC
  10. DEFINES = -D_DARWIN_C_SOURCE -DPTHREADS -D_GNU_SOURCE \
  11. -DGLX_ALIAS_UNSUPPORTED \
  12. -DGLX_DIRECT_RENDERING -DGLX_USE_APPLEGL
  13. # -DGLX_INDIRECT_RENDERING \
  14. # -D_GNU_SOURCE - for src/mesa/main ...
  15. # -DGLX_DIRECT_RENDERING - pulls in libdrm stuff in glx
  16. # -DGLX_USE_APPLEGL - supposed to be used with GLX_DIRECT_RENDERING to use AGL rather than DRM, but doesn't compile
  17. # -DIN_DRI_DRIVER
  18. ARCH_FLAGS += $(RC_CFLAGS)
  19. CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fvisibility=hidden \
  20. -I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
  21. CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing -fvisibility=hidden \
  22. -I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
  23. # Library names (actual file names)
  24. GL_LIB_NAME = lib$(GL_LIB).dylib
  25. GLU_LIB_NAME = lib$(GLU_LIB).dylib
  26. GLUT_LIB_NAME = lib$(GLUT_LIB).dylib
  27. GLW_LIB_NAME = lib$(GLW_LIB).dylib
  28. OSMESA_LIB_NAME = lib$(OSMESA_LIB).dylib
  29. VG_LIB_NAME = lib$(VG_LIB).dylib
  30. # globs used to install the lib and all symlinks
  31. GL_LIB_GLOB = lib$(GL_LIB).*dylib
  32. GLU_LIB_GLOB = lib$(GLU_LIB).*dylib
  33. GLUT_LIB_GLOB = lib$(GLUT_LIB).*dylib
  34. GLW_LIB_GLOB = lib$(GLW_LIB).*dylib
  35. OSMESA_LIB_GLOB = lib$(OSMESA_LIB).*dylib
  36. VG_LIB_GLOB = lib$(VG_LIB).*dylib
  37. GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread
  38. OSMESA_LIB_DEPS =
  39. GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  40. GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext
  41. GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXt
  42. APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXt -lXi -lm
  43. # omit glw lib for now:
  44. SRC_DIRS = glsl mapi/glapi mapi/vgapi glx/apple mesa gallium glu glut/glx
  45. GLU_DIRS = sgi
  46. DRIVER_DIRS = osmesa
  47. #DRIVER_DIRS = dri
  48. DRI_DIRS = swrast
  49. GALLIUM_DRIVERS_DIRS = softpipe trace rbug noop identity galahad failover
  50. #GALLIUM_DRIVERS_DIRS += llvmpipe