From 7b1079ae5f3aaac2bbaf1a3823ffb8aaf188514d Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 1 Jul 2016 16:29:10 +0200 Subject: [PATCH] example/H5Fed/Makefile.am - compile static if ENABLE_DEBUG is set. This makes life simpler if we build shared libs --- examples/H5Fed/Makefile.am | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/H5Fed/Makefile.am b/examples/H5Fed/Makefile.am index 8139859..15e5364 100644 --- a/examples/H5Fed/Makefile.am +++ b/examples/H5Fed/Makefile.am @@ -1,5 +1,5 @@ # -# Copyright (c) 2006-2015, The Regents of the University of California, +# Copyright (c) 2006-2016, The Regents of the University of California, # through Lawrence Berkeley National Laboratory (subject to receipt of any # required approvals from the U.S. Dept. of Energy) and the Paul Scherrer # Institut (Switzerland). All rights reserved.! @@ -10,6 +10,9 @@ AM_CPPFLAGS += -I${abs_top_srcdir}/src/include FFLAGS += -cpp $(AM_CPPFLAGS) AM_LDFLAGS += -L${abs_top_builddir}/src/h5core/.libs +if ENABLE_DEBUG +AM_LDFLAGS += -static +endif LDADD = LDADD += -lH5hut @@ -46,11 +49,12 @@ EXTRA_DIST = \ trimesh_write.c \ trimesh_2gnuplot.c \ trimesh_write_dunetest.c -endif # map_tet2globalid.c \ # map_triangle2globalid.c \ # $(bin_SCRIPTS) +endif + clean-local: $(RM) *.h5 *~