File: Makefile

package info (click to toggle)
scalapack 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 36,184 kB
  • sloc: fortran: 338,772; ansic: 75,298; makefile: 1,392; sh: 56
file content (48 lines) | stat: -rw-r--r-- 1,550 bytes parent folder | download | duplicates (4)
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
include ../../SLmake.inc

#  ---------------------------------------------------------------------
#  The file tools.f contains some LAPACK routines that the tester calls.
#  If you have ScaLAPACK, you may point to your tools library instead
#  of compiling this file.
#  ---------------------------------------------------------------------
tools = tools.o

exe : all
ctest : xCbtest
ftest : xFbtest
all : xCbtest xFbtest

obj = blacstest.o btprim.o

xCbtest: $(obj) $(tools)
	$(CC) -c $(CDEFS) $(CCFLAGS) -DBTCINTFACE Cbt.c
	$(FCLOADER) $(FCLOADFLAGS) -o $@ $(obj) $(tools) Cbt.o ../../$(SCALAPACKLIB)

xFbtest: $(obj) $(tools)
	$(FCLOADER) $(FCLOADFLAGS) -o $@ $(obj) $(tools) ../../$(SCALAPACKLIB)

#  --------------------------------------------------------------------
#  The files tools.f and blacstest.f are compiled without optimization.
#  Tools.f contains the LAPACK routines slamch and dlamch, which only
#  operate correctly for low-levels of optimization.  Blacstest.f is
#  extremely large, and optimizing it takes a long time.  More
#  importantly, the sun's f77 compiler seems to produce errors in
#  trying to optimize such a large file.  We therefore insist that it
#  also not be optimized.
#  --------------------------------------------------------------------
tools.o : tools.f
	$(FC) $(NOOPT) -c $*.f

blacstest.o : blacstest.f
	$(FC) $(NOOPT) -c $*.f

btprim.o : btprim.f
	$(FC) -c $(FCFLAGS) $*.f

clean :
	rm -f $(obj) tools.o Cbt.o xCbtest xFbtest

.f.o: ; $(FC) -c $(FCFLAGS) $*.f

.c.o:
	$(CC) -c $(CDEFS) $(CCFLAGS) $<