Gilles,

In fact, I tried to create the Makefile.am based on the ompi/mca/common/ompio example, which is based on opal/mca/common/sm/Makefile.am. In fact it's now working, eventhough I had an error about linking a shared library into a static one, which has now disappeared.

Thank you for the tools/wrappers/Makefile.am example, it resolved my problem.

Cheers,

Clement


Date: Wed, 26 Oct 2016 20:52:12 +0900

   From: Gilles Gouaillardet<gilles.gouaillar...@gmail.com>
   To: Open MPI Developers<devel@lists.open-mpi.org>
   Subject: Re: [OMPI devel] Makefile.am configuration
   Message-ID:
        <caakfz5tgfsnusfoj1a7d2nkg6kknbas+ku0fr+4mpxwh0pz...@mail.gmail.com>
   Content-Type: text/plain; charset="utf-8"

   Clement,

   For your first question, you can search for inspiration in
   https://github.com/open-mpi/ompi/blob/master/opal/mca/btl/sm/Makefile.am
   btl/sm uses common/sm (and common/cuda too), so it looks pretty similar to
   what you are trying to achieve.

   For your second question, and even if I do not fully get what you want to
   achieve, you can have a look at
   https://github.com/open-mpi/ompi/blob/master/ompi/tools/wrappers/Makefile.am
   and see how ompi_wrapper_script is installed via make install.
   During make check, it might be enough to invoke the script in
   $(top_srcdir)/...

   If your project is not confidential, you can publish it on github so we can
   have a look and provide better guidance. You can also create a private
   repository on bitbucket and grant access to only a few developers (both
   options are free)


   Cheers,

   Gilles



   On Wednesday, October 26, 2016, Clement FOYER<clement.fo...@gmail.com>
   wrote:

    Hi everyone,

    I've got two Makefile configuration problems, and I thought maybe someone
    here could give me hints to resolve them.

    I've been working on a component that is part in ompi/mca/pml/comp, and
    part in mca/common/comp. And I don't really know which variables/target to
    set in order to have a proper linking when generating both .la and .so
    files.

    Also, on the test Makefile.am, I would like to distribute a script that
    strat different benchmarks. How should I that up the makefile so the script
    is copied to (or linked in) the build directory when just calling "make",
    and to the installation directory when calling "make install" ?

    Thank you in advance,

    Cl?ment FOYER

    _______________________________________________
    devel mailing list
    devel@lists.open-mpi.org
    https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

   -------------- next part --------------
   An HTML attachment was scrubbed...
   
URL:<https://rfd.newmexicoconsortium.org/mailman/private/devel/attachments/20161026/7da954bb/attachment.html>




_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to