File: Makefile

package info (click to toggle)
libflame 5.2.0-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 162,092 kB
  • sloc: ansic: 750,080; fortran: 404,344; makefile: 8,136; sh: 5,458; python: 937; pascal: 144; perl: 66
file content (87 lines) | stat: -rw-r--r-- 2,536 bytes parent folder | download | duplicates (10)
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
include ../../../make.inc

#######################################################################
#  This is the makefile to create a library of the least squares
#  routines from LAPACK that have been instrumented to time specific
#  parts of the code and count operations. 
#  The files are organized as follows:
#
#     SLINSRC -- Single precision real instrumented LAPACK routines
#     CLINSRC -- Single precision complex instrumented LAPACK routines
#     DLINSRC -- Double precision real instrumented LAPACK routines
#     ZLINSRC -- Double precision complex instrumented LAPACK routines
#
#  The library can be set up to include routines for any combination
#  of the four precisions.  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.
#  The library is called
#       linsrc.a
#  and is created at the next higher directory level.
#
#  To remove the object files after the library is created, enter
#       make clean
#  On some systems, you can force the source files to be recompiled by
#  entering (for example)
#       make single FRC=FRC
#
#######################################################################

SCAUX = sopla.o sopla2.o

DZAUX = dopla.o dopla2.o
 
SLINSRC = \
   sgels.o  sgelsd.o sgelss.o sgelsx.o sgelsy.o slaic1.o slals0.o \
   slalsa.o slalsd.o

CLINSRC = \
   cgels.o  cgelsd.o cgelss.o cgelsx.o cgelsy.o claic1.o clals0.o \
   clalsa.o clalsd.o

DLINSRC = \
   dgels.o  dgelsd.o dgelss.o dgelsx.o dgelsy.o dlaic1.o dlals0.o \
   dlalsa.o dlalsd.o

ZLINSRC = \
   zgels.o  zgelsd.o zgelss.o zgelsx.o zgelsy.o zlaic1.o zlals0.o \
   zlalsa.o zlalsd.o

all: single complex double complex16

single: $(SLINSRC) $(SCAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(SLINSRC) $(SCAUX)
	$(RANLIB) ../$(LINSRCLIB)

complex: $(CLINSRC) $(SCAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(CLINSRC) $(SCAUX)
	$(RANLIB) ../$(LINSRCLIB)

double: $(DLINSRC) $(DZAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(DLINSRC) $(DZAUX)
	$(RANLIB) ../$(LINSRCLIB)

complex16: $(ZLINSRC) $(DZAUX)
	$(ARCH) $(ARCHFLAGS) ../$(LINSRCLIB) $(ZLINSRC) $(DZAUX)
	$(RANLIB) ../$(LINSRCLIB)

$(SCAUX): $(FRC)
$(DZAUX): $(FRC)
$(SLINSRC): $(FRC)
$(CLINSRC): $(FRC)
$(DLINSRC): $(FRC)
$(ZLINSRC): $(FRC)

FRC:
	@FRC=$(FRC)

clean:
	rm -f *.o

.f.o: 
	$(FORTRAN) -c $(OPTS) $<