Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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=11
  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. HOST_CFLAGS = $(CFLAGS)
  21. GLU_CFLAGS =
  22. GLX_TLS = no
  23. # Compiler for building demos/tests/etc
  24. APP_CC = $(CC)
  25. APP_CXX = $(CXX)
  26. # Misc tools and flags
  27. SHELL = /bin/sh
  28. MKLIB = $(SHELL) $(TOP)/bin/mklib
  29. MKLIB_OPTIONS =
  30. MKDEP = makedepend
  31. MKDEP_OPTIONS = -fdepend
  32. MAKE = make
  33. FLEX = flex
  34. BISON = bison
  35. # Use MINSTALL for installing libraries, INSTALL for everything else
  36. MINSTALL = $(SHELL) $(TOP)/bin/minstall
  37. INSTALL = $(MINSTALL)
  38. # Tools for regenerating glapi (generally only needed by the developers)
  39. PYTHON2 = python
  40. PYTHON_FLAGS = -t -O -O
  41. INDENT = indent
  42. INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
  43. # Library names (base name)
  44. GL_LIB = GL
  45. GLU_LIB = GLU
  46. GLUT_LIB = glut
  47. GLW_LIB = GLw
  48. OSMESA_LIB = OSMesa
  49. EGL_LIB = EGL
  50. GLESv1_CM_LIB = GLESv1_CM
  51. GLESv2_LIB = GLESv2
  52. VG_LIB = OpenVG
  53. GLAPI_LIB = glapi
  54. WAYLAND_EGL_LIB = wayland-egl
  55. # Library names (actual file names)
  56. GL_LIB_NAME = lib$(GL_LIB).so
  57. GLU_LIB_NAME = lib$(GLU_LIB).so
  58. GLUT_LIB_NAME = lib$(GLUT_LIB).so
  59. GLW_LIB_NAME = lib$(GLW_LIB).so
  60. OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
  61. EGL_LIB_NAME = lib$(EGL_LIB).so
  62. GLESv1_CM_LIB_NAME = lib$(GLESv1_CM_LIB).so
  63. GLESv2_LIB_NAME = lib$(GLESv2_LIB).so
  64. VG_LIB_NAME = lib$(VG_LIB).so
  65. GLAPI_LIB_NAME = lib$(GLAPI_LIB).so
  66. WAYLAND_EGL_LIB_NAME = lib$(WAYLAND_EGL_LIB).so
  67. # globs used to install the lib and all symlinks
  68. GL_LIB_GLOB = $(GL_LIB_NAME)*
  69. GLU_LIB_GLOB = $(GLU_LIB_NAME)*
  70. GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
  71. GLW_LIB_GLOB = $(GLW_LIB_NAME)*
  72. OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
  73. EGL_LIB_GLOB = $(EGL_LIB_NAME)*
  74. GLESv1_CM_LIB_GLOB = $(GLESv1_CM_LIB_NAME)*
  75. GLESv2_LIB_GLOB = $(GLESv2_LIB_NAME)*
  76. VG_LIB_GLOB = $(VG_LIB_NAME)*
  77. GLAPI_LIB_GLOB = $(GLAPI_LIB_NAME)*
  78. WAYLAND_EGL_LIB_GLOB = $(WAYLAND_EGL_LIB_NAME)*
  79. DRI_CFLAGS = $(CFLAGS)
  80. DRI_CXXFLAGS = $(CXXFLAGS)
  81. # Optional assembly language optimization files for libGL
  82. MESA_ASM_SOURCES =
  83. # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
  84. # order to build the Motif widget too)
  85. GLW_SOURCES = GLwDrawA.c
  86. MOTIF_CFLAGS = -I/usr/include/Motif1.2
  87. # Directories to build
  88. LIB_DIR = lib
  89. SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
  90. gallium egl gallium/winsys gallium/targets glu glut/glx glw
  91. GLU_DIRS = sgi
  92. DRIVER_DIRS = x11 osmesa
  93. # EGL drivers to build
  94. EGL_DRIVERS_DIRS = glx
  95. # Gallium directories and
  96. GALLIUM_DIRS = auxiliary drivers state_trackers
  97. GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
  98. GALLIUM_DRIVERS_DIRS = softpipe trace rbug noop identity galahad i915 i965 svga r300 nvfx nv50 failover
  99. GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
  100. GALLIUM_WINSYS_DIRS = sw sw/xlib
  101. GALLIUM_TARGET_DIRS = libgl-xlib
  102. GALLIUM_STATE_TRACKERS_DIRS = glx vega
  103. # native platforms EGL should support
  104. EGL_PLATFORMS = x11
  105. EGL_CLIENT_APIS = $(GL_LIB)
  106. # Library dependencies
  107. #EXTRA_LIB_PATH ?=
  108. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
  109. EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -ldl -lpthread
  110. OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  111. GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
  112. GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
  113. GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
  114. APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
  115. GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
  116. GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
  117. VG_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
  118. GLAPI_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
  119. WAYLAND_EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -lwayland-client -ldrm
  120. # Program dependencies - specific GL/glut libraries added in Makefiles
  121. APP_LIB_DEPS = -lm
  122. X11_LIBS = -lX11
  123. DLOPEN_LIBS = -ldl
  124. # Installation directories (for make install)
  125. INSTALL_DIR = /usr/local
  126. INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
  127. INSTALL_INC_DIR = $(INSTALL_DIR)/include
  128. DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
  129. # Where libGL will look for DRI hardware drivers
  130. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
  131. # EGL driver install directory
  132. EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl
  133. # Xorg driver install directory (for xorg state-tracker)
  134. XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
  135. # pkg-config substitutions
  136. GL_PC_REQ_PRIV =
  137. GL_PC_LIB_PRIV =
  138. GL_PC_CFLAGS =
  139. DRI_PC_REQ_PRIV =
  140. GLU_PC_REQ = gl
  141. GLU_PC_REQ_PRIV =
  142. GLU_PC_LIB_PRIV =
  143. GLU_PC_CFLAGS =
  144. GLUT_PC_REQ_PRIV =
  145. GLUT_PC_LIB_PRIV =
  146. GLUT_PC_CFLAGS =
  147. GLW_PC_REQ_PRIV =
  148. GLW_PC_LIB_PRIV =
  149. GLW_PC_CFLAGS =
  150. OSMESA_PC_REQ =
  151. OSMESA_PC_LIB_PRIV =
  152. GLESv1_CM_PC_REQ_PRIV =
  153. GLESv1_CM_PC_LIB_PRIV =
  154. GLESv1_CM_PC_CFLAGS =
  155. GLESv2_PC_REQ_PRIV =
  156. GLESv2_PC_LIB_PRIV =
  157. GLESv2_PC_CFLAGS =
  158. VG_PC_REQ_PRIV =
  159. VG_PC_LIB_PRIV =
  160. VG_PC_CFLAGS =
  161. WAYLAND_EGL_PC_REQ_PRIV =
  162. WAYLAND_EGL_PC_LIB_PRIV =
  163. WAYLAND_EGL_PC_CFLAGS =