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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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=6
  8. MESA_MINOR=5
  9. MESA_TINY=2
  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. GLU_CFLAGS =
  18. # Misc tools and flags
  19. MKLIB_OPTIONS =
  20. MKDEP = makedepend
  21. MKDEP_OPTIONS = -fdepend
  22. MAKE = make
  23. INSTALL = $(TOP)/bin/minstall
  24. # Python and flags (generally only needed by the developers)
  25. PYTHON2 = python
  26. PYTHON_FLAGS = -t -O -O
  27. # Library names (base name)
  28. GL_LIB = GL
  29. GLU_LIB = GLU
  30. GLUT_LIB = glut
  31. GLW_LIB = GLw
  32. OSMESA_LIB = OSMesa
  33. # Library names (actual file names)
  34. GL_LIB_NAME = lib$(GL_LIB).so
  35. GLU_LIB_NAME = lib$(GLU_LIB).so
  36. GLUT_LIB_NAME = lib$(GLUT_LIB).so
  37. GLW_LIB_NAME = lib$(GLW_LIB).so
  38. OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
  39. # Optional assembly language optimization files for libGL
  40. ASM_SOURCES =
  41. # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
  42. # order to build the Motif widget too)
  43. GLW_SOURCES = GLwDrawA.c
  44. # Directories to build
  45. LIB_DIR = lib
  46. SRC_DIRS = mesa glu glut/glx glw
  47. GLU_DIRS = sgi
  48. DRIVER_DIRS = x11 osmesa
  49. # Which subdirs under $(TOP)/progs/ to enter:
  50. PROGRAM_DIRS = demos redbook samples xdemos
  51. # Library/program dependencies
  52. #EXTRA_LIB_PATH ?=
  53. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
  54. OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
  55. GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
  56. GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
  57. GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
  58. APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
  59. # Installation directories (for make install)
  60. INSTALL_DIR = /usr/local
  61. DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
  62. # Where libGL will look for DRI hardware drivers
  63. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)