Skip to content
Snippets Groups Projects
Commit ca7ad292 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Add switch to build performance test programs on demand.

parent b00bb0e1
No related branches found
No related tags found
No related merge requests found
......@@ -437,6 +437,18 @@ AC_ARG_WITH([example-programs],
AM_CONDITIONAL([with_example_programs],
[test x$with_example_programs = xyes])
AC_ARG_WITH([perf-programs],
[AS_HELP_STRING([--without-perf-programs],
[only build performance test programs when calling make perf in perf directory (default: build during make all)])],
[AS_CASE([$withval],
[yes|no],,
[n],[with_perf_programs=no],
[y],[with_perf_programs=yes],
[AC_MSG_FAILURE([unexpected value for --with-perf-programs: '$withval'])])],
[with_perf_programs=yes])
AM_CONDITIONAL([with_perf_programs],
[test x$with_perf_programs = xyes])
AC_ARG_VAR([BUILD_CFLAGS],
[append to CFLAGS during build but not in configure phase])
AC_CONFIG_COMMANDS_PRE([CFLAGS="$CFLAGS${BUILD_CFLAGS+ $BUILD_CFLAGS}"])
......
......@@ -33,10 +33,16 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
noinst_PROGRAMS = \
EXTRA_PROGRAMS = \
perf_idxsection_get_positions_of_indices \
perf_sparse_array_gather
noinst_PROGRAMS =
if with_perf_programs
noinst_PROGRAMS += $(EXTRA_PROGRAMS)
endif
perf: $(EXTRA_PROGRAMS)
perf_idxsection_get_positions_of_indices_SOURCES = perf_idxsection_get_positions_of_indices.c
perf_sparse_array_gather_SOURCES = perf_sparse_array_gather.f90
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment