summaryrefslogtreecommitdiffstats
path: root/src/mesa/Makefile
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-06-06 12:18:40 -0600
committerBrian Paul <[email protected]>2008-06-06 12:18:40 -0600
commitdd750e0763d4a03a41d8a4ebde9489ad9c4aa82f (patch)
tree59e81a4721118375c749a9e026cad5e71f0d5cea /src/mesa/Makefile
parent358dcd71783beb69c4e3923138cf92c27b871159 (diff)
Remove the old, complicated default build rule; use the new driver_subdirs rule
Also, all the old driver-specific rules are now gone.
Diffstat (limited to 'src/mesa/Makefile')
-rw-r--r--src/mesa/Makefile79
1 files changed, 13 insertions, 66 deletions
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index 726bb4b9d0a..06b4e9cceba 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -18,19 +18,16 @@ include sources
$(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
-# Figure out what to make here
-default: depend
- @for driver in $(DRIVER_DIRS) ; do \
- case "$$driver" in \
- x11) $(MAKE) xlib-driver || exit 1 ;; \
- dri) $(MAKE) dri-drivers || exit 1 ;; \
- osmesa) $(MAKE) osmesa-driver || exit 1 ;; \
- beos) $(MAKE) beos-driver || exit 1 ;; \
- directfb) $(MAKE) directfb-driver || exit 1 ;; \
- fbdev) $(MAKE) fbdev-driver || exit 1 ;; \
- *) echo "$$driver is invalid in DRIVER_DIRS" >&2; exit 1;; \
- esac ; \
- done
+
+# Default: build dependencies, then mesa subdirs, then convenience
+# libs (.a) and finally the device drivers:
+default: depend subdirs libmesa.a libglapi.a driver_subdirs
+
+
+# this doesn't work yet but is probably the way to go in the future
+new_install:
+ (cd drivers && $(MAKE) install)
+
# XXX replace this with new_install above someday
install: default
@@ -48,20 +45,6 @@ install: default
-# default: build dependencies, then mesa subdirs, then convenience
-# libs (.a) and finally the device drivers:
-new_default: depend subdirs libmesa.a libglapi.a driver_subdirs
-
-
-driver_subdirs:
- (cd drivers && $(MAKE))
-
-
-# this doesn't work yet but is probably the way to go in the future
-new_install:
- (cd drivers && $(MAKE) install)
-
-
######################################################################
# Helper libraries used by many drivers:
@@ -78,45 +61,9 @@ libglapi.a: $(GLAPI_OBJECTS)
######################################################################
-# BeOS driver target
-
-beos-driver: depend subdirs libmesa.a
- cd drivers/beos && $(MAKE)
-
-
-######################################################################
-# DRI drivers
-
-dri-drivers: depend subdirs libmesa.a
- cd drivers/dri && $(MAKE)
-
-
-######################################################################
-# Xlib driver (libGL.so)
-
-xlib-driver: depend subdirs libmesa.a libglapi.a
- cd drivers/x11 && $(MAKE)
-
-
-######################################################################
-# osmesa driver (libOSMesa.so)
-
-osmesa-driver: depend subdirs libmesa.a libglapi.a
- cd drivers/osmesa && $(MAKE)
-
-
-#####################################################################
-# fbdev driver (libGL.so)
-
-fbdev-driver: depend subdirs libmesa.a libglapi.a
- cd drivers/fbdev && $(MAKE)
-
-
-#####################################################################
-# DirectFB driver (libGL.so)
-
-directfb-driver: depend subdirs directfb-libgl
- cd drivers/directfb && $(MAKE)
+# Device drivers
+driver_subdirs:
+ (cd drivers && $(MAKE))
######################################################################