1# 2# in case the user wants to give the executables distinct names , he/she can specify the variable 3# UXT on the make command line. For instance 4# gmake VERS=opt COMPRESSIBLE=1 UXT=-myrinet will create a target 5# phasta-compressible-myrinet-O 6# 7#******NOTE: user has to preappend a '-' to the actual extension. 8# 9 10BUILDDIRS=common 11 12ifeq ($(AMG),1) 13 BUILDDIRS += AMG 14endif 15 16ifeq ($(COMPRESSIBLE),1) 17 BUILDDIRS += compressible 18else 19 BUILDDIRS += incompressible 20endif 21 22all: 23 for i in ${BUILDDIRS}; do ( \ 24 cd $$i; \ 25 $(MAKE)) ; done 26 27setup: 28 for i in ${BUILDDIRS}; do ( \ 29 cd $$i; \ 30 $(MAKE) setup ) ; done 31 32clean: 33 for i in ${BUILDDIRS}; do ( \ 34 cd $$i; \ 35 $(MAKE) clean ) ; done 36