File: Makefile

package info (click to toggle)
mumps 5.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,704 kB
  • sloc: fortran: 310,672; ansic: 12,364; xml: 521; makefile: 469
file content (33 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Please only change make.inc, not this Makefile
include make.inc

# MUMPS include files
INCMUMPS = -I$(MUMPS_DIR)/include 

# MUMPS libraries
LIBMUMPS = -L$(MUMPS_DIR)/lib -l$(ARITH)mumps -lmumps_common

# Stub MPI/BLACS/ScaLAPACK
INCSEQ     = -I$(MUMPS_DIR)/libseq
LIBSEQ     = -L$(MUMPS_DIR)/libseq -lmpiseq

# MUMPS includes
INC = $(INCMUMPS) $(IORDERINGS) $(INCSEQ)
LIB = $(LIBMUMPS) $(LORDERINGS) $(LIBSEQ) $(LIBBLAS) $(LIBFORT)

all:	d z

d:
	$(MAKE) ARITH=d dmumpsmex.stamp
z:
	$(MAKE) ARITH=z zmumpsmex.stamp

clean:
	rm -f dmumpsmex.* zmumpsmex*

$(ARITH)mumpsmex.stamp: mumpsmex.c
	cp -f mumpsmex.c $(ARITH)mumpsmex.c
	$(MEX) $(OPTC) $(ARITH)mumpsmex.c -DMUMPS_ARITH=MUMPS_ARITH_$(ARITH) $(INC) $(LIB)
	rm -f $(ARITH)mumpsmex.c
	touch $@