summaryrefslogtreecommitdiff
path: root/src/mesa/Makefile
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-24 16:24:06 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-24 16:24:06 -0600
commit26479fa3b3a7c911617192c56e54fbe298fdd7f3 (patch)
tree6a59d78796f7e00fca81ffe0b97a672e17f0d4e2 /src/mesa/Makefile
parent55d4f32fc211dbc37bd28c0e67da5ce5e0da5777 (diff)
don't build x86, x86-64 dirs if not needed
Diffstat (limited to 'src/mesa/Makefile')
-rw-r--r--src/mesa/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index a47cd4c023..3722593f21 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -153,8 +153,13 @@ depend: $(ALL_SOURCES)
subdirs:
- @ (cd x86 ; $(MAKE))
- @ (cd x86-64 ; $(MAKE))
+ @ if [ `echo $(ASM_FLAGS) | grep USE_X86_ASM` ] ; then \
+ (cd x86 ; $(MAKE)) ; \
+ fi
+ @ if [ `echo $(ASM_FLAGS) | grep USE_X86_64_ASM` ] ; then \
+ (cd x86 ; $(MAKE)) ; \
+ (cd x86-64 ; $(MAKE)) ; \
+ fi
install: default gl.pc