Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Jahns
PPM
Commits
76590a41
Commit
76590a41
authored
Jun 05, 2020
by
Thomas Jahns
🤸
Browse files
Add option to build example programs only on demand.
parent
a2a93924
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
76590a41
...
...
@@ -848,8 +848,23 @@ AC_ARG_WITH([on-demand-check-programs],
[with_on_demand_check_programs=no])
AM_CONDITIONAL([with_on_demand_check_programs],
[test x$with_on_demand_check_programs = xyes])
dnl
dnl
dnl add flag to disable automatic creation of example programs
AC_ARG_WITH([example-programs],
[AS_HELP_STRING([--without-example-programs],
[only build example programs when calling make examples in examples directory (default: build during make all)])],
[AS_CASE([$withval],
[yes|no],,
[n],[with_example_programs=no],
[y],[with_example_programs=yes],
[AC_MSG_FAILURE([unexpected value for --with-example-programs: '$withval'])])],
[with_example_programs=yes])
AM_CONDITIONAL([with_example_programs],
[test x$with_example_programs = xyes])
dnl
dnl
dnl
AR="${AR:-ar}"
ARFLAGS="${ARFLAGS:-cru}"
AC_SUBST([AR])
...
...
example/Makefile.am
View file @
76590a41
...
...
@@ -28,18 +28,24 @@
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
noinst
_PROGRAMS
=
show_ieee_emulation
\
EXTRA
_PROGRAMS
=
show_ieee_emulation
\
check_prng
\
check_prng_f
\
graph_build
noinst_PROGRAMS
=
if
with_example_programs
noinst_PROGRAMS
+=
$(EXTRA_PROGRAMS)
endif
examples
:
$(EXTRA_PROGRAMS)
makef90depend_ignore_args
=
\
--ignore-module
=
ieee_arithmetic
\
--ignore-module
=
iso_c_binding
\
--ignore-module
=
omp_lib
if
USE_METIS
noinst
_PROGRAMS
+=
\
EXTRA
_PROGRAMS
+=
\
graph_partition
else
makef90depend_ignore_args
+=
--ignore-module
=
ppm_graph_partition_serial
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment