Dike out the linux-specific EGL bits unless it's a linux build.
authorEric Anholt <anholt@FreeBSD.org>
Mon, 8 Aug 2005 03:27:28 +0000 (03:27 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Mon, 8 Aug 2005 03:27:28 +0000 (03:27 +0000)
configs/linux-dri
src/mesa/drivers/dri/r200/Makefile

index 7902ce9339c25a5c0964974107237272d1810704..3862cb2b3fbb3c9f5d954450ceb8cdaed2b818d5 100644 (file)
@@ -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.
index fc9a312bea75d2be7a58a71956e9da3fa3a190c4..e4fff5746d81746360bcebd6e43ad0bbd6788be0 100644 (file)
@@ -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)