i915g: Add some helper functions
[mesa.git] / src / gallium / Makefile
index 36bd3623e7fecbbd7b86d0dcab321617857eb088..79ca767f7e641e79e1482abce3568bb3dd78c31b 100644 (file)
@@ -1,26 +1,12 @@
+# src/gallium/Makefile
 TOP = ../..
 include $(TOP)/configs/current
 
+SUBDIRS = $(GALLIUM_DIRS)
 
-SUBDIRS = auxiliary drivers
-# Note winsys/ needs to be built after src/mesa
-
-
-default: subdirs
-
-
-subdirs:
+default install clean:
        @for dir in $(SUBDIRS) ; do \
                if [ -d $$dir ] ; then \
-                       (cd $$dir && $(MAKE)) || exit 1 ; \
+                       (cd $$dir && $(MAKE) $@) || exit 1; \
                fi \
        done
-
-
-clean:
-       rm -f `find . -name \*.[oa]`
-       rm -f `find . -name depend`
-
-
-# Dummy install target
-install: