[petsc-users] about make code with Petsc

Satish Balay balay at mcs.anl.gov
Thu Oct 13 09:45:45 CDT 2011


You can commit to gnumake [or equivalent] - and then use VPATH feature
to do this.

[however - in this case - the makefile would be in the location of the
objfiles - and then the source file location is listed in VPATH
variable - in the makefile]

Satish

On Thu, 13 Oct 2011, behzad baghapour wrote:

> Dear all,
> 
> I want to create code objects in different folder like "object" but I
> received "no rule to make target". The makefile is in the source files
> folder.
> Please tell me a hint for it.
> 
> Here is my makefile:
> 
> SHELL=/bin/bash
> 
> OBJDIR   = object/
> MYOBJ    = # my object files #
> 
> include ${PETSC_DIR}/conf/variables
> include ${PETSC_DIR}/conf/rules
> 
> OBJLIST = $(addprefix $(OBJDIR), $(MYOBJ))
> 
> code: ${OBJLIST} chkopts
>     -${CLINKER} -o code ${OBJLIST} ${INCDIR} ${PETSC_LIB}
> 
> Thanks,
> 
> 



More information about the petsc-users mailing list