<div dir="ltr"><div><div>Hi Christoph<br><br>Following is my Makefile.am<br><br><br>SUBDIRS =<br><br>noinst_PROGRAMS = dune_foo<br><br>dune_foo_SOURCES = dune_foo.cc<br><br>dune_foo_CPPFLAGS = $(AM_CPPFLAGS) \<br>    $(DUNEMPICPPFLAGS) \<br>    $(UG_CPPFLAGS) \<br>    $(AMIRAMESH_CPPFLAGS) \<br>    $(ALBERTA_CPPFLAGS) \<br>    $(ALUGRID_CPPFLAGS) \<br>    $(SUPERLU_CPPFLAGS)<br>    <br># The libraries have to be given in reverse order (most basic libraries<br># last).  Also, due to some misunderstanding, a lot of libraries include the<br># -L option in LDFLAGS instead of LIBS -- so we have to include the LDFLAGS<br># here as well.<br>dune_foo_LDADD = \<br>    $(DUNE_LDFLAGS) $(DUNE_LIBS) \<br>    $(SUPERLU_LIBS) \<br>    $(ALUGRID_LDFLAGS) $(ALUGRID_LIBS) \<br>    $(ALBERTA_LDFLAGS) $(ALBERTA_LIBS) \<br>    $(AMIRAMESH_LDFLAGS) $(AMIRAMESH_LIBS) \<br>    $(UG_LDFLAGS) $(UG_LIBS) \<br>    $(DUNEMPILIBS)    \<br>    $(LDADD)<br>dune_foo_LDFLAGS = $(AM_LDFLAGS) \<br>    $(DUNEMPILDFLAGS) \<br>    $(UG_LDFLAGS) \<br>    $(AMIRAMESH_LDFLAGS) \<br>    $(ALBERTA_LDFLAGS) \<br>    $(ALUGRID_LDFLAGS) \<br>    $(DUNE_LDFLAGS) \<br>    $(SUPERLU_LDFLAGS)<br><br># don't follow the full GNU-standard<br># we need automake 1.9<br>AUTOMAKE_OPTIONS = foreign 1.9<br><br># pass most important options when "make distcheck" is used<br>DISTCHECK_CONFIGURE_FLAGS = --with-dune-common=$(DUNE_COMMON_ROOT) --with-dune-istl=$(DUNE_ISTL_ROOT) --with-dune-geometry=$(DUNE_GEOMETRY_ROOT) --with-dune-grid=$(DUNE_GRID_ROOT)  CXX="$(CXX)" CC="$(CC)"<br><br>EXTRA_DIST = CMakeLists.txt<br><br>include $(top_srcdir)/am/global-rules<br><br><br></div>Thank you<br></div>Ganesh<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 14, 2015 at 11:08 AM, Christoph Grüninger <span dir="ltr"><<a href="mailto:christoph.grueninger@iws.uni-stuttgart.de" target="_blank">christoph.grueninger@iws.uni-stuttgart.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ganesh,<br>
probably you are missing some flags in your Makefile.am. Either<br>
compare it to the original one from ISTL or share it with us.<br>
<br>
Bye<span class="HOEnZb"><font color="#888888"><br>
Christoph<br>
<br>
-- <br>
Je n'ai rien contre les étrangers, quelques uns de mes meilleurs amis<br>
sont des étrangers. Mais ces étrangers là ne sont pas de chez nous!<br>
[Agecanonix, Astérix - Le cadeau de César]<br>
</font></span></blockquote></div><br></div>