2005-02-01 11:17:02 +08:00
|
|
|
#
|
2007-02-15 06:29:52 +08:00
|
|
|
# Copyright by The HDF Group.
|
2005-02-01 11:17:02 +08:00
|
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
2017-04-18 03:32:16 +08:00
|
|
|
# the COPYING file, which can be found at the root of the source code
|
2021-02-17 22:52:36 +08:00
|
|
|
# distribution tree, or in https://www.hdfgroup.org/licenses.
|
2017-04-18 03:32:16 +08:00
|
|
|
# If you do not have access to either file, you may request a copy from
|
|
|
|
# help@hdfgroup.org.
|
2005-10-21 22:54:41 +08:00
|
|
|
|
2005-02-01 11:17:02 +08:00
|
|
|
##
|
|
|
|
## Makefile.am
|
|
|
|
## Run automake to generate a Makefile.in from this file.
|
|
|
|
#
|
|
|
|
# HDF5 Library Makefile(.in)
|
|
|
|
#
|
|
|
|
|
|
|
|
## Makefile.am template
|
2012-08-29 01:47:52 +08:00
|
|
|
## When automake is run, it scans configure.ac to find all Makefiles used by
|
2005-02-01 11:17:02 +08:00
|
|
|
## the build that come from Makefile.in files. If there are Makefile.am's
|
2005-09-23 03:30:23 +08:00
|
|
|
## in any of those locations, it parses the Makefile.am's to produce
|
|
|
|
## Makefile.in's, which configure uses to create Makefiles.
|
2005-02-01 11:17:02 +08:00
|
|
|
##
|
2005-09-23 03:30:23 +08:00
|
|
|
## Comments in the Makefile.am with two pound signs will be stripped by
|
|
|
|
## automake, comments with one pound sign will be passed through to the
|
|
|
|
## Makefile.in (and thence into the Makefile). Be warned, though, that
|
|
|
|
## automake tends to move things around in the Makefile.in, lines in the
|
|
|
|
## Makefile.in aren't always in the order they were in the Makefile.am.
|
2005-02-01 11:17:02 +08:00
|
|
|
##
|
|
|
|
## Almost all Makefile.am's in hdf5 include commence.am and conclude.am; these
|
|
|
|
## files are treated as if they were included textually in the Makefile.am when
|
|
|
|
## automake processes it. Commence.am also includes a (mostly) comprehensive
|
|
|
|
## list of make targets.
|
|
|
|
##
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
|
|
|
# Add include directories to the C preprocessor flags
|
2014-04-01 01:07:05 +08:00
|
|
|
AM_CPPFLAGS+=-I$(top_srcdir)/src
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# Our main targets, the library foo.la and the programs bar and baz
|
2007-02-28 01:26:25 +08:00
|
|
|
lib_LTLIBRARIES=foo.la
|
|
|
|
bin_PROGRAMS=bar baz
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# Helper programs and test programs
|
|
|
|
noinst_PROGRAMS=helper
|
|
|
|
check_PROGRAMS=test1 test2
|
|
|
|
check_SCRIPTS=runtest
|
|
|
|
|
2005-09-23 03:30:23 +08:00
|
|
|
# Remove files generated by tests during 'make check-clean'
|
|
|
|
CHECK_CLEANFILES=test1.h5 test2.h5
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
# library sources
|
|
|
|
foo_la_SOURCES= source1.c source2.c anothersource.c \
|
|
|
|
sourceonanotherline.c
|
|
|
|
|
|
|
|
# program sources
|
|
|
|
bar_SOURCES= bar.c barsource.c
|
|
|
|
test2_SOURCES= asdf.c jkl.c
|
|
|
|
|
2005-09-23 03:30:23 +08:00
|
|
|
# Link with the main HDF5 library and foo.la when building other targets.
|
|
|
|
# It's important that libhdf5 comes last, since foo.la depends on it.
|
|
|
|
LDADD=foo.la $(LIBHDF5)
|
2005-02-01 11:17:02 +08:00
|
|
|
|
|
|
|
include $(top_srcdir)/config/conclude.am
|