summaryrefslogtreecommitdiffstats
path: root/src/gbm/main/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/gbm/main/Makefile')
-rw-r--r--src/gbm/main/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gbm/main/Makefile b/src/gbm/main/Makefile
index 277fba18eee..5130b9b5df2 100644
--- a/src/gbm/main/Makefile
+++ b/src/gbm/main/Makefile
@@ -23,6 +23,11 @@ LOCAL_CFLAGS = $(LIBUDEV_CFLAGS) $(DLOPEN_CFLAGS) \
-D_OS_UNIX=1 -DMODULEDIR='"$(GBM_BACKEND_INSTALL_DIR)"'
LOCAL_LIBS =
+# Builtin backends
+ifeq ($(filter dri, $(GBM_BACKEND_DIRS)),dri)
+LOCAL_LIBS += $(TOP)/src/gbm/backends/dri/libgbm_dri.a
+endif
+
.c.o:
$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $(LOCAL_CFLAGS) $< -o $@