Refactor full "LDADD" statement out to single make variable.

Use where appropriate.
This commit is contained in:
Bård Skaflestad 2012-06-06 14:07:03 +02:00
parent 7207ea27c9
commit 49641f935d

View File

@ -4,6 +4,13 @@ $(BOOST_CPPFLAGS)
LDADD = $(top_builddir)/libopmcore.la
FULL_LDADD = \
$(LDADD) $(LIBS) \
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
$(LAPACK_LIBS) $(LIBS) $(LIBS)
noinst_PROGRAMS = \
refine_wells \
scaneclipsedeck \
@ -14,16 +21,10 @@ sim_2p_incomp_reorder
refine_wells_SOURCES = refine_wells.cpp
sim_wateroil_SOURCES = sim_wateroil.cpp
sim_wateroil_LDADD = \
$(LDADD) $(LIBS) \
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
$(LAPACK_LIBS) $(LIBS) $(LIBS)
sim_wateroil_LDADD = $(FULL_LDADD)
sim_2p_incomp_reorder_SOURCES = sim_2p_incomp_reorder.cpp
sim_2p_incomp_reorder_LDADD = \
$(LDADD) $(LIBS) \
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
$(LAPACK_LIBS) $(LIBS) $(LIBS)
sim_2p_incomp_reorder_LDADD = $(FULL_LDADD)
wells_example_SOURCES = wells_example.cpp
@ -31,8 +32,5 @@ if UMFPACK
noinst_PROGRAMS += spu_2p
spu_2p_SOURCES = spu_2p.cpp
spu_2p_LDADD = \
$(LDADD) $(LIBS) \
$(BOOST_SYSTEM_LIB) $(BOOST_FILESYSTEM_LIB) \
$(LAPACK_LIBS) $(LIBS) $(LIBS)
spu_2p_LDADD = $(FULL_LDADD)
endif