WFDB Software Package 10.6.2

File: <base>/xml/Makefile.tpl (1,462 bytes)
# file: Makefile.tpl		G. Moody	  22 August 2010
#				Last revised:	   8 March 2017
# This section of the Makefile should not need to be changed.

CFILES = annxml.c heaxml.c xmlann.c xmlhea.c
HFILES = xmlproc.h
MFILES = Makefile
XFILES = annxml heaxml xmlann xmlhea

# General rule for compiling C sources into executable files.  This is
# redundant for most versions of `make', but at least one System V version
# needs it.
	$(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)

# `make all': build applications
all:	$(XFILES)

# `make' or `make install':  build and install applications
install:	all $(DESTDIR)$(BINDIR)

# 'make collect': retrieve the installed applications
	../conf/ $(BINDIR) $(XFILES)


# Create directories for installation if necessary.
	mkdir -p $(DESTDIR)$(BINDIR)

# `make clean':  remove intermediate and backup files
	rm -f $(XFILES) *.o *~

# `make listing':  print a listing of WFDB-XML applications sources

# Rules for compiling WFDB-XML applications that require non-standard options

xmlann:		xmlann.c xmlproc.h
	$(CC) $(CFLAGS) xmlann.c -o $@ $(LDFLAGS) -lexpat

xmlhea:		xmlhea.c xmlproc.h
	$(CC) $(CFLAGS) xmlhea.c -o $@ $(LDFLAGS) -lexpat