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>
<br>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"><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>