<div dir="auto">Here's another example<div dir="auto"><a href="https://bitbucket.org/dalcinl/petiga/">https://bitbucket.org/dalcinl/petiga/</a><br></div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 13 Nov 2017 10:33 PM, "Satish Balay" <<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You might want to check on ctetgen on how its using PETSc makefiles to<br>
build ctetgen library.<br>
<br>
You can get this with --download-ctetgen or <a href="https://bitbucket.org/petsc/ctetgen" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/<wbr>ctetgen</a><br>
<br>
[this uses the 'all-legacy' infrastructure - not the currently used 'all-gnumake']<br>
<br>
Satish<br>
<br>
On Mon, 13 Nov 2017, Greg Meyer wrote:<br>
<br>
> Hi,<br>
><br>
> I'm extending PETSc for my particular application and looking to make my<br>
> own library. It would be great to do this using PETSc's makefile structure,<br>
> since I would like to build it based on how PETSc was configured (static<br>
> vs. shared, with appropriate linker flags, etc). However I've had a bit of<br>
> trouble parsing the petsc makefile structure to figure out what variables,<br>
> commands, etc. I should put in my makefile target to do so.<br>
><br>
> Can anyone provide a sample makefile for building a custom library, shared<br>
> or static depending on PETSc configuration?<br>
><br>
> Thanks in advance,<br>
> Greg<br>
><br>
<br>
</blockquote></div></div>