Debian Codegraph @

netlib-test/lapack-3.4.2/TESTING/MATGEN/Makefile

raw
1 include ../../make.inc
2
3 #######################################################################
4 # This is the makefile to create a library of the test matrix
5 # generators used in LAPACK. The files are organized as follows:
6 #
7 # SCATGEN -- Auxiliary routines called from both REAL and COMPLEX
8 # DZATGEN -- Auxiliary routines called from both DOUBLE PRECISION
9 # and COMPLEX*16
10 # SMATGEN -- Single precision real matrix generation routines
11 # CMATGEN -- Single precision complex matrix generation routines
12 # DMATGEN -- Double precision real matrix generation routines
13 # ZMATGEN -- Double precision complex matrix generation routines
14 #
15 # The library can be set up to include routines for any combination
16 # of the four precisions. To create or add to the library, enter make
17 # followed by one or more of the precisions desired. Some examples:
18 # make single
19 # make single complex
20 # make single double complex complex16
21 # Alternatively, the command
22 # make
23 # without any arguments creates a library of all four precisions.
24 # The library is called
25 # tmglib.a
26 # and is created at the LAPACK directory level.
27 #
28 # To remove the object files after the library is created, enter
29 # make clean
30 # On some systems, you can force the source files to be recompiled by
31 # entering (for example)
32 # make single FRC=FRC
33 #
34 #######################################################################
35
36 SCATGEN = slatm1.o slaran.o slarnd.o
37
38 SMATGEN = slatms.o slatme.o slatmr.o slatmt.o \
39 slagge.o slagsy.o slakf2.o slarge.o slaror.o slarot.o slatm2.o \
40 slatm3.o slatm5.o slatm6.o slatm7.o slahilb.o
41
42 CMATGEN = clatms.o clatme.o clatmr.o clatmt.o \
43 clagge.o claghe.o clagsy.o clakf2.o clarge.o claror.o clarot.o \
44 clatm1.o clarnd.o clatm2.o clatm3.o clatm5.o clatm6.o clahilb.o
45
46 DZATGEN = dlatm1.o dlaran.o dlarnd.o
47
48 DMATGEN = dlatms.o dlatme.o dlatmr.o dlatmt.o \
49 dlagge.o dlagsy.o dlakf2.o dlarge.o dlaror.o dlarot.o dlatm2.o \
50 dlatm3.o dlatm5.o dlatm6.o dlatm7.o dlahilb.o
51
52 ZMATGEN = zlatms.o zlatme.o zlatmr.o zlatmt.o \
53 zlagge.o zlaghe.o zlagsy.o zlakf2.o zlarge.o zlaror.o zlarot.o \
54 zlatm1.o zlarnd.o zlatm2.o zlatm3.o zlatm5.o zlatm6.o zlahilb.o
55
56 all: ../../$(TMGLIB)
57
58 ALLOBJ = $(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) $(ZMATGEN) \
59 $(DZATGEN)
60
61 ../../$(TMGLIB): $(ALLOBJ)
62 $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
63 $(RANLIB) $@
64
65 single: $(SMATGEN) $(SCATGEN)
66 $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(SMATGEN) $(SCATGEN)
67 $(RANLIB) ../../$(TMGLIB)
68
69 complex: $(CMATGEN) $(SCATGEN)
70 $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(CMATGEN) $(SCATGEN)
71 $(RANLIB) ../../$(TMGLIB)
72
73 double: $(DMATGEN) $(DZATGEN)
74 $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(DMATGEN) $(DZATGEN)
75 $(RANLIB) ../../$(TMGLIB)
76
77 complex16: $(ZMATGEN) $(DZATGEN)
78 $(ARCH) $(ARCHFLAGS) ../../$(TMGLIB) $(ZMATGEN) $(DZATGEN)
79 $(RANLIB) ../../$(TMGLIB)
80
81 $(SCATGEN): $(FRC)
82 $(SMATGEN): $(FRC)
83 $(CMATGEN): $(FRC)
84 $(DZATGEN): $(FRC)
85 $(DMATGEN): $(FRC)
86 $(ZMATGEN): $(FRC)
87
88 FRC:
89 @FRC=$(FRC)
90
91 clean:
92 rm -f *.o
93
94 .f.o:
95 $(FORTRAN) $(OPTS) -c $< -o $@
96
97 slaran.o: slaran.f ; $(FORTRAN) $(NOOPT) -c $<
98 dlaran.o: dlaran.f ; $(FORTRAN) $(NOOPT) -c $<