Makefile 1.54 KB
Newer Older
1
2
# ---------------------------------------
#
thomas.forbriger's avatar
thomas.forbriger committed
3
# $Header: /home/tforb/svnbuild/cvssource/CVS/thof/src/ts/wf/Makefile,v 1.9 2001-01-18 15:58:25 forbrig Exp $
thomas.forbriger's avatar
thomas.forbriger committed
4
5
6
#
# Makefile fuer tools /src/ts/wf
#
7
8
9
10
# ---------------------------------------

F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
11
CC=gcc
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CFLAGS=-O2
F2CFLAGS=-f -u

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

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

junk: junk.o
	gcc junk.o -o junk $(F2CLIB)

thomas.forbriger's avatar
thomas.forbriger committed
26
stufi: stufi.o
27
	$(CC) $(CFLAGS) $< -o $@ -lseife -ltf -lsff \
28
        $(F2CLIB) -L$(LOCLIBDIR) -static
thomas.forbriger's avatar
thomas.forbriger committed
29
30
	newprog $@

thomas.forbriger's avatar
thomas.forbriger committed
31
32
coro xyz2uvw detect: %: %.o
	$(CC) $(CFLAGS) $< -o $@ -lsff $(F2CLIB) -L$(LOCLIBDIR) -ltf
33
34
	newprog $@

35
lincomb: lincomb.o
36
	$(CC) $(CFLAGS) lincomb.o -o lincomb -lsff $(F2CLIB) -L$(LOCLIBDIR)
37
38
	newprog lincomb
lincomb2: lincomb2.o
39
	$(CC) $(CFLAGS) lincomb2.o -o lincomb2 -lsff $(F2CLIB) -L$(LOCLIBDIR)
40
41
	newprog lincomb2
lic: lic.o
42
	$(CC) $(CFLAGS) lic.o -o lic -lsff $(F2CLIB) -L$(LOCLIBDIR)
43
44
	newprog lic
seda: seda.o
45
	$(CC) $(CFLAGS) seda.o -o seda -lsff $(F2CLIB) -L$(LOCLIBDIR)
46
47
	newprog seda
mima: mima.o
48
	$(CC) $(CFLAGS) mima.o -o mima -lsff $(F2CLIB) -L$(LOCLIBDIR)
49
50
	newprog mima
fesig: fesig.o
51
	$(CC) $(CFLAGS) fesig.o -o fesig -ltf -lsff \
52
53
        $(PGPLOTLIB) $(F2CLIB) -L$(LOCLIBDIR)
	newprog fesig
54

thomas.forbriger's avatar
thomas.forbriger committed
55
susei evelo tesiff teswf: %: %.o
56
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsff $(F2CLIB) -L$(LOCLIBDIR)
57
	newprog $@
58
dise: %: %.o
59
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsffu -ltime -lsff $(F2CLIB) \
60
           -L$(LOCLIBDIR)
61
62
63
	newprog $@