summaryrefslogtreecommitdiffstats
path: root/configs/debian-dri
blob: c024d236e3690fac75a4a2ba1bba05f1dbbd2152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
include $(TOP)/configs/debian

CONFIG_NAME = debian-dri

ifeq ($(DEB_HOST_ARCH_OS),hurd)
# Switch to debian-indirect target
    include $(TOP)/configs/debian-indirect
else

DEBIAN_COMMON_CPPFLAGS += -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DHAVE_ALIAS -DDEFAULT_DRIVER_DIR=\"$(DEBIAN_DRIVERS_DIR)\"

LIBDRM_LIB = `pkg-config --libs libdrm`
DRI_LIB_DEPS  = -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
GL_LIB_DEPS = `pkg-config --libs x11 xext xxf86vm` -lm -lpthread -ldl $(LIBDRM_LIB)
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`

USING_EGL=0

# Directories
ifeq ($(USING_EGL), 1)
override SRC_DIRS = egl glx/x11 mesa
PROGRAM_DIRS = egl
else
override SRC_DIRS = glx/x11 mesa
PROGRAM_DIRS =
endif

DRIVER_DIRS = dri
WINDOW_SYSTEM=dri

DRI_DIRS = mach64 mga r128 r200 r300 radeon s3v savage tdfx trident

ifeq ($(DEB_HOST_ARCH),i386)
DRI_DIRS += i810 i915 i965 sis unichrome
endif

ifeq ($(DEB_HOST_ARCH),amd64)
DRI_DIRS += i915 i965 unichrome
endif

ifeq ($(DEB_HOST_ARCH),sparc)
DRI_DIRS += ffb
endif

endif # DRI or debian-indirect