Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. # Default/template configuration
  2.  
  3. # This is included by other config files which may override some
  4. # of these variables.
  5. # Think of this as a base class from which configs are derived.
  6.  
  7.  
  8. CONFIG_NAME = default
  9.  
  10. # Version info
  11. MESA_MAJOR=7
  12. MESA_MINOR=10
  13. MESA_TINY=0
  14. MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
  15.  
  16. # external projects.  This should be useless now that we use libdrm.
  17. DRM_SOURCE_PATH=$(TOP)/../drm
  18.  
  19. # Compiler and flags
  20. CC = cc
  21. CXX = CC
  22. HOST_CC = $(CC)
  23. CFLAGS = -O
  24. CXXFLAGS = -O
  25. LDFLAGS =
  26. HOST_CFLAGS = $(CFLAGS)
  27. GLU_CFLAGS =
  28.  
  29. # Compiler for building demos/tests/etc
  30. APP_CC = $(CC)
  31. APP_CXX = $(CXX)
  32.  
  33. # Misc tools and flags
  34. SHELL = /bin/sh
  35. MKLIB = $(SHELL) $(TOP)/bin/mklib
  36. MKLIB_OPTIONS =
  37. MKDEP = makedepend
  38. MKDEP_OPTIONS = -fdepend
  39. MAKE = make
  40.  
  41. # Use MINSTALL for installing libraries, INSTALL for everything else
  42. MINSTALL = $(SHELL) $(TOP)/bin/minstall
  43. INSTALL = $(MINSTALL)
  44.  
  45. # Tools for regenerating glapi (generally only needed by the developers)
  46. PYTHON2 = python
  47. PYTHON_FLAGS = -t -O -O
  48. INDENT = indent
  49. INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
  50.  
  51. # Library names (base name)
  52. GL_LIB = GL
  53. GLU_LIB = GLU
  54. GLUT_LIB = glut
  55. GLW_LIB = GLw
  56. OSMESA_LIB = OSMesa
  57. EGL_LIB = EGL
  58. GLESv1_CM_LIB = GLESv1_CM
  59. GLESv2_LIB = GLESv2
  60. VG_LIB = OpenVG
  61.  
  62.  
  63. # Library names (actual file names)
  64. GL_LIB_NAME = lib$(GL_LIB).so
  65. GLU_LIB_NAME = lib$(GLU_LIB).so
  66. GLUT_LIB_NAME = lib$(GLUT_LIB).so
  67. GLW_LIB_NAME = lib$(GLW_LIB).so
  68. OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
  69. EGL_LIB_NAME = lib$(EGL_LIB).so
  70. GLESv1_CM_LIB_NAME = lib$(GLESv1_CM_LIB).so
  71. GLESv2_LIB_NAME = lib$(GLESv2_LIB).so
  72. VG_LIB_NAME = lib$(VG_LIB).so
  73.  
  74. # globs used to install the lib and all symlinks
  75. GL_LIB_GLOB = $(GL_LIB_NAME)*
  76. GLU_LIB_GLOB = $(GLU_LIB_NAME)*
  77. GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
  78. GLW_LIB_GLOB = $(GLW_LIB_NAME)*
  79. OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
  80. EGL_LIB_GLOB = $(EGL_LIB_NAME)*
  81. GLESv1_CM_LIB_GLOB = $(GLESv1_CM_LIB_NAME)*
  82. GLESv2_LIB_GLOB = $(GLESv2_LIB_NAME)*
  83. VG_LIB_GLOB = $(VG_LIB_NAME)*
  84.  
  85. # Optional assembly language optimization files for libGL
  86. MESA_ASM_SOURCES =
  87.  
  88. # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
  89. # order to build the Motif widget too)
  90. GLW_SOURCES = GLwDrawA.c
  91. MOTIF_CFLAGS = -I/usr/include/Motif1.2
  92.  
  93.  
  94. # Directories to build
  95. LIB_DIR = lib
  96. SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
  97.         gallium egl gallium/winsys gallium/targets glu glut/glx glw
  98. GLU_DIRS = sgi
  99. DRIVER_DIRS = x11 osmesa
  100.  
  101. DRIVER_DIRS = osmesa
  102.  
  103.  
  104. # Library dependencies
  105. #EXTRA_LIB_PATH ?=
  106. GL_LIB_DEPS     = $(EXTRA_LIB_PATH)
  107. EGL_LIB_DEPS    = $(EXTRA_LIB_PATH) -ldl -lpthread
  108. OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  109. GLU_LIB_DEPS    = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
  110. GLUT_LIB_DEPS   = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
  111. GLW_LIB_DEPS    = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
  112. APP_LIB_DEPS    = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
  113. GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
  114. GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
  115. VG_LIB_DEPS    = $(EXTRA_LIB_PATH) -lpthread
  116.  
  117. # Program dependencies - specific GL/glut libraries added in Makefiles
  118. APP_LIB_DEPS = -lm
  119.  
  120.  
  121. # Installation directories (for make install)
  122. INSTALL_DIR = /usr/local
  123. INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
  124. INSTALL_INC_DIR = $(INSTALL_DIR)/include
  125. DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
  126.  
  127. # Where libGL will look for DRI hardware drivers
  128. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
  129.  
  130. # EGL driver install directory
  131. EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl
  132.  
  133. # Xorg driver install directory (for xorg state-tracker)
  134. XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
  135.  
  136. # pkg-config substitutions
  137. GL_PC_REQ_PRIV =
  138. GL_PC_LIB_PRIV =
  139. GL_PC_CFLAGS =
  140. DRI_PC_REQ_PRIV =
  141. GLU_PC_REQ = gl
  142. GLU_PC_REQ_PRIV =
  143. GLU_PC_LIB_PRIV =
  144. GLU_PC_CFLAGS =
  145. GLUT_PC_REQ_PRIV =
  146. GLUT_PC_LIB_PRIV =
  147. GLUT_PC_CFLAGS =
  148. GLW_PC_REQ_PRIV =
  149. GLW_PC_LIB_PRIV =
  150. GLW_PC_CFLAGS =
  151. OSMESA_PC_REQ =
  152. OSMESA_PC_LIB_PRIV =
  153. GLESv1_CM_PC_REQ_PRIV =
  154. GLESv1_CM_PC_LIB_PRIV =
  155. GLESv1_CM_PC_CFLAGS =
  156. GLESv2_PC_REQ_PRIV =
  157. GLESv2_PC_LIB_PRIV =
  158. GLESv2_PC_CFLAGS =
  159. VG_PC_REQ_PRIV =
  160. VG_PC_LIB_PRIV =
  161. VG_PC_CFLAGS =
  162.