Makefile 1.55 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.4 2000-04-17 21:14:51 thof 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
28
	$(CC) $(CFLAGS) $< -o $@ -lseife -ltf -lf2cstuff \
        $(F2CLIB) -L$(LOCLIBDIR) -static
thomas.forbriger's avatar
thomas.forbriger committed
29
30
	newprog $@

31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
detect: detect.o
	$(CC) $(CFLAGS) detect.o -o detect -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog detect
lincomb: lincomb.o
	$(CC) $(CFLAGS) lincomb.o -o lincomb -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog lincomb
lincomb2: lincomb2.o
	$(CC) $(CFLAGS) lincomb2.o -o lincomb2 -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog lincomb2
lic: lic.o
	$(CC) $(CFLAGS) lic.o -o lic -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog lic
seda: seda.o
	$(CC) $(CFLAGS) seda.o -o seda -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog seda
mima: mima.o
	$(CC) $(CFLAGS) mima.o -o mima -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog mima
fesig: fesig.o
	$(CC) $(CFLAGS) fesig.o -o fesig -ltf -lf2cstuff \
        $(PGPLOTLIB) $(F2CLIB) -L$(LOCLIBDIR)
	newprog fesig
thomas.forbriger's avatar
thomas.forbriger committed
53
tesiff teswf: %: %.o
54
55
56
57
58
59
60
	$(CC) $(CFLAGS) $< -o $@ -ltf -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog $@
evelo: evelo.o
	$(CC) $(CFLAGS) $< -o $@ -ltf -lf2cstuff $(F2CLIB) -L$(LOCLIBDIR)
	newprog $@