[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling PETSc from Fortan main routine



On Mon, 13 Aug 2007, Waad Subber wrote:

> And what about the makefile how can I include my subroutines inside the petsc makefile
> 
> Thanks

I'm ataching a minimal petsc makefile.

You can add your stuff as 

OBJS = foo.o bar.o

[and then replace ex1.o with $(OBJS)]

Satish
CFLAGS	         =
FFLAGS	         =
CPPFLAGS         =
FPPFLAGS         =
CLEANFILES       =

include ${PETSC_DIR}/conf/base

ex1f: ex1f.o  chkopts
	-${FLINKER} -o ex1f ex1f.o  ${PETSC_LIB}
	${RM} ex1f.o