# file: Makefile	G. Moody	10 April 2003
#
# make description file for compiling easytest & bxbep using gcc
#
# Install the WFDB package (http://www.physionet.org/physiotools/wfdb.shtml)
# before attempting to compile these programs.
#
# To compile these programs, just type 'make' at a command prompt while in
# this directory.  This has been tested under GNU/Linux and MS-Windows/Cygwin,
# and it should also work under MacOS/X (Darwin) and all versions of Unix.
#
# See '00README' in this directory for further information.

# CC is the name of your ANSI/ISO C compiler (might be 'cc' on some platforms).
CC = gcc -g



TESTONERECOBJS= testonerecord.o mybdac.o classify.o rythmchk.o noisechk.o match.o postclas.o analbeat.o qrsfilt.o ourqrsdet2.o

all: testonerecord

testonerecord : $(TESTONERECOBJS)
	gcc $(TESTONERECOBJS) -o testonerecord -lwfdb -lm

mybdac.o: mybdac.c bdac.h qrsdet.h
	$(CC) -c mybdac.c

classify.o: classify.c qrsdet.h bdac.h match.h rythmchk.h analbeat.h \
 postclas.h
	$(CC) -c classify.c

rythmchk.o: rythmchk.c qrsdet.h
	$(CC) -c rythmchk.c

noisechk.o: noisechk.c qrsdet.h
	$(CC) -c noisechk.c

match.o: match.c bdac.h
	$(CC) -c match.c

postclas.o:	postclas.c bdac.h
	$(CC) -c postclas.c

analbeat.o:	analbeat.c bdac.h
	$(CC) -c analbeat.c

qrsfilt.o:	qrsfilt.c qrsdet.h
	$(CC) -c qrsfilt.c

ourqrsdet2.o:	ourqrsdet2.c qrsdet.h
	$(CC) -c ourqrsdet2.c

testonerecord.o : testonerecord.c qrsdet.h
	gcc -g -c testonerecord.c


clean:
	rm -f *.o *~ testonerecord
