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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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=1
  9. MESA_TINY=0
  10. # external projects. This should be useless now that we use libdrm.
  11. DRM_SOURCE_PATH=$(TOP)/../drm
  12. # Compiler and flags
  13. CC = cc
  14. CXX = CC
  15. HOST_CC = $(CC)
  16. CFLAGS = -O
  17. CXXFLAGS = -O
  18. GLU_CFLAGS =
  19. # Misc tools and flags
  20. MKLIB_OPTIONS =
  21. MKDEP = makedepend
  22. MKDEP_OPTIONS = -fdepend
  23. MAKE = make
  24. INSTALL = $(TOP)/bin/minstall
  25. # Python and flags (generally only needed by the developers)
  26. PYTHON2 = python
  27. PYTHON_FLAGS = -t -O -O
  28. # Library names (base name)
  29. GL_LIB = GL
  30. GLU_LIB = GLU
  31. GLUT_LIB = glut
  32. GLW_LIB = GLw
  33. OSMESA_LIB = OSMesa
  34. # Library names (actual file names)
  35. GL_LIB_NAME = lib$(GL_LIB).so
  36. GLU_LIB_NAME = lib$(GLU_LIB).so
  37. GLUT_LIB_NAME = lib$(GLUT_LIB).so
  38. GLW_LIB_NAME = lib$(GLW_LIB).so
  39. OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
  40. # Optional assembly language optimization files for libGL
  41. MESA_ASM_SOURCES =
  42. # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
  43. # order to build the Motif widget too)
  44. GLW_SOURCES = GLwDrawA.c
  45. # Directories to build
  46. LIB_DIR = lib
  47. SRC_DIRS = gallium mesa egl gallium/winsys glu glut/glx glw
  48. GLU_DIRS = sgi
  49. DRIVER_DIRS =
  50. # Which subdirs under $(TOP)/progs/ to enter:
  51. PROGRAM_DIRS = demos redbook samples glsl xdemos
  52. # Gallium directories and
  53. GALLIUM_AUXILIARY_DIRS = draw cso_cache pipebuffer tgsi sct translate rtasm util
  54. GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
  55. GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover
  56. GALLIUM_WINSYS_COMMON_DIRS =
  57. GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
  58. GALLIUM_WINSYS_DIRS = xlib egl_xlib
  59. # Library/program dependencies
  60. #EXTRA_LIB_PATH ?=
  61. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
  62. OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  63. GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
  64. GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
  65. GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
  66. APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
  67. # Installation directories (for make install)
  68. INSTALL_DIR = /usr/local
  69. DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
  70. # Where libGL will look for DRI hardware drivers
  71. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)