Makefile 878 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
# Makefile for prog/sigver/sousou
#
# evaluate sound wave
#

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} 
LIBSFF=-lf2cstuff -L$(SERVERLIBDIR)
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)

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

sousou: $(OBS)
	$(CC) -o $(LOCBINDIR)/$@ $(OBS) \
        -ltf -lts -ltime $(LIBSFF) \
        $(PGPLOTLIB) $(LINLIB) \
        -L$(LOCLIBDIR) $(F2CLIB) 

docs: $(DOCS)

dep:
	incdep > make.incdep