[petsc-users] Building library with PETSc makefile

Satish Balay balay at mcs.anl.gov
Mon Nov 13 13:33:17 CST 2017


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
> 



More information about the petsc-users mailing list