Refactor full "LDADD" statement out to single make variable.
Use where appropriate.
This commit is contained in:
parent
7207ea27c9
commit
49641f935d
@ -4,6 +4,13 @@ $(BOOST_CPPFLAGS)
|
|||||||
|
|
||||||
LDADD = $(top_builddir)/libopmcore.la
|
LDADD = $(top_builddir)/libopmcore.la
|
||||||
|
|
||||||
|
FULL_LDADD = \
|
||||||
|
$(LDADD) $(LIBS) \
|
||||||
|
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
|
||||||
|
$(LAPACK_LIBS) $(LIBS) $(LIBS)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
noinst_PROGRAMS = \
|
noinst_PROGRAMS = \
|
||||||
refine_wells \
|
refine_wells \
|
||||||
scaneclipsedeck \
|
scaneclipsedeck \
|
||||||
@ -14,16 +21,10 @@ sim_2p_incomp_reorder
|
|||||||
refine_wells_SOURCES = refine_wells.cpp
|
refine_wells_SOURCES = refine_wells.cpp
|
||||||
|
|
||||||
sim_wateroil_SOURCES = sim_wateroil.cpp
|
sim_wateroil_SOURCES = sim_wateroil.cpp
|
||||||
sim_wateroil_LDADD = \
|
sim_wateroil_LDADD = $(FULL_LDADD)
|
||||||
$(LDADD) $(LIBS) \
|
|
||||||
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
|
|
||||||
$(LAPACK_LIBS) $(LIBS) $(LIBS)
|
|
||||||
|
|
||||||
sim_2p_incomp_reorder_SOURCES = sim_2p_incomp_reorder.cpp
|
sim_2p_incomp_reorder_SOURCES = sim_2p_incomp_reorder.cpp
|
||||||
sim_2p_incomp_reorder_LDADD = \
|
sim_2p_incomp_reorder_LDADD = $(FULL_LDADD)
|
||||||
$(LDADD) $(LIBS) \
|
|
||||||
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
|
|
||||||
$(LAPACK_LIBS) $(LIBS) $(LIBS)
|
|
||||||
|
|
||||||
wells_example_SOURCES = wells_example.cpp
|
wells_example_SOURCES = wells_example.cpp
|
||||||
|
|
||||||
@ -31,8 +32,5 @@ if UMFPACK
|
|||||||
noinst_PROGRAMS += spu_2p
|
noinst_PROGRAMS += spu_2p
|
||||||
|
|
||||||
spu_2p_SOURCES = spu_2p.cpp
|
spu_2p_SOURCES = spu_2p.cpp
|
||||||
spu_2p_LDADD = \
|
spu_2p_LDADD = $(FULL_LDADD)
|
||||||
$(LDADD) $(LIBS) \
|
|
||||||
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
|
|
||||||
$(LAPACK_LIBS) $(LIBS) $(LIBS)
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user