Makefile 1.06 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Makefile for prog/invers/fidase
#
# fitting seismogram datasets to one homogeneous one
#

LINLIB=-llapex -lblasex
# LINLIB=-lf2cimslmath
BUGGY=
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
F2CFLAGS=-f -u
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
CC=gcc
CFLAGS=-O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR} 
LIBSFF=-lf2cstuff -L$(SERVERLIBDIR)
GFLAG=

FIDAOBS=fidase.o fidase_readdata.o fidase_skipdata.o fidase_writedata.o \
  fidase_readtaper.o fidase_evaltaper.o fidase_enfit.o fidase_resamp.o

21
-include make.incdep
22
23
24
25
26
27
28
29
30
31
32
33
34
35

%.doc: %.f
	extractdoc.tcl $< > $(<:.f=.doc)

.f.o:
	f2c $(F2CFLAGS) $<
	$(CC) $(CFLAGS) $(GFLAG) $(<:.f=.c) -c 
	@rm  $(<:.f=.c)

clean:
	-/bin/rm *.o *.bak

fidase: $(FIDAOBS)
	$(CC) -o $(LOCBINDIR)/fidase $(FIDAOBS) \
36
        -ltf -lts -lsffu -ltime_trad -lsff \
37
38
39
40
41
42
43
44
        $(PGPLOTLIB) $(LINLIB) \
        -L$(LOCLIBDIR) $(F2CLIB) 

docs: $(DOCS)

make.incdep: *.f
	incdep > make.incdep

thomas.forbriger's avatar
thomas.forbriger committed
45
46
47
48
49
50
51
52
.PHONY: clean edit

flist: Makefile $(FIDAOBS:.o=.f) *.inc
	echo $< > $@
	echo $(FIDAOBS:.o=.f) | tr ' ' '\n' | sort >> $@
	echo *.inc | tr ' ' '\n' | sort >> $@

edit: flist; vim $<