Makefile 1.37 KB
Newer Older
thomas.forbriger's avatar
thomas.forbriger committed
1
2
# this is <Makefile>
# ----------------------------------------------------------------------------
thomas.forbriger's avatar
thomas.forbriger committed
3
# $Id$
thomas.forbriger's avatar
thomas.forbriger committed
4
5
6
7
8
9
10
11
12
# 
# Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt) 
# 
# sousou - sound source
# 
# REVISIONS and CHANGES 
#    10/05/2002   V1.0   Thomas Forbriger
# 
# ============================================================================
13
#
thomas.forbriger's avatar
thomas.forbriger committed
14
15
16
17
18
19
20
21
22
23
24
25
26

all:

flist: Makefile $(wildcard *.f *.inc)
	echo $^ | tr ' ' '\n' | sort > $@

.PHONY: edit
edit: flist; vim $<

.PHONY: clean
clean: ; 
	-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
	-/bin/rm -vf flist *.o
27
28
29
30
31
32
33
34
35

LINLIB=-llapex -lblasex
# LINLIB=-lf2cimslmath
BUGGY=
F2CLIB=-lf2c -lm -L${SERVERLIBDIR}
F2CFLAGS=-f -u
PGPLOTLIB=-lf2cpgplot52 -lX11 -L/usr/X11/lib
CC=gcc
CFLAGS=-O2 -I${SERVERINCLUDEDIR} -I${LOCINCLUDEDIR} 
thomas.forbriger's avatar
thomas.forbriger committed
36
37
LIBSFF=-lsff -L$(SERVERLIBDIR)
LIBS=-lsffu -ltime
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
GFLAG=

OBS=sousou.o sousou_readdata.o sousou_skipdata.o sousou_checks.o \
   sousou_prepare.o sousou_writedata.o sousou_analysis.o sousou_writeslow.o

include make.incdep

make.incdep: *.f
	incdep > make.incdep

%.doc: %.f
	extractdoc.tcl $< > $(<:.f=.doc)

.f.o:
	f2c $(F2CFLAGS) $<
	$(CC) $(CFLAGS) $(GFLAG) $(<:.f=.c) -c 
	@rm  $(<:.f=.c)

sousou: $(OBS)
	$(CC) -o $(LOCBINDIR)/$@ $(OBS) \
thomas.forbriger's avatar
thomas.forbriger committed
58
        -ltf -lts $(LIBS) $(LIBSFF) \
59
60
61
62
63
64
65
66
        $(PGPLOTLIB) $(LINLIB) \
        -L$(LOCLIBDIR) $(F2CLIB) 

docs: $(DOCS)

dep:
	incdep > make.incdep

thomas.forbriger's avatar
thomas.forbriger committed
67
68

# ----- END OF Makefile -----