summaryrefslogtreecommitdiff
path: root/makefile
blob: 643f81bd4513d6a3c388e816676d9570d618a0b0 (plain)
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
148
149
150
151
152
153
#-----------------------------------------------------------------------
#                     S P A R S K I T  makefile 
#-----------------------------------------------------------------------
#
# There are three types of source files in SPARSKIT:
# 1. library source files
# 2. non-library and unsupported source files
# 3. test programs
#
# Simply type "make" to make the SPARSKIT library.
#
# "make all" will additionally make all the unsupported objects.
#
# To make the test programs, use the makefiles in each subdirectory,
# or see the dotests script.
# There are no references to test programs in this makefile.
# Some test programs use the non-library objects from other directories,
# so do a "make all" before making test programs.
#
# Last Updated:  May 9, 1994.

SHELL = /bin/sh
F77 = f77 
# F77 = f77 
# AR = ar rcv 
AR = ar -rcv 
# OPT = -c 
# OPT = -c -static -64 -mips4 -O3 -r10000
OPT = -c -O

# Cray options
#F77 = cf77
#AR = bld rv
#OPT = -c -Wf"-dp" 

#
# library objects
#
OBJ =	BLASSM/blassm.o		\
	BLASSM/matvec.o		\
	FORMATS/formats.o	\
	FORMATS/unary.o		\
	INFO/infofun.o		\
	INOUT/inout.o		\
	ITSOL/ilut.o		\
	ITSOL/iters.o		\
	MATGEN/FDIF/genmat.o	\
	MATGEN/FEM/elmtlib2.o	\
	MATGEN/FEM/femgen.o	\
	MATGEN/FEM/meshes.o	\
	MATGEN/MISC/sobel.o	\
	MATGEN/MISC/zlatev.o	\
	ORDERINGS/ccn.o		\
	ORDERINGS/color.o	\
	ORDERINGS/dsepart.o

#
# non-library and unsupported objects
#
OBJ2 =	ITSOL/itaux.o		\
	MATGEN/FDIF/functns.o	\
	MATGEN/FEM/functns2.o	\
	UNSUPP/BLAS1/blas1.o	\
	UNSUPP/MATEXP/exppro.o	\
	UNSUPP/MATEXP/phipro.o	\
	UNSUPP/PLOTS/psgrd.o	\
	UNSUPP/PLOTS/texgrid1.o	\
	UNSUPP/PLOTS/texplt1.o

DIRS =	.			\
	BLASSM			\
	FORMATS			\
	INFO			\
	INOUT			\
	ITSOL			\
	MATGEN/FDIF		\
	MATGEN/FEM		\
	MATGEN/MISC		\
	ORDERINGS		\
	UNSUPP/BLAS1		\
	UNSUPP/MATEXP		\
	UNSUPP/PLOTS

lib libskit.a: $(OBJ) 
	 $(AR) libskit.a  $(OBJ) 
##	 ranlib libskit.a

# do not ranlib on some architectures

clean: 
	@for dir in $(DIRS) ;\
          do \
          echo cleaning $$dir ;\
          (cd $$dir; rm -f *~ *.o *.ex .,* fort.* ftn?? *.mat *.pic *.ps *.trace core) ;\
          done

tarit: 
	(cd ..; tar cvf - SPARSKIT2 | gzip -c > SPARSKIT2.tar.gz) 

all: $(OBJ) $(OBJ2) libskit.a

BLASSM/blassm.o: BLASSM/blassm.f
	(cd BLASSM ; $(F77)  $(OPT) blassm.f)
BLASSM/matvec.o: BLASSM/matvec.f
	(cd BLASSM ; $(F77)  $(OPT) matvec.f)
FORMATS/formats.o: FORMATS/formats.f
	(cd FORMATS ; $(F77)  $(OPT) formats.f)
FORMATS/unary.o: FORMATS/unary.f
	(cd FORMATS ; $(F77)  $(OPT) unary.f)
INFO/infofun.o: INFO/infofun.f
	(cd INFO ; $(F77)  $(OPT) infofun.f)
INOUT/inout.o: INOUT/inout.f
	(cd INOUT; $(F77)  $(OPT) inout.f)
ITSOL/ilut.o: ITSOL/ilut.f
	(cd ITSOL; $(F77)  $(OPT) ilut.f)
ITSOL/iters.o: ITSOL/iters.f
	(cd ITSOL; $(F77)  $(OPT) iters.f)
ITSOL/itaux.o: ITSOL/itaux.f
	(cd ITSOL; $(F77)  $(OPT) itaux.f)
MATGEN/FDIF/genmat.o: MATGEN/FDIF/genmat.f
	(cd MATGEN/FDIF ; $(F77)  $(OPT) genmat.f)
MATGEN/FDIF/functns.o: MATGEN/FDIF/functns.f
	(cd MATGEN/FDIF ; $(F77)  $(OPT) functns.f)
MATGEN/FEM/elmtlib2.o: MATGEN/FEM/elmtlib2.f
	(cd MATGEN/FEM ; $(F77)  $(OPT) elmtlib2.f)
MATGEN/FEM/femgen.o: MATGEN/FEM/femgen.f
	(cd MATGEN/FEM ; $(F77)  $(OPT) femgen.f)
MATGEN/FEM/functns2.o : MATGEN/FEM/functns2.f 
	(cd MATGEN/FEM ; $(F77)  $(OPT) functns2.f)
MATGEN/FEM/meshes.o: MATGEN/FEM/meshes.f
	(cd MATGEN/FEM ; $(F77)  $(OPT) meshes.f)
MATGEN/MISC/sobel.o: MATGEN/MISC/sobel.f
	(cd MATGEN/MISC ; $(F77)  $(OPT) sobel.f)
MATGEN/MISC/zlatev.o: MATGEN/MISC/zlatev.f
	(cd MATGEN/MISC ; $(F77)  $(OPT) zlatev.f)
ORDERINGS/ccn.o: ORDERINGS/ccn.f
	(cd ORDERINGS ; $(F77)  $(OPT) ccn.f)
ORDERINGS/color.o: ORDERINGS/color.f
	(cd ORDERINGS ; $(F77)  $(OPT) color.f)
ORDERINGS/dsepart.o: ORDERINGS/dsepart.f
	(cd ORDERINGS ; $(F77)  $(OPT) dsepart.f)
UNSUPP/BLAS1/blas1.o: UNSUPP/BLAS1/blas1.f
	(cd UNSUPP/BLAS1 ; $(F77)  $(OPT) blas1.f)
UNSUPP/MATEXP/exppro.o: UNSUPP/MATEXP/exppro.f
	(cd UNSUPP/MATEXP ; $(F77)  $(OPT) exppro.f)
UNSUPP/MATEXP/phipro.o: UNSUPP/MATEXP/phipro.f
	(cd UNSUPP/MATEXP ; $(F77)  $(OPT) phipro.f)
UNSUPP/PLOTS/psgrd.o : UNSUPP/PLOTS/psgrd.f 
	(cd UNSUPP/PLOTS ; $(F77) $(OPT) psgrd.f)
UNSUPP/PLOTS/texgrid1.o : UNSUPP/PLOTS/texgrid1.f 
	(cd UNSUPP/PLOTS ; $(F77) $(OPT) texgrid1.f)
UNSUPP/PLOTS/texplt1.o : UNSUPP/PLOTS/texplt1.f 
	(cd UNSUPP/PLOTS ; $(F77) $(OPT) texplt1.f)