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.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. GLEW_LIB = GLEW
  45. GLW_LIB = GLw
  46. OSMESA_LIB = OSMesa
  47. EGL_LIB = EGL
  48. # Library names (actual file names)
  49. GL_LIB_NAME = lib$(GL_LIB).so
  50. GLU_LIB_NAME = lib$(GLU_LIB).so
  51. GLUT_LIB_NAME = lib$(GLUT_LIB).so
  52. GLEW_LIB_NAME = lib$(GLEW_LIB).a
  53. GLW_LIB_NAME = lib$(GLW_LIB).so
  54. OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
  55. EGL_LIB_NAME = lib$(EGL_LIB).so
  56. # globs used to install the lib and all symlinks
  57. GL_LIB_GLOB = $(GL_LIB_NAME)*
  58. GLU_LIB_GLOB = $(GLU_LIB_NAME)*
  59. GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
  60. GLW_LIB_GLOB = $(GLW_LIB_NAME)*
  61. OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
  62. EGL_LIB_GLOB = $(EGL_LIB_NAME)*
  63. # Optional assembly language optimization files for libGL
  64. MESA_ASM_SOURCES =
  65. # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
  66. # order to build the Motif widget too)
  67. GLW_SOURCES = GLwDrawA.c
  68. MOTIF_CFLAGS = -I/usr/include/Motif1.2
  69. # Directories to build
  70. LIB_DIR = lib
  71. SRC_DIRS = glsl mesa gallium egl gallium/winsys gallium/targets glu glut/glx glew glw
  72. GLU_DIRS = sgi
  73. DRIVER_DIRS = x11 osmesa
  74. # Which subdirs under $(TOP)/progs/ to enter:
  75. PROGRAM_DIRS = demos redbook samples glsl objviewer xdemos
  76. # EGL drivers to build
  77. EGL_DRIVERS_DIRS = glx
  78. # Gallium directories and
  79. GALLIUM_DIRS = auxiliary drivers state_trackers
  80. GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
  81. GALLIUM_DRIVERS_DIRS = softpipe failover svga i915 i965 r300 trace identity
  82. GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
  83. GALLIUM_WINSYS_DIRS = null xlib drm
  84. GALLIUM_TARGET_DIRS = libgl-xlib
  85. GALLIUM_WINSYS_DRM_DIRS = swrast
  86. GALLIUM_STATE_TRACKERS_DIRS = glx vega
  87. # native displays EGL should support
  88. EGL_DISPLAYS = x11
  89. # Library dependencies
  90. #EXTRA_LIB_PATH ?=
  91. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
  92. EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -ldl -lpthread
  93. OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  94. GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
  95. GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
  96. GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
  97. APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
  98. # Program dependencies - specific GL/glut libraries added in Makefiles
  99. APP_LIB_DEPS = -lm
  100. # Installation directories (for make install)
  101. INSTALL_DIR = /usr/local
  102. INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
  103. INSTALL_INC_DIR = $(INSTALL_DIR)/include
  104. DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
  105. # Where libGL will look for DRI hardware drivers
  106. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
  107. # EGL driver install directory
  108. EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl
  109. # Xorg driver install directory (for xorg state-tracker)
  110. XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
  111. # pkg-config substitutions
  112. GL_PC_REQ_PRIV =
  113. GL_PC_LIB_PRIV =
  114. GL_PC_CFLAGS =
  115. DRI_PC_REQ_PRIV =
  116. GLU_PC_REQ = gl
  117. GLU_PC_REQ_PRIV =
  118. GLU_PC_LIB_PRIV =
  119. GLU_PC_CFLAGS =
  120. GLUT_PC_REQ_PRIV =
  121. GLUT_PC_LIB_PRIV =
  122. GLUT_PC_CFLAGS =
  123. GLW_PC_REQ_PRIV =
  124. GLW_PC_LIB_PRIV =
  125. GLW_PC_CFLAGS =
  126. OSMESA_PC_REQ =
  127. OSMESA_PC_LIB_PRIV =