summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2005-08-08 03:27:28 +0000
committerEric Anholt <anholt@FreeBSD.org>2005-08-08 03:27:28 +0000
commit81b3c5e85c7788b1bc381e521c33091b336a04a8 (patch)
tree79a9c445a5d5392ebab49fc1866d1b29defc7137
parentf1a261377f8f7fb0708c76ae68aecf93059ca761 (diff)
Dike out the linux-specific EGL bits unless it's a linux build.
-rw-r--r--configs/linux-dri1
-rw-r--r--src/mesa/drivers/dri/r200/Makefile6
2 files changed, 6 insertions, 1 deletions
diff --git a/configs/linux-dri b/configs/linux-dri
index 7902ce9339..3862cb2b3f 100644
--- a/configs/linux-dri
+++ b/configs/linux-dri
@@ -47,6 +47,7 @@ SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
DRIVER_DIRS = dri
PROGRAM_DIRS = egl
WINDOW_SYSTEM=dri
+USING_EGL=1
# gamma are missing because they have not been converted to use the new
# interface.
diff --git a/src/mesa/drivers/dri/r200/Makefile b/src/mesa/drivers/dri/r200/Makefile
index fc9a312bea..e4fff5746d 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)