#############################################################################
##                      Setup for building programs                        ##
#############################################################################

AM_CPPFLAGS=-I$(top_srcdir)/src  -I$(top_srcdir)/test

#############################################################################
##                              Testing                                    ##
#############################################################################

noinst_PROGRAMS = burst_szip example

burst_szip_SOURCES = burst_szip.c
burst_szip_LDADD =  ../test/libmcgill.la ../src/libsz.la
burst_szip_DEPENDENCIES = ../test/libmcgill.la ../src/libsz.la


example_SOURCES = example.c
example_LDADD = ../src/libsz.la
example_DEPENDENCIES = ../src/libsz.la

#############################################################################
##                          Testing example                                ##
#############################################################################
check: $(bin_PROGRAMS) 
	./burst_szip -msb 8 8 1024 16 image.8.in
	./example

#############################################################################
##                          And the cleanup                                ##
#############################################################################

DISTCLEANFILES = image.8.in


syntax highlighted by Code2HTML, v. 0.9.1