1
2#---------------------------------------------------------------------
3# This file is a Makefile (or its template) for the arpack directory
4# of Algae.  It is run by the Makefile in the parent directory.
5#---------------------------------------------------------------------
6
7.SUFFIXES:
8.SUFFIXES: .f .o
9
10srcdir = @srcdir@
11VPATH = @srcdir@
12
13SHELL=/bin/sh
14
15# Tools
16
17F77	= @F77@
18FC	= $(F77)
19RANLIB	= @RANLIB@
20AR	= ar
21
22# Flags.
23
24FFLAGS   = @FFLAGS@
25ARFLAGS  = @ARFLAGS@
26
27# Some bozos hardwire f77 options in their builtin make rules.  If
28# we're using a different Fortran compiler (say, if it's a script that
29# calls f2c), then you may need to use the following rule.
30
31@F77_RULE@.f.o:
32@F77_RULE@	$(FC) $(FFLAGS) -c $<
33
34# Source files.
35
36SRC = dgetv0.f dlaqrb.f dnaitr.f \
37dnapps.f dnaup2.f dnaupd.f dnconv.f dneigh.f dneupd.f dngets.f \
38dsaitr.f dsapps.f dsaup2.f dsaupd.f dsconv.f dseigt.f dsesrt.f dseupd.f \
39dsgets.f dsortc.f dsortr.f dstatn.f dstats.f dstqrb.f zgetv0.f znaitr.f \
40znapps.f znaup2.f znaupd.f zneigh.f zneupd.f zngets.f zsortc.f zstatn.f \
41ivout.f dvout.f dmout.f zvout.f zmout.f
42
43# Include files.
44
45INC = debug.h stat.h
46
47# Objects.
48
49OBJ = dgetv0.o dlaqrb.o dnaitr.o \
50dnapps.o dnaup2.o dnaupd.o dnconv.o dneigh.o dneupd.o dngets.o \
51dsaitr.o dsapps.o dsaup2.o dsaupd.o dsconv.o dseigt.o dsesrt.o dseupd.o \
52dsgets.o dsortc.o dsortr.o dstatn.o dstats.o dstqrb.o zgetv0.o znaitr.o \
53znapps.o znaup2.o znaupd.o zneigh.o zneupd.o zngets.o zsortc.o zstatn.o	\
54ivout.o dvout.o dmout.o zvout.o zmout.o
55
56# ============================ Targets ============================
57
58all: libarpack.a
59.PHONY:	all
60
61libarpack.a: $(OBJ)
62	$(AR) $(ARFLAGS) cr libarpack.a $(OBJ)
63	$(RANLIB) libarpack.a
64
65Makefile: Makefile.in ../config.status
66	cd ..; ./config.status
67
68tags:
69	etags $(SRC) $(INC)
70.PHONY: tags
71
72# ========================== Distribution =========================
73
74# Files in the source distribution from this directory.
75DISTFILES = $(SRC) $(INC) Makefile.in README
76
77# Files included in the binary distribution from this directory.
78# Makefile isn't specified here because it's handled separately.
79BINDISTFILES =
80
81dist:
82	for file in $(DISTFILES); do \
83	  ln $$file $(distdir) > /dev/null 2>&1 || cp $$file $(distdir); \
84	done
85.PHONY:	dist
86
87binaries:
88.PHONY:	binaries
89
90# ========================== Cleaning Up ==========================
91
92.PHONY:	clean mostlyclean distclean maintainer-clean
93
94clean mostlyclean distclean maintainer-clean::
95	rm -f *.o core *.a
96
97distclean maintainer-clean::
98	rm -f Makefile TAGS
99
100maintainer-clean::
101
102# ========================== Installation ==========================
103
104install: all
105.PHONY:	install
106
107uninstall:
108.PHONY:	uninstall
109