Makefile 1.95 KB
Newer Older
1
2
# ---------------------------------------
#
thomas.forbriger's avatar
thomas.forbriger committed
3
# $Id: Makefile,v 1.25 2005-03-15 18:36:20 tforb Exp $
thomas.forbriger's avatar
thomas.forbriger committed
4
5
6
#
# Makefile fuer tools /src/ts/wf
#
thomas.forbriger's avatar
thomas.forbriger committed
7
# 22/01/2001      introduced smoos and did some "tidy up"
thomas.forbriger's avatar
thomas.forbriger committed
8
# 24/10/2001      introduced siggen
thomas.forbriger's avatar
thomas.forbriger committed
9
# 24/05/2001      introduced tsfilt
thomas.forbriger's avatar
thomas.forbriger committed
10
#
11
12
13
14
# ---------------------------------------

F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
15
CC=gcc
16
17
18
CFLAGS=-O2
F2CFLAGS=-f -u

thomas.forbriger's avatar
thomas.forbriger committed
19
20
21
22
23
24
FLAGS=
CXXFLAGS=-fhonor-std -Wall $(FLAGS)
CXXFLAGS=-Wall $(FLAGS)
LDFLAGS=-L$(LOCLIBDIR)
CPPFLAGS=-I$(LOCINCLUDEDIR) $(FLAGS)

25
26
27
28
29
.f.o:
	f2c $(F2CFLAGS) $<
	gcc $(CFLAGS) $(<:.f=.c) -c -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR}
	@rm  $(<:.f=.c)

thomas.forbriger's avatar
thomas.forbriger committed
30
flist: $(wildcard *.f *.inc Makefile *.cc); echo $^ | tr ' ' '\n' | sort > $@
thomas.forbriger's avatar
thomas.forbriger committed
31
32
33
.PHONY: edit
edit: flist; vim $<

34
35
36
clean:
	-/bin/rm *.o *.bak

thomas.forbriger's avatar
thomas.forbriger committed
37
38
39
40
41
tsfilt: tsfilt.o
	$(CC) $(CFLAGS) $< -o $@ -lseife -ltf \
        $(F2CLIB) -L$(LOCLIBDIR) -static
	newprog $@

thomas.forbriger's avatar
thomas.forbriger committed
42
stufi: stufi.o
43
	$(CC) $(CFLAGS) $< -o $@ -lseife -ltf -lsff \
44
        $(F2CLIB) -L$(LOCLIBDIR) -static
thomas.forbriger's avatar
thomas.forbriger committed
45
46
	newprog $@

thomas.forbriger's avatar
thomas.forbriger committed
47
rotate coro xyz2uvw detect: %: %.o
thomas.forbriger's avatar
thomas.forbriger committed
48
	$(CC) $(CFLAGS) $< -o $@ -lsff $(F2CLIB) -L$(LOCLIBDIR) -ltf
49
50
	newprog $@

thomas.forbriger's avatar
thomas.forbriger committed
51
susei evelo tesiff teswf: %: %.o
52
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsff $(F2CLIB) -L$(LOCLIBDIR)
53
	newprog $@
thomas.forbriger's avatar
thomas.forbriger committed
54

thomas.forbriger's avatar
thomas.forbriger committed
55
phasedsignals hamres siggen smoos dise: %: %.o
56
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsffu -ltime -lsff $(F2CLIB) \
57
           -L$(LOCLIBDIR)
58
59
	newprog $@

thomas.forbriger's avatar
thomas.forbriger committed
60
gatherdiff autocorr cross tidofi fredofi sigfit: %: %.o
61
	$(CXX) -o $@ $^ -I$(LOCINCLUDEDIR) -lsffxx -llinearxx -lgsexx -laff \
62
63
                  -ltsxx -ldatreadxx -ltfxx -ltime++ \
                  -llapack -lblas -lg2c -lm\
64
                  -L$(LOCLIBDIR) $(CXXFLAGS) $(FLAGS)
thomas.forbriger's avatar
thomas.forbriger committed
65
	newprog $@
66

thomas.forbriger's avatar
thomas.forbriger committed
67
phasetest%.sff: phasedsignals
thomas.forbriger's avatar
works    
thomas.forbriger committed
68
69
	phasedsignals $@ -v -o -p $(patsubst phasetest%.sff,%,$@) -n 16 \
        -t 10. -b 3. -s 0. -O 2 -N 6 -h 0.5
thomas.forbriger's avatar
thomas.forbriger committed
70
71
72
73
74
75
76
P%.sff: %.sff; evelo $< $@ -P

%.s.ps: %.sff; splot $< 0. $@/ps 1.e-2

RVAL=0.
%.ps: %.sff; stuplo -d $@/ps -R $(RVAL) $<
%.psp: %.ps; gv $<; /bin/rm -fv $<