Makefile 1.03 KB
Newer Older
1
2
# ---------------------------------------
#
thomas.forbriger's avatar
thomas.forbriger committed
3
# $Id: Makefile,v 1.11 2001-08-08 07:37:36 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
8
# 22/01/2001      introduced smoos and did some "tidy up"
#
9
10
11
12
# ---------------------------------------

F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
13
CC=gcc
14
15
16
17
18
19
20
21
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
22
23
24
25
flist: $(wildcard *.f *.inc Makefile); echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
edit: flist; vim $<

26
27
28
clean:
	-/bin/rm *.o *.bak

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

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

thomas.forbriger's avatar
thomas.forbriger committed
38
susei evelo tesiff teswf: %: %.o
39
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsff $(F2CLIB) -L$(LOCLIBDIR)
40
	newprog $@
thomas.forbriger's avatar
thomas.forbriger committed
41
42

smoos dise: %: %.o
43
	$(CC) $(CFLAGS) $< -o $@ -ltf -lsffu -ltime -lsff $(F2CLIB) \
44
           -L$(LOCLIBDIR)
45
46
47
	newprog $@