mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-08-24 22:21:43 +02:00
add sections
This commit is contained in:
parent
2ba109a404
commit
d637f9b738
43
Makefile.am
43
Makefile.am
@ -30,6 +30,8 @@
|
|||||||
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# =============== SETTINGS =============== #
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
CLEANFILES = trexio.mod
|
CLEANFILES = trexio.mod
|
||||||
|
|
||||||
@ -42,6 +44,7 @@ SUBDIRS =
|
|||||||
pkgconfigdir = $(libdir)/pkgconfig
|
pkgconfigdir = $(libdir)/pkgconfig
|
||||||
pkgconfig_DATA = pkgconfig/trexio.pc
|
pkgconfig_DATA = pkgconfig/trexio.pc
|
||||||
|
|
||||||
|
# =============== BUILD =============== #
|
||||||
|
|
||||||
trexio_h = $(srcdir)/include/trexio.h
|
trexio_h = $(srcdir)/include/trexio.h
|
||||||
trexio_f = $(srcdir)/include/trexio_f.f90
|
trexio_f = $(srcdir)/include/trexio_f.f90
|
||||||
@ -54,14 +57,14 @@ lib_LTLIBRARIES = src/libtrexio.la
|
|||||||
|
|
||||||
|
|
||||||
SOURCES = \
|
SOURCES = \
|
||||||
$(trexio_h) \
|
$(trexio_h) \
|
||||||
src/trexio.c \
|
src/trexio.c \
|
||||||
src/trexio_private.h \
|
src/trexio_private.h \
|
||||||
src/trexio_s.h \
|
src/trexio_s.h \
|
||||||
src/trexio_hdf5.c \
|
src/trexio_hdf5.c \
|
||||||
src/trexio_hdf5.h \
|
src/trexio_hdf5.h \
|
||||||
src/trexio_text.c \
|
src/trexio_text.c \
|
||||||
src/trexio_text.h
|
src/trexio_text.h
|
||||||
|
|
||||||
ORG_FILES = \
|
ORG_FILES = \
|
||||||
src/templates_front/templator_front.org \
|
src/templates_front/templator_front.org \
|
||||||
@ -72,9 +75,11 @@ ORG_FILES = \
|
|||||||
|
|
||||||
src_libtrexio_la_SOURCES = $(SOURCES)
|
src_libtrexio_la_SOURCES = $(SOURCES)
|
||||||
|
|
||||||
# section related to tests
|
# =============== TESTS =============== #
|
||||||
|
|
||||||
TESTS_C = \
|
TESTS_C = \
|
||||||
|
tests/open_hdf5 \
|
||||||
|
tests/open_text \
|
||||||
tests/io_num_hdf5 \
|
tests/io_num_hdf5 \
|
||||||
tests/io_num_text \
|
tests/io_num_text \
|
||||||
tests/io_dset_float_hdf5 \
|
tests/io_dset_float_hdf5 \
|
||||||
@ -92,16 +97,16 @@ TESTS_C = \
|
|||||||
TESTS_F = \
|
TESTS_F = \
|
||||||
tests/test_f
|
tests/test_f
|
||||||
|
|
||||||
TESTS_ALL = $(TESTS_C) $(TESTS_F)
|
TESTS = $(TESTS_C) $(TESTS_F)
|
||||||
|
|
||||||
TESTS = $(TESTS_ALL)
|
|
||||||
check_PROGRAMS = $(TESTS)
|
check_PROGRAMS = $(TESTS)
|
||||||
|
|
||||||
# specify common options for all tests
|
# specify common options for all tests
|
||||||
LDADD = src/libtrexio.la
|
LDADD = src/libtrexio.la
|
||||||
|
|
||||||
# in principal, specifying -no-install (see example below) is not mandatory
|
# in principal, specifying -no-install (see below) is not mandatory
|
||||||
# for the tests to compile and pass, but the compilations itself differs
|
# for the tests to compile and pass, but the produced test binaries differ
|
||||||
|
tests_open_hdf5_LDFLAGS = -no-install
|
||||||
|
tests_open_text_LDFLAGS = -no-install
|
||||||
tests_io_num_hdf5_LDFLAGS = -no-install
|
tests_io_num_hdf5_LDFLAGS = -no-install
|
||||||
tests_io_num_text_LDFLAGS = -no-install
|
tests_io_num_text_LDFLAGS = -no-install
|
||||||
tests_io_dset_float_hdf5_LDFLAGS = -no-install
|
tests_io_dset_float_hdf5_LDFLAGS = -no-install
|
||||||
@ -124,6 +129,10 @@ $(test_trexio_f): $(trexio_f)
|
|||||||
tests_test_f_SOURCES = $(test_trexio_f) tests/test_f.f90
|
tests_test_f_SOURCES = $(test_trexio_f) tests/test_f.f90
|
||||||
tests_test_f_LDFLAGS = -no-install
|
tests_test_f_LDFLAGS = -no-install
|
||||||
|
|
||||||
|
clean-local:
|
||||||
|
-rm -rf -- *.dir/ *.h5
|
||||||
|
|
||||||
|
# =============== DOCUMENTATION =============== #
|
||||||
|
|
||||||
HTML_FILES = docs/trexio.css \
|
HTML_FILES = docs/trexio.css \
|
||||||
docs/index.html \
|
docs/index.html \
|
||||||
@ -139,6 +148,7 @@ dist_html_DATA = $(HTML_FILES)
|
|||||||
|
|
||||||
$(HTML_FILES): docs/index.html
|
$(HTML_FILES): docs/index.html
|
||||||
|
|
||||||
|
# =============== DEVELOPER MODE =============== #
|
||||||
|
|
||||||
if TREXIO_DEVEL
|
if TREXIO_DEVEL
|
||||||
|
|
||||||
@ -153,7 +163,7 @@ src/trexio.c: $(trexio_h)
|
|||||||
$(trexio_f): $(ORG_FILES)
|
$(trexio_f): $(ORG_FILES)
|
||||||
cd $(srcdir)/tools && ./build_trexio.sh
|
cd $(srcdir)/tools && ./build_trexio.sh
|
||||||
|
|
||||||
docs/index.html: $(SOURCES) $(srcdir)/src/README.org
|
docs/index.html: $(ORG_FILES) $(srcdir)/src/README.org
|
||||||
cd $(srcdir)/tools && ./build_doc.sh
|
cd $(srcdir)/tools && ./build_doc.sh
|
||||||
|
|
||||||
cppcheck: cppcheck.out
|
cppcheck: cppcheck.out
|
||||||
@ -170,6 +180,3 @@ cppcheck.out: $(trexio_h)
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean-local:
|
|
||||||
-rm -rf -- *.dir/ *.h5
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user