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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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=1
  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 = install
  24. COPY_LIBS = cp -f -d
  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 xdemos
  52. # Library/program 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. APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
  60. # Installation directories (for make install)
  61. INSTALL_DIR = /usr/local
  62. DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
  63. # Where libGL will look for DRI hardware drivers
  64. DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)