diff options
Diffstat (limited to 'src/mesa/pipe/Makefile')
-rw-r--r-- | src/mesa/pipe/Makefile | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/src/mesa/pipe/Makefile b/src/mesa/pipe/Makefile index 7394ad7f61..5099b65885 100644 --- a/src/mesa/pipe/Makefile +++ b/src/mesa/pipe/Makefile @@ -1,9 +1,25 @@ -default: - cd softpipe ; make - cd i915simple ; make - cd failover ; make - cd nv40; make - cd nv50; make + +TOP = ../../.. +include $(TOP)/configs/current + + +ifeq ($(CONFIG_NAME), linux-cell) +CELL_DIR = cell +endif + +SUBDIRS = softpipe i915simple nv40 nv50 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]` |