On Thu, Oct 13, 2011 at 8:21 AM, behzad baghapour <span dir="ltr"><<a href="mailto:behzad.baghapour@gmail.com">behzad.baghapour@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear all,<br><br>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.<br>Please tell me a hint for it.<br>
</blockquote><div><br></div><div>The PETSc make rules always put the *.o files in the same directory as the source. If you want then in a different place,</div><div>you can put in an explicit 'mv' in your rule for the executable. There is also an experimental Python system, but I would</div>
<div>not use it unless you have a lot of experience.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Here is my makefile:<br><br>SHELL=/bin/bash<br><br>OBJDIR = object/<br>MYOBJ = # my object files # <br><br>include ${PETSC_DIR}/conf/variables<br>include ${PETSC_DIR}/conf/rules<br><br>OBJLIST = $(addprefix $(OBJDIR), $(MYOBJ))<br>
<br>code: ${OBJLIST} chkopts <br> -${CLINKER} -o code ${OBJLIST} ${INCDIR} ${PETSC_LIB}<br><br>Thanks,<br clear="all"><font color="#888888"><br>-- <br>==================================<br>Behzad Baghapour<br>Ph.D. Candidate, Mechecanical Engineering<br>
University of Tehran, Tehran, Iran<br><a href="https://sites.google.com/site/behzadbaghapour" target="_blank">https://sites.google.com/site/behzadbaghapour</a><br>Fax: 0098-21-88020741<br>==================================<br>
<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>