Makefile 1.22 KB
Newer Older
1
2
# ---------------------------------------
#
thomas.forbriger's avatar
thomas.forbriger committed
3
# $Id: Makefile,v 1.14 2002-05-24 19:37:41 forbrig 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
19
20
21
22
23
CFLAGS=-O2
F2CFLAGS=-f -u

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

thomas.forbriger's avatar
thomas.forbriger committed
24
25
26
27
flist: $(wildcard *.f *.inc Makefile); echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
edit: flist; vim $<

28
29
30
clean:
	-/bin/rm *.o *.bak

thomas.forbriger's avatar
thomas.forbriger committed
31
32
33
34
35
tsfilt: tsfilt.o
	$(CC) $(CFLAGS) $< -o $@ -lseife -ltf \
        $(F2CLIB) -L$(LOCLIBDIR) -static
	newprog $@

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

thomas.forbriger's avatar
thomas.forbriger committed
41
42
coro xyz2uvw detect: %: %.o
	$(CC) $(CFLAGS) $< -o $@ -lsff $(F2CLIB) -L$(LOCLIBDIR) -ltf
43
44
	newprog $@

thomas.forbriger's avatar
thomas.forbriger committed
45
susei evelo tesiff teswf: %: %.o
46
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsff $(F2CLIB) -L$(LOCLIBDIR)
47
	newprog $@
thomas.forbriger's avatar
thomas.forbriger committed
48

thomas.forbriger's avatar
thomas.forbriger committed
49
hamres siggen smoos dise: %: %.o
50
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsffu -ltime -lsff $(F2CLIB) \
51
           -L$(LOCLIBDIR)
52
53
54
	newprog $@