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 50 51 52 53
|
#############################################################################
## Setup for building programs ##
#############################################################################
include $(top_srcdir)/config/commence.am
## Setup the different includes and preprocessor #defines we need.
hdiff_INCLUDES=-I$(top_srcdir)/hdf/src \
-I$(top_srcdir)/mfhdf/libsrc \
-I$(top_srcdir)/mfhdf/util \
-I$(top_builddir)/mfhdf/libsrc
DEFINES=-DHDF
AM_CPPFLAGS=$(hdiff_INCLUDES) $(DEFINES)
## Add hdiff specific linker flags here
hdiff_LDFLAGS = $(LT_STATIC_EXEC) $(AM_LDFLAGS)
#############################################################################
## Programs to build ##
#############################################################################
bin_PROGRAMS = hdiff
## Information for building the "hdiff" program
hdiff_SOURCES = hdiff.c hdiff_array.c hdiff_gr.c hdiff_list.c hdiff_main.c \
hdiff_mattbl.c hdiff_gattr.c hdiff_misc.c hdiff_sds.c \
hdiff_table.c hdiff_vs.c hdiff_dim.c $(top_srcdir)/mfhdf/util/h4getopt.c
hdiff_LDADD = $(LIBMFHDF) $(LIBHDF) -lm
hdiff_DEPENDENCIES = $(LIBMFHDF) $(LIBHDF)
#############################################################################
## Testing ##
#############################################################################
TEST_PROG = hdifftst
TEST_SCRIPT = testhdiff.sh
check_SCRIPTS = testhdiff.sh
noinst_PROGRAMS = hdifftst
hdifftst_SOURCES = hdifftst.c
hdifftst_LDADD = $(LIBMFHDF) $(LIBHDF)
hdifftst_DEPENDENCIES = $(LIBMFHDF) $(LIBHDF)
#############################################################################
## And the cleanup ##
#############################################################################
CHECK_CLEANFILES += hdifftst1.hdf hdifftst2.hdf hdifftst3.hdf hdifftst4.hdf hdifftst5.hdf hdifftst6.hdf hdifftst7.hdf
DISTCLEANFILES =
include $(top_srcdir)/config/conclude.am
|