Re: [petsc-dev] user makefile

2022-01-13 Thread Jed Brown
No makefile is needed to build foo from foo.c. $ make -f $PETSC_DIR/share/petsc/Makefile.user foo In the example below, you don't have to write the recipe (the ${CLINKER} line). It's enough to write foo: foo.o baz.o Matthew Knepley writes: > foo: foo .o > ${CLINKER} -o $@ $^ ${PETSC_L

Re: [petsc-dev] user makefile

2022-01-13 Thread Matthew Knepley
foo: foo .o ${CLINKER} -o $@ $^ ${PETSC_LIB} Matt On Thu, Jan 13, 2022 at 9:54 PM Jacob Faibussowitsch wrote: > Is share/petsc/Makefile.user what you are looking for? > > Best regards, > > Jacob Faibussowitsch > (Jacob Fai - booss - oh - vitch) > > On Jan 13, 2022, at 21:49, Barry Smit

Re: [petsc-dev] user makefile

2022-01-13 Thread Jacob Faibussowitsch
Is share/petsc/Makefile.user what you are looking for? Best regards, Jacob Faibussowitsch (Jacob Fai - booss - oh - vitch) > On Jan 13, 2022, at 21:49, Barry Smith wrote: > > > https://petsc.org/release/docs/manual/getting_started/?highlight=user%20makefile > >

Re: [petsc-dev] user makefile

2022-01-13 Thread Barry Smith
https://petsc.org/release/docs/manual/getting_started/?highlight=user%20makefile Search for Writing Application Codes with PETSc Perhaps this needs to clearer or have links to it from the FAQ. > On Jan 13, 2022, at 9:38 PM, Mark Adams wrote: > > I am finding it pretty hard to find an exampl

[petsc-dev] user makefile

2022-01-13 Thread Mark Adams
I am finding it pretty hard to find an example of a makefile target to build an app with PETSc. I can not find it on the docs page. With Google: Victor has a little example that looks fine ($PETSC_LIB). (sort of, see below) Another one is bigger and has this at the end: -${CLINKER} $< -o b