summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/r200/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/Makefile b/src/mesa/drivers/dri/r200/Makefile
index fc9a312..e4fff57 100644
--- a/src/mesa/drivers/dri/r200/Makefile
+++ b/src/mesa/drivers/dri/r200/Makefile
@@ -7,6 +7,10 @@ LIBNAME = r200_dri.so
MINIGLX_SOURCES = server/radeon_dri.c
+ifeq ($(USING_EGL), 1)
+EGL_SOURCES = server/radeon_egl.c
+endif
+
DRIVER_SOURCES = r200_context.c \
r200_ioctl.c \
r200_lock.c \
@@ -27,7 +31,7 @@ DRIVER_SOURCES = r200_context.c \
r200_vtxfmt_c.c \
r200_vtxfmt_sse.c \
r200_vtxfmt_x86.c \
- server/radeon_egl.c
+ $(EGL_SOURCES)
C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)