# file: Makefile	G. Moody	22 August 2010
#
# 'make' description file to automate building of WFDB-XML converters.
#
# All of the converters require the WFDB library, and those that read
# XML also require libexpat (http://expat.sourceforge.net).
#
# Note that datxml and xmldat don't exist yet!
#
# Customize BINDIR before using this file (by typing 'make' in this
# directory).

BINDIR = ../bin
XFILES = heaxml annxml xmlhea xmlann

install:	$(XFILES)	
	cp -p $(XFILES) $(BINDIR)

heaxml:		heaxml.c
	gcc -o heaxml -O heaxml.c -lwfdb

annxml:		annxml.c
	gcc -o annxml -O annxml.c -lwfdb

datxml:		datxml.c
	gcc -o datxml -O datxml.c -lwfdb

xmlhea:		xmlhea.c xmlproc.h
	gcc -o xmlhea -g xmlhea.c -lwfdb -lexpat

xmlann:		xmlann.c xmlproc.h
	gcc -o xmlann -g xmlann.c -lwfdb -lexpat

xmldat:		xmldat.c xmlproc.h
	gcc -o xmldat -g xmldat.c -lwfdb -lexpat

