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 54 55 56 57 58 59 60
|
#############################################################################
## Setup for building programs ##
#############################################################################
include $(top_srcdir)/config/commence.am
## Setup the different includes and preprocessor #defines we need.
hrepack_INCLUDES=-I$(top_srcdir)/hdf/src \
-I$(top_srcdir)/mfhdf/hdiff \
-I$(top_srcdir)/mfhdf/libsrc \
-I$(top_builddir)/mfhdf/libsrc
DEFINES=-DHDF
AM_CPPFLAGS=$(hrepack_INCLUDES) $(DEFINES)
## Add hrepack specific linker flags here
hrepack_LDFLAGS = $(LT_STATIC_EXEC) $(AM_LDFLAGS)
#############################################################################
## Programs to build ##
#############################################################################
bin_PROGRAMS = hrepack
hrepack_SOURCES = hrepack.c hrepack_an.c hrepack_gr.c \
hrepack_list.c hrepack_lsttable.c hrepack_main.c \
hrepack_opttable.c hrepack_parse.c \
hrepack_sds.c hrepack_utils.c \
hrepack_vg.c hrepack_vs.c hrepack_dim.c
hrepack_LDADD = $(LIBMFHDF) $(LIBHDF)
hrepack_DEPENDENCIES = $(LIBMFHDF) $(LIBHDF)
#############################################################################
## Testing -- Here there be dragons. ##
#############################################################################
TEST_SCRIPT=hrepack.sh
TEST_PROG=test_hrepack
check_SCRIPTS=hrepack.sh
check_PROGRAMS = hrepack_check test_hrepack
test_hrepack_SOURCES = hrepacktst.c
test_hrepack_LDADD = $(LIBMFHDF) $(LIBHDF) -lm
test_hrepack_DEPENDENCIES = $(LIBMFHDF) $(LIBHDF)
hrepack_check_SOURCES = hrepack_check.c
hrepack_check_LDADD = $(LIBMFHDF) $(LIBHDF)
hrepack_check_DEPENDENCIES = $(LIBMFHDF) $(LIBHDF)
# The hrepack.sh script needs test_hrepack to run first.
hrepack.sh.chkexe_: test_hrepack.chkexe_
#############################################################################
## And the cleanup ##
#############################################################################
CHECK_CLEANFILES += *.hdf
DISTCLEANFILES = hrepack.sh
include $(top_srcdir)/config/conclude.am
|