diff -urN Mesa-6.5/configs/linux-fbdev Mesa-6.5-fbdev/configs/linux-fbdev
--- Mesa-6.5/configs/linux-fbdev	Sun May  8 00:30:50 2005
+++ Mesa-6.5-fbdev/configs/linux-fbdev	Mon Sep 11 14:38:55 2006
@@ -2,9 +2,16 @@
 
 include $(TOP)/configs/linux
 
+SRC_DIR = mesa
 CONFIG_NAME = linux-fbdev
 DRIVER_DIRS = fbdev
 
 CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -DUSE_GLFBDEV_DRIVER
 
+GL_LIB_DEPS = -lm -lpthread -ldl
+GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
+GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lm
+APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm -lpthread
+
 PROGRAM_DIRS = fbdev
+
diff -urN Mesa-6.5/src/mesa/Makefile Mesa-6.5-fbdev/src/mesa/Makefile
--- Mesa-6.5/src/mesa/Makefile	Tue Oct 11 03:15:43 2005
+++ Mesa-6.5-fbdev/src/mesa/Makefile	Mon Sep 11 14:42:28 2006
@@ -29,6 +29,8 @@
 		$(MAKE) linux-solo ; \
 	elif [ "${DRIVER_DIRS}" = "osmesa" ] ; then \
 		$(MAKE) osmesa-only ; \
+	elif [ "${DRIVER_DIRS}" = "fbdev" ] ; then \
+		$(MAKE) linux-fbdev ; \
 	elif [ "$(DRIVER_DIRS)" = "beos" ]; then \
 		$(MAKE) beos ; \
 	elif [ "$(DRIVER_DIRS)" = "directfb" ]; then \
@@ -59,6 +61,7 @@
 linux-solo: depend subdirs libmesa.a
 	cd drivers/dri ; $(MAKE)
 
+linux-fbdev: depend subdirs libmesa.a
 
 #####################################################################
 # Stand-alone Mesa libGL, no built-in drivers (DirectFB)
