1# Please only change make.inc, not this Makefile 2include make.inc 3 4# MUMPS include files 5INCMUMPS = -I$(MUMPS_DIR)/include 6 7# MUMPS libraries 8LIBMUMPS = -L$(MUMPS_DIR)/lib -l$(ARITH)mumps -lmumps_common 9 10# Stub MPI/BLACS/ScaLAPACK 11INCSEQ = -I$(MUMPS_DIR)/libseq 12LIBSEQ = -L$(MUMPS_DIR)/libseq -lmpiseq 13 14# MUMPS includes 15INC = $(INCMUMPS) $(IORDERINGS) $(INCSEQ) 16LIB = $(LIBMUMPS) $(LORDERINGS) $(LIBSEQ) $(LIBBLAS) $(LIBFORT) 17 18all: d z 19 20d: 21 $(MAKE) ARITH=d dmumpsmex.stamp 22z: 23 $(MAKE) ARITH=z zmumpsmex.stamp 24 25clean: 26 rm -f dmumpsmex.* zmumpsmex* 27 28$(ARITH)mumpsmex.stamp: mumpsmex.c 29 cp -f mumpsmex.c $(ARITH)mumpsmex.c 30 $(MEX) $(OPTC) $(ARITH)mumpsmex.c -DMUMPS_ARITH=MUMPS_ARITH_$(ARITH) $(INC) $(LIB) 31 rm -f $(ARITH)mumpsmex.c 32 touch $@ 33 34