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 4.8KB

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