[2143f9]: / HRV.src / Makefile

Download this file

51 lines (36 with data), 1.2 kB

 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
48
49
# file: Makefile Joe Mietus and George Moody Feb 12 2008
# Last revised: Aug 4 2009 (by GBM)
# 'make' description file for the HRV Toolkit
# The WFDB library must be installed before the HRV Toolkit can be compiled.
# Get the WFDB software from http://physionet.org/physiotools/wfdb.shtml .
# The HRV Toolkit will be installed in BINDIR (by default, /usr/bin). If you
# change it, make sure that your PATH includes BINDIR.
BINDIR=/usr/local/bin
# These scripts need a POSIX shell (e.g., sh or bash) in order to run.
SCRIPTS = get_hrv plt_rrs
ALL = filt filtnn hours pwr seconds statnn
all: $(ALL)
# 'make install' copies the HRV toolkit's scripts and binaries to BINDIR.
install:
cp -p $(SCRIPTS) $(ALL) $(BINDIR)
# 'make bin-tarball' creates a tarball of binaries.
bin-tarball: all
mkdir HRV
cp -p $(SCRIPTS) $(ALL) Usages HRV
tar cfvz HRV-`arch`-`uname`.tar.gz HRV
rm -rf HRV
# 'make clean' removes old copies of the executables.
clean:
rm -f $(ALL)
filt : filt.c
$(CC) -O -o $@ filt.c
filtnn : filtnn.c
$(CC) -O -o $@ filtnn.c
hours : hours.c
$(CC) -O -o $@ hours.c
pwr : pwr.c
$(CC) -O -o $@ pwr.c
seconds : seconds.c
$(CC) -O -o $@ seconds.c
statnn : statnn.c
$(CC) -O -o $@ statnn.c -lm