<?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: Making separate deployment in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518645#M701201</link>
    <description>For linking part you can simply cd into /disk1/Deployment directory and run ld from there.&lt;BR /&gt;&lt;BR /&gt;Line that does `echo *.c` is to get around the pattern matching problem. It defines variable SRC which holds a list of all source files. Variable OBJ holds list of all object files, obtained from SRC where .c is substituted with .o suffix.&lt;BR /&gt;&lt;BR /&gt;Here is a full example&lt;BR /&gt;&lt;BR /&gt;VPATH=/disk1/Deployment&lt;BR /&gt;OBJ=$(SRC:.c=.o)&lt;BR /&gt;all:&lt;BR /&gt;        @$(MAKE) $(VPATH)/a.out src="`echo *.c`"&lt;BR /&gt;$(VPATH)/a.out: $(OBJ)&lt;BR /&gt;        cd $(VPATH); ld -o a.out /usr/ccs/lib/crt0.o $(OBJ) -lc&lt;BR /&gt;.c.o:&lt;BR /&gt;        cc -c $&amp;lt; -o $(VPATH)/$@&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 07 Apr 2005 02:47:07 GMT</pubDate>
    <dc:creator>Ermin Borovac</dc:creator>
    <dc:date>2005-04-07T02:47:07Z</dc:date>
    <item>
      <title>Making separate deployment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518640#M701196</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have started using HP-UX just a week ago.&lt;BR /&gt;Prior i was working on Solaris.&lt;BR /&gt;&lt;BR /&gt;To my extreme discomfort all my makefiles have stopped working here.&lt;BR /&gt;In solaris to prepare separate deployment I used:&lt;BR /&gt;&lt;BR /&gt;-o $@ tag in build command to produce the output files.&lt;BR /&gt;&lt;BR /&gt;I used to prefix path in .o like&lt;BR /&gt;/disk1/Deployement/A.o&lt;BR /&gt;/disk1/Deployement/B.o&lt;BR /&gt;etc,&lt;BR /&gt;&lt;BR /&gt;Now my rule is&lt;BR /&gt;/disk1/Deployment/%.o:%.cpp&lt;BR /&gt;    $(BUILD) $&amp;lt;&lt;BR /&gt;where $(BUILD) contains all compiler specific tags.&lt;BR /&gt;&lt;BR /&gt;This used to work in solaris but here it gives error "Don't know how to make A.o" and subsequently all .o&lt;BR /&gt;&lt;BR /&gt;Please help&lt;BR /&gt;Thanks in Advance</description>
      <pubDate>Wed, 06 Apr 2005 00:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518640#M701196</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-06T00:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Making separate deployment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518641#M701197</link>
      <description>Please try&lt;BR /&gt;&lt;BR /&gt;.cpp.o:&lt;BR /&gt;&lt;TAB&gt;$(BUILD) $&amp;lt;&lt;/TAB&gt;</description>
      <pubDate>Wed, 06 Apr 2005 01:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518641#M701197</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-04-06T01:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Making separate deployment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518642#M701198</link>
      <description>For this to work i have to remove the path prefix from the .o, otherwise it gives the same error. ( Don't know how to make )&lt;BR /&gt;&lt;BR /&gt;On removing the prefix it creates the .o's in the same directory.</description>
      <pubDate>Wed, 06 Apr 2005 02:51:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518642#M701198</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-06T02:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Making separate deployment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518643#M701199</link>
      <description>Would the following makefile accomplish what you are after? It assumes sources and Makefile are in the current directory and objects go to /disk1/Deployment.&lt;BR /&gt;&lt;BR /&gt;VPATH=/disk1/Deployment&lt;BR /&gt;OBJ=$(SRC:.c=.o)&lt;BR /&gt;all:&lt;BR /&gt;@$(MAKE) TARGET src="`echo *.c`"&lt;BR /&gt;TARGET: $(OBJ)&lt;BR /&gt;.c.o:&lt;BR /&gt;$(BUILD) $&amp;lt; -o $(VPATH)/$@</description>
      <pubDate>Wed, 06 Apr 2005 21:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518643#M701199</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-04-06T21:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Making separate deployment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518644#M701200</link>
      <description>Just a small confusion:&lt;BR /&gt;&lt;BR /&gt;What does this line do&lt;BR /&gt;@$(MAKE) TARGET src="`echo *.c`"&lt;BR /&gt;&lt;BR /&gt;As far as i have tried it makes the .o in the destination directory which i am able to achieve.&lt;BR /&gt;But during linking it can't find those .o's as its searching for them in the current directory.&lt;BR /&gt;How do i accomplish only this linking part.</description>
      <pubDate>Thu, 07 Apr 2005 01:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518644#M701200</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-07T01:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Making separate deployment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518645#M701201</link>
      <description>For linking part you can simply cd into /disk1/Deployment directory and run ld from there.&lt;BR /&gt;&lt;BR /&gt;Line that does `echo *.c` is to get around the pattern matching problem. It defines variable SRC which holds a list of all source files. Variable OBJ holds list of all object files, obtained from SRC where .c is substituted with .o suffix.&lt;BR /&gt;&lt;BR /&gt;Here is a full example&lt;BR /&gt;&lt;BR /&gt;VPATH=/disk1/Deployment&lt;BR /&gt;OBJ=$(SRC:.c=.o)&lt;BR /&gt;all:&lt;BR /&gt;        @$(MAKE) $(VPATH)/a.out src="`echo *.c`"&lt;BR /&gt;$(VPATH)/a.out: $(OBJ)&lt;BR /&gt;        cd $(VPATH); ld -o a.out /usr/ccs/lib/crt0.o $(OBJ) -lc&lt;BR /&gt;.c.o:&lt;BR /&gt;        cc -c $&amp;lt; -o $(VPATH)/$@&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Apr 2005 02:47:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518645#M701201</guid>
      <dc:creator>Ermin Borovac</dc:creator>
      <dc:date>2005-04-07T02:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Making separate deployment</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518646#M701202</link>
      <description>Bingo,&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Gotcha.&lt;BR /&gt;&lt;BR /&gt;All what i had to do was cd into the directory and then do linking.&lt;BR /&gt;&lt;BR /&gt;One small confusion: my script was not working because i was using&lt;BR /&gt;%.o:%.cxx instead of .cxx.o&lt;BR /&gt;&lt;BR /&gt;This % thing doesn't seem to work on HP-UX as its giving me an error&lt;BR /&gt;CC -0 -c ../source/file&lt;BR /&gt;Make: Cannot load CC. Stop.&lt;BR /&gt;&lt;BR /&gt;But as soon as i replace &lt;BR /&gt;%.o:%.cxx with .cxx.o&lt;BR /&gt;everything works.&lt;BR /&gt;&lt;BR /&gt;Since make isn't specific to any flavour of Unix then why is this thing happening?&lt;BR /&gt;&lt;BR /&gt;Any comments.</description>
      <pubDate>Thu, 07 Apr 2005 06:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/making-separate-deployment/m-p/3518646#M701202</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-04-07T06:02:52Z</dc:date>
    </item>
  </channel>
</rss>

