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 \
r200_vtxfmt_c.c \
r200_vtxfmt_sse.c \
r200_vtxfmt_x86.c \
- server/radeon_egl.c
+ r200_fragshader.c \
+ $(EGL_SOURCES)
C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)