<?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: Script/wizard to convert exported .mcp.xml Project to makefile? in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131379#M1529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; There is the Command line IDE (cmdIDE).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; Please refer to the IDE 5.7 Automation Guide.pdf in your {Install}\Help\PDF directory for available options.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; You can specify a .mcp file when starting.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2006 17:06:43 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2006-12-19T17:06:43Z</dc:date>
    <item>
      <title>Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131375#M1525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Has anyone ever created the opposite of the Makefile Importer Wizard which exists in some versions of Codewarrior? I'd like to create a makefile from a Codewarrior .mcp project so that I can do building of 9S12 code using Codewarrior's compilers/linkers (via the command line interface)&amp;nbsp;from a make invoked from the Eclipse IDE.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I was thinking of&amp;nbsp;using&amp;nbsp;File/Export Project... (using CW for HCS12) to create a .mcp.xml file, and then using a Python script&amp;nbsp;to create&amp;nbsp;either a Maker makefile (Maker is part of the CW Build tools) or else a&amp;nbsp;GNU-style makefile.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Perhaps I am missing something, but since the Maker&amp;nbsp;build tool is provided with Codewarrior, I thought that Freescale/Metrowerks&amp;nbsp;would provide an automatic way to create a&amp;nbsp;Maker-compatible makefile from a .mcp file.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance for any suggestions.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 04:59:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131375#M1525</guid>
      <dc:creator>GordFinlay</dc:creator>
      <dc:date>2006-04-05T04:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131376#M1526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;There is no way to export a CodeWarrior project to a Make file.&lt;/P&gt;&lt;P&gt;The Make utility is delivered for customer who have an existing make file and want to build from a make utility rather than from the IDE.&lt;/P&gt;&lt;P&gt;What I can provide you is a sample automake make file with instruction how to adjust it to your application.&lt;/P&gt;&lt;P&gt;Let me know if you are interested.&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2006 17:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131376#M1526</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-04-05T17:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131377#M1527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I share the same concern. It would be great if such a script be made avaiable to me as well. I am using codewarrior for ARM basically.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Mayank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2006 18:18:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131377#M1527</guid>
      <dc:creator>agrawal82</dc:creator>
      <dc:date>2006-08-08T18:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131378#M1528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;Is there command line utility that accept project file (.mcp) or target settings (.tdt) file to build the project outside of IDE?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 05:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131378#M1528</guid>
      <dc:creator>LMM</dc:creator>
      <dc:date>2006-12-19T05:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131379#M1529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; There is the Command line IDE (cmdIDE).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; Please refer to the IDE 5.7 Automation Guide.pdf in your {Install}\Help\PDF directory for available options.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; You can specify a .mcp file when starting.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 17:06:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131379#M1529</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2006-12-19T17:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131380#M1530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thank you,&lt;/DIV&gt;&lt;DIV&gt;LMM&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2006 20:19:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131380#M1530</guid>
      <dc:creator>LMM</dc:creator>
      <dc:date>2006-12-19T20:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131381#M1531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;CmdIDE works nicely, but can I pass a #define in on the command line? (-d_Token_Name_=value)&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 15:00:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131381#M1531</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-01-11T15:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131382#M1532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;you have to specify -D in the compiler preference panel.&lt;BR /&gt;cmdide is an interface to the build engine, it's not a compiler driver.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2008 17:43:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131382#M1532</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-01-11T17:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131383#M1533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Surely a build engine invokes the compiler, assembler, linker &amp;amp; loader in sequence?&amp;nbsp; Therefore it does spawn/chain/execute the compiler.&amp;nbsp; Sounds like CmdIDE extract the compiler command line from the MCP file based on the target modifier.&amp;nbsp; Sounds reasonable, I just wish it were more flexible.&lt;BR /&gt;&lt;BR /&gt;I know I can set up varying targets, each with specific compiler options, and then CmdIDE will accept target as a parameter.&amp;nbsp; But what if I want to have a command line build that takes in a specific customization?&amp;nbsp; Thing is, I have a code generator which I will be giving to a technician, and that feeds some source code into the build process.&amp;nbsp; I want to give the build a path to the custom code to include.&lt;BR /&gt;&lt;BR /&gt;I did try a "hack" of the MCP file, something I didn't want to do as there was binary and ascii mixed, and as expected it fried the MCP file and auto recovery messed up the MCP so I couldn't just undo the edit.&lt;BR /&gt;&lt;BR /&gt;So I too am now looking at how to export the MCP into a make file or XML file.&amp;nbsp; Something that is ASCII, and I can edit with a SED like script.&amp;nbsp; I believe I saw CmdIDE accepts an XML file.&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;I&gt;/x &amp;lt;project.xml&amp;gt;&amp;nbsp;&amp;nbsp; specifies an XML project file to import&lt;/I&gt;&lt;BR /&gt;&lt;I&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (A project file argument must also be specified for the&lt;/I&gt;&lt;BR /&gt;&lt;I&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name of the imported project. Once the project has been,&lt;/I&gt;&lt;BR /&gt;&lt;I&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imported, build or debug operations may commence)&lt;/I&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;I do have two other options to explore - one is use of known fixed locations for custom files, the other is use of environment variables.&amp;nbsp; I was just hoping that a simple cmd line interface to the compiler existed.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2008 02:34:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131383#M1533</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-01-12T02:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131384#M1534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;First note that cmdide.exe is just a wrapper which starts the ide and lets the ide do the work.&lt;BR /&gt;Cmdide provides the command line interface to the ide.&lt;BR /&gt;I think the reason why providing an option like -D to cmdide is not as simple as you imagine is that the ide does track for every file if it has to be recompiled and what it depends on.&lt;BR /&gt;This is done more strictly than by a makefile based tool, for example if you replace a source file with an old revision, with an old modification date, the ide will detect this and rebuild it, while a makefile based build would not.&lt;BR /&gt;What you can do is to export your project to xml (start the ide, use File-&amp;gt;export project). That will produce an xml you can pass to the /x option of cmdide.&lt;BR /&gt;Do you only need to adapt the search path? Actually custom search path roots are called source trees, and the cmdide provides explicit options (/addabsolute,...) to set those. Well, I never tried to use cmdide with those options so I don't have the experience.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2008 03:32:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131384#M1534</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2008-01-12T03:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Script/wizard to convert exported .mcp.xml Project to makefile?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131385#M1535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;That's probably what I was looking for ultimately, &lt;B&gt;/addabsolute&lt;/B&gt;.&amp;nbsp; It was in the help under &lt;B&gt;[extended commands]&lt;/B&gt; not under &lt;B&gt;[build operations]&lt;/B&gt;.&amp;nbsp; That may do the job.&lt;BR /&gt;&lt;BR /&gt;I understand that CmdIDE ran the full IDE, and was looking for cmd line switch to pass in compiler cmd line modifiers.&amp;nbsp; Sure the input gets messy, but still usable.&amp;nbsp; I tend to use IDE's and UDE's (Ultra Edit/Cdewright) whenever they can for the build management.&lt;BR /&gt;&lt;BR /&gt;The included files would have had a newer date, but the c file they were included in needed to be touched, my scipt would have taken care of that; touching was explicitly called out in the manual procedure I am replacing.&amp;nbsp; The project was small enough I elected to use the /r switch to force a full re-build.&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help, I'll let you know how the /add... works.&amp;nbsp; Sounds simpler than AWKing an XML.&lt;BR /&gt;&lt;BR /&gt;Alex&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2008 03:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Script-wizard-to-convert-exported-mcp-xml-Project-to-makefile/m-p/131385#M1535</guid>
      <dc:creator>alexod</dc:creator>
      <dc:date>2008-01-12T03:49:55Z</dc:date>
    </item>
  </channel>
</rss>

