<div dir="ltr"><div class="gmail_quote"><div class="gmail_default" style="font-size:small">Hi Xiao,</div><div class="gmail_default" style="font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Why don't you avoid libftest.o as well if you want to build test by new rule?</blockquote><div><div class="gmail_default" style="font-size:small"></div></div><div><br></div><div><div class="gmail_default" style="font-size:small">That should be generated because it is the local library. In LTP Makefile, the sequencing is to build the library first then compile&link to the testcase. We can avoid dumping the testname.o since it only exists in the last phase. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">And, I don't want to change too much for LTP build rule(I think it works correctly), especially in the case directory some of the local libraries are reused.  e.g The swapoff test needs linking to ../swapon/libswapon.o, that requires libswapon.o is in the correct path.</div></div><div><br></div><div><div class="gmail_default" style="font-size:small">Or, did I misunderstand your words? if yes, please correct me.</div></div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>