summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/Makefile')
-rw-r--r--src/mesa/pipe/Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/mesa/pipe/Makefile b/src/mesa/pipe/Makefile
index d448f3f5a6..a9dc393417 100644
--- a/src/mesa/pipe/Makefile
+++ b/src/mesa/pipe/Makefile
@@ -1,7 +1,25 @@
-default:
- cd softpipe ; make
- cd i915simple ; make
- cd failover ; make
+
+TOP = ../../..
+include $(TOP)/configs/current
+
+
+ifeq ($(CONFIG_NAME), linux-cell)
+CELL_DIR = cell
+endif
+
+SUBDIRS = softpipe i915simple failover $(CELL_DIR)
+
+
+default: subdirs
+
+
+subdirs:
+ @for dir in $(SUBDIRS) ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE)) || exit 1 ; \
+ fi \
+ done
+
clean:
rm -f `find . -name \*.[oa]` \ No newline at end of file