Adding DisEMBL dependency Tisean executable
[jabaws.git] / binaries / src / disembl / Tisean_3.0.1 / source_f / Makefile.in
1 SHELL = /bin/sh
2
3 prefix = @prefix@
4 exec_prefix = @exec_prefix@
5 BINDIR = ${exec_prefix}/@bindir@
6
7 FC = @FC@
8 FFLAGS = @FFLAGS@
9 LDFLAGS = @LDFLAGS@
10 AR = @AR@
11 ARFLAGS = @ARFLAGS@
12 RANLIB = @RANLIB@
13 INSTALL = @INSTALL@
14 LOADLIBES = libtsa.a libsla.a
15 ERRUNIT = @ERRUNIT@
16
17 # list of executables we want to produce
18    BINS = c1 c2naive xc2 \
19           c2d c2g c2t \
20           pc predict stp \
21           lazy project addnoise compare upo upoembed cluster \
22           choose rms notch autocor spectrum wiener1 wiener2 \
23           surrogates endtoend timerev \
24           events intervals spikespec spikeauto \
25           henon ikeda lorenz ar-run xrecur 
26
27 # list of objects to be put in libtsa.a 
28    INC  = readfile.o xreadfile.o \
29           arguments.o commandline.o any_s.o istdio.o help.o verbose.o \
30           d1.o neigh.o normal.o rank.o \
31           nmore.o store_spec.o tospec.o
32
33 all: $(BINS) Randomize
34
35 istdio.o: istdio_temp.f
36         sed "s#ERRUNIT#${ERRUNIT}#" istdio_temp.f > istdio.f
37         $(FC) $(FFLAGS) -c istdio.f -o istdio.o
38
39 $(BINS): libtsa.a libsla.a *.f
40         -$(FC) $(FFLAGS) -o $@ $@.f $(LOADLIBES) $(LDFLAGS)
41
42 libtsa.a: $(INC)
43         $(AR) $(ARFLAGS) libtsa.a $?
44         $(RANLIB) libtsa.a
45
46 libsla.a: slatec/*.f
47         (cd slatec && $(MAKE))
48
49 Randomize: libtsa.a libsla.a
50         -(cd randomize && $(MAKE))
51
52 clean:
53         @rm -f istdio.f
54         @rm -f $(BINS)
55         -(cd randomize && $(MAKE) clean)
56
57 install: $(BINS)
58         -for bin in $(BINS); do $(INSTALL) $$bin $(BINDIR); done
59         -(cd randomize && $(MAKE) $@)
60
61 missing:
62         -@for bin in $(BINS); do \
63            test -z "`$$bin -h 2>&1 | grep Usage`" \
64               && echo   $$bin "(Wuppertal Fortran)" >>  ../missing.log; \
65            $$bin -h 2>&1 | cat >> ../install.log; \
66           done; :
67         -@(cd randomize && $(MAKE) $@)
68
69 uninstall:
70         -@for bin in $(BINS); do rm -f $(BINDIR)/$$bin; done
71         -@(cd randomize && $(MAKE) $@)