<?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>CodeWarrior for StarCore中的主题 how to stop pre-build step compiling whole CW project?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/how-to-stop-pre-build-step-compiling-whole-CW-project/m-p/259199#M420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone use pre-build steps in Codewarrior?&lt;/P&gt;&lt;P&gt;We want to add some *TOUCH* commands and so that some *.c file which contains the version information and compile time could be always recompiled, and so each new binary image could be kept with correct build information.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But see attached file, when I just put an "dir" in the pre-build, EVERY source files in the whole CW will be recompiled! This is really awful, and we don't expect such behavior from Codewarrior.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could someone help me on how to override this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 09:52:04 GMT</pubDate>
    <dc:creator>yuxiangzhang</dc:creator>
    <dc:date>2013-07-08T09:52:04Z</dc:date>
    <item>
      <title>how to stop pre-build step compiling whole CW project?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/how-to-stop-pre-build-step-compiling-whole-CW-project/m-p/259199#M420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone use pre-build steps in Codewarrior?&lt;/P&gt;&lt;P&gt;We want to add some *TOUCH* commands and so that some *.c file which contains the version information and compile time could be always recompiled, and so each new binary image could be kept with correct build information.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But see attached file, when I just put an "dir" in the pre-build, EVERY source files in the whole CW will be recompiled! This is really awful, and we don't expect such behavior from Codewarrior.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could someone help me on how to override this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 09:52:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/how-to-stop-pre-build-step-compiling-whole-CW-project/m-p/259199#M420</guid>
      <dc:creator>yuxiangzhang</dc:creator>
      <dc:date>2013-07-08T09:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop pre-build step compiling whole CW project?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-StarCore/how-to-stop-pre-build-step-compiling-whole-CW-project/m-p/259200#M421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#1: remove any references from the pre-build commands;&lt;/P&gt;&lt;P&gt;#2: go to project properties at Builder settings and change the build command like below. Please note that the bat file must be the fist argument.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Step1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119576i38194469D49591DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Step1.png" alt="Step1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;#3: Edit the test.bat file to contain make file like commands. E.g.: &lt;/P&gt;&lt;P&gt;@echo This is a test&lt;/P&gt;&lt;P&gt;@dir&lt;/P&gt;&lt;P&gt;@cmd /c "%*"&lt;/P&gt;&lt;P&gt;@exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way the CW should not recompile each file within the project each time you execute a build command.&lt;/P&gt;&lt;P&gt;In this particular case the second time you click on build the console should display something like this:&lt;/P&gt;&lt;P&gt;D:\CW\CW_SC_v10.5.0\test.bat D:\CW\CW_SC_v10.5.0\eclipse/../gnu/bin/mingw32-make.exe -j8 all &lt;/P&gt;&lt;P&gt;This is a test&lt;/P&gt;&lt;P&gt; Volume in drive D is Secondary&lt;/P&gt;&lt;P&gt; Volume Serial Number is FAE4-32EF&lt;/P&gt;&lt;P&gt; Directory of D:\CW\CW_SC_v10.5.0\WCDMA\qert\SDOS_Debug_HW&lt;/P&gt;&lt;P&gt;07/08/2013&amp;nbsp; 03:14 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DIR&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;P&gt;07/08/2013&amp;nbsp; 03:14 PM&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;DIR&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..&lt;/P&gt;&lt;P&gt;07/08/2013&amp;nbsp; 03:14 PM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 729,645 basic_demo_demo_dbg.map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... info removed by myself ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 17 File(s)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14,552,831 bytes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5 Dir(s)&amp;nbsp; 197,772,849,152 bytes free&lt;/P&gt;&lt;P&gt;mingw32-make.exe: Nothing to be done for `all'.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As can be seen in this case the maker return: mingw32-make.exe: Nothing to be done for `all'. If a file is touched only that one will be compiled. &lt;/P&gt;&lt;P&gt;For your reference i used the CW10.5.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 12:21:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-StarCore/how-to-stop-pre-build-step-compiling-whole-CW-project/m-p/259200#M421</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2013-07-08T12:21:02Z</dc:date>
    </item>
  </channel>
</rss>

