File: Makefile

package info (click to toggle)
superlu 7.0.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,292 kB
  • sloc: ansic: 59,338; makefile: 413; csh: 141; f90: 125; fortran: 77
file content (53 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.SUFFIXES:
.SUFFIXES: .f90 .F90 .c .o .f .F
include ../make.inc

#######################################################################
#  This makefile creates the Fortran example interface to use the
#  C routines in SuperLU.
#######################################################################

HEADER   = ../SRC
LIBS	+= -lm

# double real
DFEXMOBJ = f_main.o hbcode1.o c_fortran_dgssv.o
TESTOMPOBJ= test_omp.o hbcode1.o c_fortran_dgssv.o

# double complex
ZFEXMOBJ = z_f_main.o zhbcode1.o c_fortran_zgssv.o

all:	dfexm zfexm test_omp

superlu_config.fh: ../SRC/superlu_config.h
	sed 's/\/.*$$//' < $< > temp.fh
	sed '/typedef/ d' < temp.fh > $@
	rm temp.fh

dfexm: $(DFEXMOBJ) $(SUPERLULIB)
	$(FORTRAN) $(LOADOPTS) $(DFEXMOBJ) $(LIBS) -o $@

zfexm: $(ZFEXMOBJ) $(SUPERLULIB)
	$(FORTRAN) $(LOADOPTS) $(ZFEXMOBJ) $(LIBS) -o $@

test_omp: $(TESTOMPOBJ) $(SUPERLULIB)
	$(FORTRAN) $(LOADOPTS) $(TESTOMPOBJ)  $(LIBS) -o $@

.c.o:
	$(CC) $(CFLAGS) $(CDEFS) -I$(HEADER) -c $< $(VERBOSE)

.f90.o:
	$(FORTRAN) $(FFLAGS) -c $< $(VERBOSE)

.F90.o:
	$(FORTRAN) $(FFLAGS) -c $< $(VERBOSE)

.f.o:
	$(FORTRAN) $(FFLAGS) -c $< $(VERBOSE)

.F.o:
	$(FORTRAN) $(FFLAGS) -c $< $(VERBOSE)

clean:	
	rm -f *.o *fexm test_omp