<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Question about MAKE utility in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777658#M722433</link>
    <description>Ceesjan were right, but as Tom said: this solution would cause to rebuild all .cpp files every time make is launched. And of course I omitted colon in my example by mistake. &lt;BR /&gt;&lt;BR /&gt;Thank you guys for your assistance.&lt;BR /&gt;&lt;BR /&gt;Wojtek</description>
    <pubDate>Fri, 02 Aug 2002 06:28:00 GMT</pubDate>
    <dc:creator>Wojtek Dudczak</dc:creator>
    <dc:date>2002-08-02T06:28:00Z</dc:date>
    <item>
      <title>Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777654#M722429</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Make has double suffix interference rule .cpp.o for building .o files from .cpp files. This rule looks like: &lt;BR /&gt;&lt;BR /&gt;.cpp.o&lt;BR /&gt;      $(CXX) $(CXXFLAGS) -c $&amp;lt;&lt;BR /&gt;&lt;BR /&gt;But this rue produces .o file in the same directory where .cpp source file is located, and works only when .o and .cpp are in the same directory. Is it possible to define similiar rule, that will allow me to have source code and object files in separate directories? &lt;BR /&gt;&lt;BR /&gt;Thank You in advance&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 13:29:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777654#M722429</guid>
      <dc:creator>Wojtek Dudczak</dc:creator>
      <dc:date>2002-08-01T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777655#M722430</link>
      <description>As i can see in 'man make', it is possible to execute multiple commands in a rule; like:&lt;BR /&gt;&lt;BR /&gt;.y.o:&lt;BR /&gt;     $(YACC) $(YFLAGS) $&amp;lt;&lt;BR /&gt;     $(CC) $(CFLAGS) -c y.tab.c&lt;BR /&gt;     rm y.tab.c&lt;BR /&gt;     mv y.tab.o $@&lt;BR /&gt;&lt;BR /&gt;So, can you try to do:&lt;BR /&gt;.cpp.o&lt;BR /&gt;     $(CXX) $(CXXFLAGS) -c $&amp;lt;&lt;BR /&gt;     mkdir ./newdir&lt;BR /&gt;     mv *.o ./newdir/&lt;BR /&gt;&lt;BR /&gt;Please let me know your findings..&lt;BR /&gt;Regards,&lt;BR /&gt;Ceesjan&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Aug 2002 13:39:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777655#M722430</guid>
      <dc:creator>Ceesjan van Hattum</dc:creator>
      <dc:date>2002-08-01T13:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777656#M722431</link>
      <description>You may need to use nmake or gmake, or try to write some of your own inference rules.&lt;BR /&gt;&lt;BR /&gt;Note that Ceesjan's solution will cause you to do a rebuild of every *.cpp file every time you run make, because make will not look in the directory where the *.o files are.&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 01 Aug 2002 15:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777656#M722431</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-08-01T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777657#M722432</link>
      <description>rules always end with a colon (':') in all versions and ports of make. I guess that your real makefile indeed has&lt;BR /&gt;&lt;BR /&gt;.cpp.o:&lt;BR /&gt;&lt;BR /&gt;with a colon.&lt;BR /&gt;&lt;BR /&gt;A much better make is the GNU make. Binaries are available from a HP porting center or from &lt;A href="https://www.beepz.com/personal/merijn" target="_blank"&gt;https://www.beepz.com/personal/merijn&lt;/A&gt;</description>
      <pubDate>Thu, 01 Aug 2002 15:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777657#M722432</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-08-01T15:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777658#M722433</link>
      <description>Ceesjan were right, but as Tom said: this solution would cause to rebuild all .cpp files every time make is launched. And of course I omitted colon in my example by mistake. &lt;BR /&gt;&lt;BR /&gt;Thank you guys for your assistance.&lt;BR /&gt;&lt;BR /&gt;Wojtek</description>
      <pubDate>Fri, 02 Aug 2002 06:28:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777658#M722433</guid>
      <dc:creator>Wojtek Dudczak</dc:creator>
      <dc:date>2002-08-02T06:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777659#M722434</link>
      <description>Hi Wojtek,&lt;BR /&gt;&lt;BR /&gt;you can try to use the following one. Looks ugly but works :-).&lt;BR /&gt;&lt;BR /&gt;################################&lt;BR /&gt;&lt;BR /&gt;OD = ./obj&lt;BR /&gt;OD_OBJS = $(OD)/test.o&lt;BR /&gt;OBJS = test.o&lt;BR /&gt;&lt;BR /&gt;main: moveobjs $(OBJS) removeobjs&lt;BR /&gt;&lt;BR /&gt;moveobjs:&lt;BR /&gt;        cp $(OD_OBJS) . || echo ""&lt;BR /&gt;&lt;BR /&gt;.c.o:&lt;BR /&gt; gcc -o $(OD)/$@ -c $&amp;lt;&lt;BR /&gt; &lt;BR /&gt;removeobjs:&lt;BR /&gt; rm $(OBJS)</description>
      <pubDate>Fri, 02 Aug 2002 07:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777659#M722434</guid>
      <dc:creator>Sergiy Nevstruyev</dc:creator>
      <dc:date>2002-08-02T07:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777660#M722435</link>
      <description>Stefan Paitoni has answered this in another thread.  The solution is:&lt;BR /&gt;&lt;BR /&gt;VPATH=&lt;SRC_DIR&gt;:&lt;OBJ_DIR&gt; &lt;BR /&gt;&lt;BR /&gt;.cpp.o : &lt;BR /&gt;...&lt;/OBJ_DIR&gt;&lt;/SRC_DIR&gt;</description>
      <pubDate>Fri, 02 Aug 2002 08:39:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777660#M722435</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2002-08-02T08:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question about MAKE utility</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777661#M722436</link>
      <description>Best solution was with VPATH&lt;BR /&gt;&lt;BR /&gt;Thanks again</description>
      <pubDate>Fri, 02 Aug 2002 12:26:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/question-about-make-utility/m-p/2777661#M722436</guid>
      <dc:creator>Wojtek Dudczak</dc:creator>
      <dc:date>2002-08-02T12:26:23Z</dc:date>
    </item>
  </channel>
</rss>

