Clone of mesa.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. # Default/template configuration
  2. # This is included by other config files which may override some
  3. # of these variables.
  4. # Think of this as a base class from which configs are derived.
  5. CONFIG_NAME = default
  6. # Version info
  7. MESA_MAJOR=7
  8. MESA_MINOR=3
  9. MESA_TINY=0
  10. MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
  11. # external projects. This should be useless now that we use libdrm.
  12. DRM_SOURCE_PATH=$(TOP)/../drm
  13. # Compiler and flags
  14. CC = cc
  15. CXX = CC
  16. HOST_CC = $(CC)
  17. CFLAGS = -O
  18. CXXFLAGS = -O
  19. LDFLAGS =
  20. GLU_CFLAGS =
  21. # Compiler for building demos/tests/etc
  22. APP_CC = $(CC)
  23. APP_CXX = $(CXX)
  24. # Misc tools and flags
  25. SHELL = /bin/sh
  26. MKLIB = $(SHELL) $(TOP)/bin/mklib
  27. MKLIB_OPTIONS =
  28. MKDEP = makedepend
  29. MKDEP_OPTIONS = -fdepend
  30. MAKE = make
  31. INSTALL = $(SHELL) $(TOP)/bin/minstall
  32. # Tools for regenerating glapi (generally only needed by the developers)
  33. PYTHON2 = python
  34. PYTHON_FLAGS = -t -O -O
  35. INDENT = indent
  36. INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
  37. # Library names (base name)
  38. GL_LIB = GL
  39. GLU_LIB = GLU
  40. GLUT_LIB = glut
  41. GLEW_LIB = GLEW
  42. GLW_LIB = GLw
  43. OSMESA_LIB = OSMesa
  44. # Library names (actual file names)
  45. GL_LIB_NAME = lib$(GL_LIB).so
  46. GLU_LIB_NAME = lib$(GLU_LIB).so
  47. GLUT_LIB_NAME = lib$(GLUT_LIB).so
  48. GLEW_LIB_NAME = lib$(GLEW_LIB).a
  49. GLW_LIB_NAME = lib$(GLW_LIB).so
  50. OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
  51. # globs used to install the lib and all symlinks
  52. GL_LIB_GLOB = $(GL_LIB_NAME)*
  53. GLU_LIB_GLOB = $(GLU_LIB_NAME)*
  54. GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
  55. GLW_LIB_GLOB = $(GLW_LIB_NAME)*
  56. OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
  57. # Optional assembly language optimization files for libGL
  58. MESA_ASM_SOURCES =
  59. # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
  60. # order to build the Motif widget too)
  61. GLW_SOURCES = GLwDrawA.c
  62. MOTIF_CFLAGS = -I/usr/include/Motif1.2
  63. # Directories to build
  64. LIB_DIR = lib
  65. SRC_DIRS = mesa gallium egl gallium/winsys glu glut/glx glew glw
  66. GLU_DIRS = sgi
  67. DRIVER_DIRS = x11 osmesa
  68. # Which subdirs under $(TOP)/progs/ to enter:
  69. PROGRAM_DIRS = demos redbook samples glsl xdemos
  70. # EGL directories
  71. EGL_DRIVERS_DIRS = demo
  72. # Gallium directories and
  73. GALLIUM_DIRS = auxiliary drivers state_trackers
  74. GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util indices
  75. GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
  76. GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple nv04 nv10 nv20 nv30 nv40 nv50 failover trace
  77. GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
  78. GALLIUM_WINSYS_DIRS = xlib egl_xlib
  79. GALLIUM_WINSYS_DRM_DIRS =
  80. GALLIUM_STATE_TRACKERS_DIRS = glx
  81. # Library dependencies
  82. #EXTRA_LIB_PATH ?=
  83. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
  84. OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  85. GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
  86. GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
  87. GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
  88. APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
  89. # Program dependencies - specific GL/glut libraries added in Makefiles
  90. APP_LIB_DEPS = -lm
  91. # Installation directories (for make install)
  92. INSTALL_DIR = /usr/local
  93. INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
  94. INSTALL_INC_DIR = $(INSTALL_DIR)/include
  95. DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
  96. # Where libGL will look for DRI hardware drivers
  97. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
  98. # pkg-config substitutions
  99. GL_PC_REQ_PRIV =
  100. GL_PC_LIB_PRIV =
  101. GL_PC_CFLAGS =
  102. DRI_PC_REQ_PRIV =
  103. GLU_PC_REQ = gl
  104. GLU_PC_REQ_PRIV =
  105. GLU_PC_LIB_PRIV =
  106. GLU_PC_CFLAGS =
  107. GLUT_PC_REQ_PRIV =
  108. GLUT_PC_LIB_PRIV =
  109. GLUT_PC_CFLAGS =
  110. GLW_PC_REQ_PRIV =
  111. GLW_PC_LIB_PRIV =
  112. GLW_PC_CFLAGS =
  113. OSMESA_PC_REQ =
  114. OSMESA_PC_LIB_PRIV =