[petsc-users] Building library with PETSc makefile

Stefano Zampini stefano.zampini at gmail.com
Mon Nov 13 14:41:54 CST 2017


Here's another example
https://bitbucket.org/dalcinl/petiga/


Il 13 Nov 2017 10:33 PM, "Satish Balay" <balay at mcs.anl.gov> ha scritto:

> You might want to check on ctetgen on how its using PETSc makefiles to
> build ctetgen library.
>
> You can get this with --download-ctetgen or https://bitbucket.org/petsc/
> ctetgen
>
> [this uses the 'all-legacy' infrastructure - not the currently used
> 'all-gnumake']
>
> Satish
>
> On Mon, 13 Nov 2017, Greg Meyer wrote:
>
> > Hi,
> >
> > I'm extending PETSc for my particular application and looking to make my
> > own library. It would be great to do this using PETSc's makefile
> structure,
> > since I would like to build it based on how PETSc was configured (static
> > vs. shared, with appropriate linker flags, etc). However I've had a bit
> of
> > trouble parsing the petsc makefile structure to figure out what
> variables,
> > commands, etc. I should put in my makefile target to do so.
> >
> > Can anyone provide a sample makefile for building a custom library,
> shared
> > or static depending on PETSc configuration?
> >
> > Thanks in advance,
> > Greg
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20171113/e4ca8d18/attachment-0001.html>


More information about the petsc-users mailing list