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

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