Debian Codegraph @

TESTING/MATGEN/Makefile

raw
1 #######################################################################
2 # This is the makefile to create a library of the test matrix
3 # generators used in LAPACK. The files are organized as follows:
4 #
5 # SCATGEN -- Auxiliary routines called from single precision
6 # DZATGEN -- Auxiliary routines called from double precision
7 # SMATGEN -- Single precision real matrix generation routines
8 # CMATGEN -- Single precision complex matrix generation routines
9 # DMATGEN -- Double precision real matrix generation routines
10 # ZMATGEN -- Double precision complex matrix generation routines
11 #
12 # The library can be set up to include routines for any combination
13 # of the four precisions. To create or add to the library, enter make
14 # followed by one or more of the precisions desired. Some examples:
15 # make single
16 # make single complex
17 # make single double complex complex16
18 # Alternatively, the command
19 # make
20 # without any arguments creates a library of all four precisions.
21 # The library is called
22 # tmglib.a
23 # and is created at the LAPACK directory level.
24 #
25 # To remove the object files after the library is created, enter
26 # make cleanobj
27 # On some systems, you can force the source files to be recompiled by
28 # entering (for example)
29 # make single FRC=FRC
30 #
31 #######################################################################
32
33 TOPSRCDIR = ../..
34 include $(TOPSRCDIR)/make.inc
35
36 SCATGEN = slatm1.o slatm7.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 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 dlatm7.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 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 .PHONY: all
57 all: $(TMGLIB)
58
59 ALLOBJ = $(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) $(ZMATGEN) \
60 $(DZATGEN)
61
62 $(TMGLIB): $(ALLOBJ)
63 $(AR) $(ARFLAGS) $@ $^
64 $(RANLIB) $@
65
66 .PHONY: single complex double complex16
67 single: $(SMATGEN) $(SCATGEN)
68 $(AR) $(ARFLAGS) $(TMGLIB) $^
69 $(RANLIB) $(TMGLIB)
70
71 complex: $(CMATGEN) $(SCATGEN)
72 $(AR) $(ARFLAGS) $(TMGLIB) $^
73 $(RANLIB) $(TMGLIB)
74
75 double: $(DMATGEN) $(DZATGEN)
76 $(AR) $(ARFLAGS) $(TMGLIB) $^
77 $(RANLIB) $(TMGLIB)
78
79 complex16: $(ZMATGEN) $(DZATGEN)
80 $(AR) $(ARFLAGS) $(TMGLIB) $^
81 $(RANLIB) $(TMGLIB)
82
83 ifdef FRC
84 $(SCATGEN): $(FRC)
85 $(SMATGEN): $(FRC)
86 $(CMATGEN): $(FRC)
87 $(DZATGEN): $(FRC)
88 $(DMATGEN): $(FRC)
89 $(ZMATGEN): $(FRC)
90
91 FRC:
92 @FRC=$(FRC)
93 endif
94
95 .PHONY: clean cleanobj cleanlib
96 clean: cleanobj cleanlib
97 cleanobj:
98 rm -f *.o
99 cleanlib:
100 rm -f $(TMGLIB)
101
102 slaran.o: slaran.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
103 dlaran.o: dlaran.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<