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.

freebsd-dri 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*-makefile-*-
  2. # Configuration for freebsd-dri: FreeBSD DRI hardware drivers
  3. include $(TOP)/configs/freebsd
  4. CONFIG_NAME = freebsd-dri
  5. # Compiler and flags
  6. CC = gcc
  7. CXX = g++
  8. WARN_FLAGS = -Wall
  9. OPT_FLAGS = -O
  10. EXPAT_INCLUDES = -I/usr/local/include
  11. X11_INCLUDES = -I/usr/X11R6/include
  12. DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
  13. -DGLX_DIRECT_RENDERING -DHAVE_ALIAS
  14. CFLAGS = $(DEFINES) -Wmissing-prototypes -g -std=c99 -Wundef -fPIC \
  15. -ffast-math $(ASM_FLAGS) $(X11_INCLUDES)
  16. CXXFLAGS = $(DEFINES) -Wall -g -ansi -pedantic -fPIC
  17. ASM_SOURCES =
  18. # Library/program dependencies
  19. LIBDRM_LIB = `pkg-config --libs libdrm` -ldrm
  20. DRI_LIB_DEPS = -L/usr/local/lib -lm -lpthread -lexpat $(LIBDRM_LIB)
  21. GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm -lm -lpthread $(LIBDRM_LIB)
  22. GLUT_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
  23. GLW_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lXm -lX11
  24. # Directories
  25. SRC_DIRS = mesa glu glut/glx glw glx/x11
  26. DRIVER_DIRS = dri
  27. PROGRAM_DIRS =
  28. WINDOW_SYSTEM=dri
  29. DRM_SOURCE_PATH=$(TOP)/../drm
  30. # ffb and gamma are missing because they have not been converted to use the new
  31. # interface.
  32. DRI_DIRS = i810 i830 i915 mach64 mga r128 r200 r300 radeon tdfx \
  33. unichrome savage sis