From a097fde7c548cbfe9043cb8553fc1e0e2f0cc422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Wed, 6 Jun 2012 14:20:12 +0200 Subject: [PATCH] Visually split description into sections. Add comments in the process. No functional changes. --- examples/Makefile.am | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index 007607c2..7f91a6d3 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,15 +1,23 @@ +# Build-time flags needed to form example programs AM_CPPFLAGS = \ -I$(top_srcdir) \ $(BOOST_CPPFLAGS) +# All targets link to the library LDADD = $(top_builddir)/libopmcore.la +# Convenience make variable to avoid having to list the entire +# link-time dependency for every target that requires more than +# libopmcore.la FULL_LDADD = \ $(LDADD) $(LIBS) \ $(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \ $(LAPACK_LIBS) $(LIBS) $(LIBS) - +# ---------------------------------------------------------------------- +# Declare products (i.e., the example programs). +# +# Please keep the list sorted. noinst_PROGRAMS = \ refine_wells \ @@ -18,6 +26,13 @@ sim_2p_incomp_reorder \ sim_wateroil \ wells_example +# ---------------------------------------------------------------------- +# Product constituents. Must be specified for every product that's +# built from more than a single ".c" file and/or that link to anything +# more than the OPM-Core library. +# +# Please maintain sort order from "noinst_PROGRAMS". + refine_wells_SOURCES = refine_wells.cpp sim_2p_incomp_reorder_SOURCES = sim_2p_incomp_reorder.cpp @@ -28,6 +43,9 @@ sim_wateroil_LDADD = $(FULL_LDADD) wells_example_SOURCES = wells_example.cpp +# ---------------------------------------------------------------------- +# Optional examples, or examples that use optional add-on components. + if UMFPACK noinst_PROGRAMS += spu_2p