File: Makefile

package info (click to toggle)
scalapack 1.7.4-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 34,004 kB
  • ctags: 30,444
  • sloc: fortran: 310,201; ansic: 64,027; makefile: 1,838; sh: 4
file content (147 lines) | stat: -rw-r--r-- 5,270 bytes parent folder | download | duplicates (8)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
############################################################################
#
#  Program:         PBLAS -- (version 2.0)
#
#  Module:          Makefile
#
#  Purpose:         PTOOLS makefile
#
#  Creation date:   April 1, 1998
#
#  Modified:        February 15, 2000
#
#  Send bug reports, comments or suggestions to scalapack@cs.utk.edu
#
############################################################################

include ../../../SLmake.inc

############################################################################
#
#  This is the makefile to create a library for the PBLAS F77 tools.
#  The files are grouped as follows:
#
#     ALLTOOLS -- Auxiliary routines for Level 1, 2 and 3 PBLAS
#
#       STOOLS -- Single precision real PBLAS Level F77 tools routines
#       CTOOLS -- Single precision complex PBLAS Level F77 tools routines
#       DTOOLS -- Double precision real PBLAS Level F77 tools routines
#       ZTOOLS -- Double precision complex PBLAS Level F77 tools routines
#
#  The library can be set up to include routines for any combination
#  of the four precisions.  First, modify the ../../../SLmake.inc file
#  definitions to match your compiler and the options to be used.
#  Then to create or add to the library, enter make followed by one or
#  more of the precisions desired.  Some examples:
#       make single
#       make single complex
#       make single double complex complex16
#  Alternatively, the command
#       make
#  without any arguments creates a library of all four precisions.
#
#  To remove the object files after the library is created, enter
#       make clean
#  To force the source files to be recompiled, enter, for example,
#       make single FRC=FRC
#
############################################################################

all: single double complex complex16

#---------------------------------------------------------------------------
#  The following line defines auxiliary routines needed by the PBLAS tools
#---------------------------------------------------------------------------

ALLCTOOLS = \
    PB_CGatherV.o    PB_CInV.o        PB_CInV2.o       PB_CInOutV.o     \
    PB_CInOutV2.o    PB_COutV.o       PB_CScatterV.o   PB_CVMinit.o     \
    PB_CVMloc.o      PB_CVMnpq.o      PB_CVMpack.o     PB_CVMswp.o      \
    PB_CVMupdate.o   PB_CVMcontig.o   PB_Cabort.o      PB_Cainfog2l.o   \
    PB_Cbinfo.o      PB_Cchkmat.o     PB_Cchkvec.o     PB_Cconjg.o      \
    PB_Cgetbuf.o     PB_Cinfog2l.o    PB_Citypeset.o   PB_Cgcd.o        \
    PB_Clcm.o        PB_Cmalloc.o     PB_Cnumroc.o     PB_Cg2lrem.o     \
    PB_Cindxg2p.o    PB_Cnnxtroc.o    PB_Cnpreroc.o    PB_CpswapNN.o    \
    PB_CpswapND.o    PB_Cpdot11.o     PB_CpdotNN.o     PB_CpdotND.o     \
    PB_CpaxpbyNN.o   PB_CpaxpbyND.o   PB_CpaxpbyDN.o   PB_Cpaxpby.o     \
    PB_CpgemmBC.o    PB_CpgemmAC.o    PB_CpgemmAB.o    PB_Cplaprnt.o    \
    PB_Cplapad.o     PB_Cplapd2.o     PB_Cplascal.o    PB_Cplasca2.o    \
    PB_Cplacnjg.o    PB_Cpsym.o       PB_CpsymmAB.o    PB_CpsymmBC.o    \
    PB_Cpsyr.o       PB_CpsyrkA.o     PB_CpsyrkAC.o    PB_Cpsyr2.o      \
    PB_Cpsyr2kA.o    PB_Cpsyr2kAC.o   PB_Cptrm.o       PB_Cpgeadd.o     \
    PB_Cptradd.o     PB_Cptran.o      PB_CptrmmAB.o    PB_CptrmmB.o     \
    PB_Cptrsm.o      PB_CptrsmAB.o    PB_CptrsmAB0.o   PB_CptrsmAB1.o   \
    PB_CptrsmB.o     PB_Cptrsv.o      PB_Ctop.o        PB_Ctzahemv.o    \
    PB_Ctzasymv.o    PB_Ctzatrmv.o    PB_Ctzhemm.o     PB_Ctzhemv.o     \
    PB_Ctzher.o      PB_Ctzherk.o     PB_Ctzher2.o     PB_Ctzher2k.o    \
    PB_Ctzsymm.o     PB_Ctzsymv.o     PB_Ctzsyr.o      PB_Ctzsyrk.o     \
    PB_Ctzsyr2.o     PB_Ctzsyr2k.o    PB_Ctztrmm.o     PB_Ctztrmv.o     \
    PB_Cwarn.o       PB_freebuf_.o    PB_topget_.o     PB_topset_.o     \
    PB_Cdescset.o    PB_Cdescribe.o   PB_CargFtoC.o    PB_Cfirstnb.o    \
    PB_Clastnb.o     PB_Cspan.o

#---------------------------------------------------------------------------

ALLTOOLS = $(ALLCTOOLS)

$(ALLTOOLS): $(FRC)

#---------------------------------------------------------------------------
#  The C PBLAS tools
#---------------------------------------------------------------------------

SCTOOLS = \
    PB_Cstypeset.o

DCTOOLS = \
    PB_Cdtypeset.o

CCTOOLS = \
    PB_Cctypeset.o

ZCTOOLS = \
    PB_Cztypeset.o

#---------------------------------------------------------------------------

STOOLS = $(SCTOOLS)
CTOOLS = $(CCTOOLS) $(SCTOOLS)
DTOOLS = $(DCTOOLS)
ZTOOLS = $(ZCTOOLS) $(DCTOOLS)

$(STOOLS): $(FRC)
$(CTOOLS): $(FRC)
$(DTOOLS): $(FRC)
$(ZTOOLS): $(FRC)

#---------------------------------------------------------------------------

SPTOOLS = $(ALLTOOLS) $(STOOLS)
CPTOOLS = $(ALLTOOLS) $(CTOOLS)
DPTOOLS = $(ALLTOOLS) $(DTOOLS)
ZPTOOLS = $(ALLTOOLS) $(ZTOOLS)

single: $(SPTOOLS)
	$(ARCH) $(ARCHFLAGS) $(SCALAPACKLIB) $(SPTOOLS)
	$(RANLIB) $(SCALAPACKLIB)

complex: $(CPTOOLS)
	$(ARCH) $(ARCHFLAGS) $(SCALAPACKLIB) $(CPTOOLS)
	$(RANLIB) $(SCALAPACKLIB)

double: $(DPTOOLS)
	$(ARCH) $(ARCHFLAGS) $(SCALAPACKLIB) $(DPTOOLS)
	$(RANLIB) $(SCALAPACKLIB)

complex16: $(ZPTOOLS)
	$(ARCH) $(ARCHFLAGS) $(SCALAPACKLIB) $(ZPTOOLS)
	$(RANLIB) $(SCALAPACKLIB)

FRC:
	@FRC=$(FRC)

clean:
	rm -f *.o

.f.o : ; $(F77) -c $(F77FLAGS) $*.f
.c.o : ; $(CC) -c $(CCFLAGS) $(CDEFS) $*.c