<?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 How to use CW 10.6 with external Makefile and have it work? in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-use-CW-10-6-with-external-Makefile-and-have-it-work/m-p/381320#M2184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have jumped through all the hoops to get CW 10.6 to use my external Makefile, for KL25.&amp;nbsp; This Make project builds fine when CW is not evolved.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do 'build all' this is the result in the console:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mingw32-make[1]: *** [build_begin] Error 1&lt;/P&gt;&lt;P&gt;mingw32-make: *** [all] Error 2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it to much to ask for CW to actually tell me what the error might be? :-(&lt;/P&gt;&lt;P&gt;It is not listed under the 'error' tab either.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect it is shell related.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The environment variable MAKESHELL is properly set so that BASH is being found, yet CW is not dealing with shell lines.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#----------------------------------------------------------------------------&lt;BR /&gt;# Blank line in make output spew:&lt;BR /&gt;$(info )&lt;BR /&gt;#----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;#----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;# If there are strange erorrs about 'f not found' this indicates that&lt;BR /&gt;# the MS-DOS command shell is being found rather than BASH.&amp;nbsp; On&lt;BR /&gt;# MS-DOS/Windows set the environment variable MAKESHELL to point to&lt;BR /&gt;# the directory that contains BASH.&lt;/P&gt;&lt;P&gt;$(info SHELL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '$(SHELL)')&lt;BR /&gt;$(info MAKESHELL = '$(MAKESHELL)')&lt;BR /&gt;$(info )&lt;BR /&gt;#----------------------------------------------------------------------------&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results in:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SHELL = 'sh.exe'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MAKESHELL = 'J:\Apps\BASH\bin'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if shell lines are not executing or their results go to oblivion.&amp;nbsp; Either way what CW is doing is broken:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GCCVERSION := $(shell echo `$(CC) -dumpversion`)&lt;/P&gt;&lt;P&gt;# ifeq "$(GCCVERSION)" "4.7.1"&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CTUNING += -mstrict-X&lt;/P&gt;&lt;P&gt;# else&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CTUNING += -morder1 -fno-split-wide-types -fno-inline-small-functions&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CTUNING += --combine -fwhole-program&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CDEFS&amp;nbsp;&amp;nbsp; += -DPROGMEM_USE&lt;/P&gt;&lt;P&gt;# endif&lt;/P&gt;&lt;P&gt;$(info )&lt;/P&gt;&lt;P&gt;$(info Building Target: $(TARGET_DIR)/$(TARGET) with)&lt;/P&gt;&lt;P&gt;$(info $(CC) version: $(GCCVERSION))&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$(GCCVERSION) is not being properly filled in when run from CW.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any hope here or is CW a waste of time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2015 13:35:33 GMT</pubDate>
    <dc:creator>bobpaddock</dc:creator>
    <dc:date>2015-02-17T13:35:33Z</dc:date>
    <item>
      <title>How to use CW 10.6 with external Makefile and have it work?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-use-CW-10-6-with-external-Makefile-and-have-it-work/m-p/381320#M2184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have jumped through all the hoops to get CW 10.6 to use my external Makefile, for KL25.&amp;nbsp; This Make project builds fine when CW is not evolved.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do 'build all' this is the result in the console:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mingw32-make[1]: *** [build_begin] Error 1&lt;/P&gt;&lt;P&gt;mingw32-make: *** [all] Error 2&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it to much to ask for CW to actually tell me what the error might be? :-(&lt;/P&gt;&lt;P&gt;It is not listed under the 'error' tab either.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I expect it is shell related.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The environment variable MAKESHELL is properly set so that BASH is being found, yet CW is not dealing with shell lines.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#----------------------------------------------------------------------------&lt;BR /&gt;# Blank line in make output spew:&lt;BR /&gt;$(info )&lt;BR /&gt;#----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;#----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;# If there are strange erorrs about 'f not found' this indicates that&lt;BR /&gt;# the MS-DOS command shell is being found rather than BASH.&amp;nbsp; On&lt;BR /&gt;# MS-DOS/Windows set the environment variable MAKESHELL to point to&lt;BR /&gt;# the directory that contains BASH.&lt;/P&gt;&lt;P&gt;$(info SHELL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = '$(SHELL)')&lt;BR /&gt;$(info MAKESHELL = '$(MAKESHELL)')&lt;BR /&gt;$(info )&lt;BR /&gt;#----------------------------------------------------------------------------&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results in:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SHELL = 'sh.exe'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MAKESHELL = 'J:\Apps\BASH\bin'&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if shell lines are not executing or their results go to oblivion.&amp;nbsp; Either way what CW is doing is broken:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;GCCVERSION := $(shell echo `$(CC) -dumpversion`)&lt;/P&gt;&lt;P&gt;# ifeq "$(GCCVERSION)" "4.7.1"&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CTUNING += -mstrict-X&lt;/P&gt;&lt;P&gt;# else&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CTUNING += -morder1 -fno-split-wide-types -fno-inline-small-functions&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CTUNING += --combine -fwhole-program&lt;/P&gt;&lt;P&gt;#&amp;nbsp;&amp;nbsp;&amp;nbsp; CDEFS&amp;nbsp;&amp;nbsp; += -DPROGMEM_USE&lt;/P&gt;&lt;P&gt;# endif&lt;/P&gt;&lt;P&gt;$(info )&lt;/P&gt;&lt;P&gt;$(info Building Target: $(TARGET_DIR)/$(TARGET) with)&lt;/P&gt;&lt;P&gt;$(info $(CC) version: $(GCCVERSION))&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$(GCCVERSION) is not being properly filled in when run from CW.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any hope here or is CW a waste of time?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 13:35:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-use-CW-10-6-with-external-Makefile-and-have-it-work/m-p/381320#M2184</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2015-02-17T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CW 10.6 with external Makefile and have it work?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-use-CW-10-6-with-external-Makefile-and-have-it-work/m-p/381321#M2185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some interesting doc at mcuonclipse.com web site&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://mcuoneclipse.com/2012/02/13/make-my-make-with-eclipse-and-mcu10/" title="http://mcuoneclipse.com/2012/02/13/make-my-make-with-eclipse-and-mcu10/"&gt;http://mcuoneclipse.com/2012/02/13/make-my-make-with-eclipse-and-mcu10/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand exactly what is the problem.&lt;/P&gt;&lt;P&gt;Do you have a problem to build your application with external make file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; don't seem to be the case ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems you've problem with you perform a build under Eclipse.&lt;/P&gt;&lt;P&gt;There are 2 dialogs to check: Problems and Console&lt;/P&gt;&lt;P&gt;The second provides all info returned by all tools.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 13:26:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-use-CW-10-6-with-external-Makefile-and-have-it-work/m-p/381321#M2185</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-02-20T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use CW 10.6 with external Makefile and have it work?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-use-CW-10-6-with-external-Makefile-and-have-it-work/m-p/381322#M2186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Do you have a problem to build your application with external make file ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; don't seem to be the case ...&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;It seems you've problem with you perform a build under Eclipse.&lt;/P&gt;
&lt;P&gt;There are 2 dialogs to check: Problems and Console&lt;/P&gt;
&lt;P&gt;The second provides all info returned by all tools.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;Console was not showing all of the output until I enabled it to do so.&lt;/P&gt;&lt;P&gt;I never understand why these tools hide things by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I could see the Make output spew I understand the problem, the BASH shell sh.exe was not being found.&lt;/P&gt;&lt;P&gt;When I added the BASH\bin directory to my global PATH things started to compile correctly in CW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alas sh.exe is not found in KDS, I'll start a separate thread on that in the KDS form.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 17:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/How-to-use-CW-10-6-with-external-Makefile-and-have-it-work/m-p/381322#M2186</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2015-02-20T17:37:50Z</dc:date>
    </item>
  </channel>
</rss>

