Need help with makefile for multiple source files

Matthew Knepley knepley at gmail.com
Thu Jun 4 12:21:35 CDT 2009


You jsut list all the *.o files in the build rule for the executable.

   Matt

On Thu, Jun 4, 2009 at 12:15 PM, xiaoyin ji <sapphire.jxy at gmail.com> wrote:

> Hi,
>
> I've got a .F90 code using PETSc ksp solver working, and now I'm
> trying to separate the module (which contains parameter define and
> PETSc include files) and main program into two .F90 files. I have
> trouble with the makefile now because I cannot find the example
> makefile for such purpose, it seems all PETSc example makefiles are
> for single code only.
>
> Thank you very much!
>
> Best,
>
> Xiaoyin Ji
>
> ----------------------------------------------
>
> Xiaoyin Ji
> Graduate Student
> Department of Materials Science and Engineering
> North Carolina State University
>



-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20090604/0a2b2c64/attachment.htm>


More information about the petsc-users mailing list