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.

linux-dri 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # -*-makefile-*-
  2. # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
  3. include $(TOP)/configs/default
  4. CONFIG_NAME = linux-dri
  5. # Compiler and flags
  6. CC = gcc
  7. CXX = g++
  8. #MKDEP = /usr/X11R6/bin/makedepend
  9. #MKDEP = gcc -M
  10. #MKDEP_OPTIONS = -MF depend
  11. OPT_FLAGS = -O2 -g
  12. PIC_FLAGS = -fPIC
  13. # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
  14. ARCH_FLAGS ?=
  15. DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
  16. -D_BSD_SOURCE -D_GNU_SOURCE \
  17. -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
  18. -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
  19. -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
  20. X11_INCLUDES = -I/usr/X11R6/include
  21. CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
  22. $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) $(ASM_FLAGS)
  23. CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
  24. GLUT_CFLAGS = -fexceptions
  25. # Work around aliasing bugs - developers should comment this out
  26. CFLAGS += -fno-strict-aliasing
  27. CXXFLAGS += -fno-strict-aliasing
  28. MESA_ASM_SOURCES =
  29. # Library/program dependencies
  30. EXTRA_LIB_PATH=-L/usr/X11R6/lib
  31. LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
  32. LIBDRM_LIB = $(shell pkg-config --libs libdrm)
  33. DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
  34. GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
  35. -lm -lpthread -ldl $(LIBDRM_LIB)
  36. # Directories
  37. SRC_DIRS := glx egl $(SRC_DIRS)
  38. PROGRAM_DIRS := egl $(PROGRAM_DIRS)
  39. # EGL directories
  40. EGL_DRIVERS_DIRS = glx
  41. DRIVER_DIRS = dri
  42. GALLIUM_WINSYS_DIRS = null xlib drm
  43. GALLIUM_TARGET_DIRS =
  44. GALLIUM_WINSYS_DRM_DIRS = vmware intel i965
  45. GALLIUM_STATE_TRACKERS_DIRS = egl
  46. DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon \
  47. savage sis tdfx unichrome swrast
  48. INTEL_LIBS = `pkg-config --libs libdrm_intel`
  49. INTEL_CFLAGS = `pkg-config --cflags libdrm_intel`
  50. RADEON_LIBS = `pkg-config --libs libdrm_radeon`
  51. RADEON_CFLAGS = `pkg-config --cflags libdrm_radeon`