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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. CFLAGS = -O
  16. CXXFLAGS = -O
  17. LDFLAGS =
  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. 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 = mesa glu glut/glx glw
  48. GLU_DIRS = sgi
  49. DRIVER_DIRS = x11 osmesa
  50. # Which subdirs under $(TOP)/progs/ to enter:
  51. PROGRAM_DIRS = demos redbook samples glsl xdemos
  52. # Library dependencies
  53. #EXTRA_LIB_PATH ?=
  54. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
  55. OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  56. GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
  57. GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
  58. GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
  59. # Program dependencies - specific GL/glut libraries added in Makefiles
  60. APP_LIB_DEPS = -lm
  61. # Installation directories (for make install)
  62. INSTALL_DIR = /usr/local
  63. DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
  64. # Where libGL will look for DRI hardware drivers
  65. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)