31788277f9
This is an experiment, not strictly sanctioned by the AX_LAPACK macro documentation, to avoid linker errors related to missing symbol MAIN__ in the (GFortran) run-time support libraries. Strictly speaking, we should be using the method outlined in the Autoconf manual, but we'll try the easier way for now. This commit is more or less equivalent to forward-porting commitsdd6e0fd3
,c437eba2
, and9e885dc7
from the "ert" branch.
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# Build-time flags needed to form example programs
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir) \
|
|
$(OPM_BOOST_CPPFLAGS)
|
|
|
|
# All targets link to the library
|
|
LDADD = \
|
|
$(top_builddir)/lib/libopmcore.la \
|
|
$(BOOST_FILESYSTEM_LIB) \
|
|
$(BOOST_SYSTEM_LIB)
|
|
|
|
# ----------------------------------------------------------------------
|
|
# Declare products (i.e., the example programs).
|
|
#
|
|
# Please keep the list sorted.
|
|
|
|
noinst_PROGRAMS = \
|
|
refine_wells \
|
|
scaneclipsedeck \
|
|
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
|
|
sim_wateroil_SOURCES = sim_wateroil.cpp
|
|
wells_example_SOURCES = wells_example.cpp
|
|
|
|
# ----------------------------------------------------------------------
|
|
# Optional examples, or examples that use optional add-on components.
|
|
|
|
if UMFPACK
|
|
noinst_PROGRAMS += spu_2p
|
|
|
|
spu_2p_SOURCES = spu_2p.cpp
|
|
spu_2p_LDADD = \
|
|
$(LDADD) \
|
|
$(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS)
|
|
endif
|