<div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>Can anyone provide a sample makefile for building a custom library, shared or static depending on PETSc configuration?</div><div><br></div><div>Thanks in advance,</div><div>Greg</div></div>