aboutsummaryrefslogtreecommitdiffstats
path: root/src/gbm/backends/dri/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <[email protected]>2011-05-26 15:10:50 +0200
committerBenjamin Franzke <[email protected]>2011-06-23 21:07:17 +0200
commit2ff797060d4ffbe1c1bf5b605ea5d4f9e588da41 (patch)
treeede1ca9d95366dd23dd1a41b9fe627c953d044e8 /src/gbm/backends/dri/Makefile
parenteddcecbf74da26716509c047b95e85b00c12bab4 (diff)
gbm: Add dri backend
Diffstat (limited to 'src/gbm/backends/dri/Makefile')
-rw-r--r--src/gbm/backends/dri/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/Makefile b/src/gbm/backends/dri/Makefile
new file mode 100644
index 00000000000..78fb3291227
--- /dev/null
+++ b/src/gbm/backends/dri/Makefile
@@ -0,0 +1,22 @@
+# src/gbm/backends/dri/Makefile
+
+TOP = ../../../..
+include $(TOP)/configs/current
+
+GBM_BACKEND = gbm_dri
+GBM_SOURCES = gbm_dri.c driver_name.c
+
+GBM_INCLUDES = \
+ -I$(TOP)/include \
+ -I$(TOP)/src/gbm/main \
+
+GBM_LIBS = $(LIBUDEV_LIBS) $(LIBDRM_LIB) -L$(TOP)/lib -lglapi
+
+GBM_CFLAGS = \
+ -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
+ $(LIBUDEV_CFLAGS) \
+ $(LIBDRM_CFLAGS)
+
+GBM_BUILTIN=true
+
+include ../Makefile.template