summaryrefslogtreecommitdiff
path: root/src/egl/drivers/dri2/Makefile
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-02-03 10:18:28 -0500
committerKristian Høgsberg <krh@bitplanet.net>2010-02-04 15:03:45 -0500
commit42fa009e641c35a6543f2fb63b229c0adc8a30dc (patch)
tree196a2e0364c72117e2e0a4f88e6665c0170dbe0a /src/egl/drivers/dri2/Makefile
parent7b6fa78d86612b73e662dc6981d32ef3cd534642 (diff)
egl: Add driver for EGL on X with DRI2
Diffstat (limited to 'src/egl/drivers/dri2/Makefile')
-rw-r--r--src/egl/drivers/dri2/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/Makefile b/src/egl/drivers/dri2/Makefile
new file mode 100644
index 0000000000..95f9574531
--- /dev/null
+++ b/src/egl/drivers/dri2/Makefile
@@ -0,0 +1,19 @@
+# src/egl/drivers/dri2/Makefile
+
+TOP = ../../../..
+include $(TOP)/configs/current
+
+EGL_DRIVER = egl_dri2.so
+EGL_SOURCES = egl_dri2.c
+
+EGL_INCLUDES = \
+ -I$(TOP)/include \
+ -I$(TOP)/src/egl/main \
+ -I$(TOP)/src/mesa \
+ -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
+ $(shell pkg-config --cflags xcb-dri2 xcb-xfixes x11-xcb libdrm)
+
+EGL_CFLAGS =
+EGL_LIBS = $(shell pkg-config --libs xcb-dri2 xcb-xfixes x11-xcb libdrm)
+
+include ../Makefile.template