Can I use Codewarrior compiler with standard make (without IDE)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I use Codewarrior compiler with standard make (without IDE)?

4,212 Views
DragonSlayer
Contributor I
I would like to set up a build environment that is more familiar to the rest of our team. I would like to create standard makefiles and use make, but run the codewarrior compiler and linker.

Is this possible? Is there any documentation on this?

Thanks!
Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

1,280 Views
CrasyCat
Specialist III

Hello

Which CPU are you targeting.

Basically we have command line version for the build tools available. The way to set it up depends on the CPU you are using. 

CrasyCat

0 Kudos
Reply

1,280 Views
DragonSlayer
Contributor I
The requirements read StarCore SC140V3. I only know it is starcore.
0 Kudos
Reply

1,280 Views
CrasyCat
Specialist III

Hello

StarCore build tools executable are located in
    {Install}\StarCore_Support\compiler\bin

Compiler can can started through scc.exe. Assembler is started through asmsc100.exe and linker through sc100-ld.exe.

CodeWarrior is not delivered with amake utility, so you have to use an external make utilits (for example GNU make or nmake).

You then have to create your make file with your rules for the application.

There are some example of make files for example 
   {Install}\StarCore_Support\compiler\src\rtlib\makefile
or
   {Install}\(CodeWarrior_Examples)\StarCore_Examples\Drivers\Msc8101Drivers\Q001\demos\SerDemos\makefile.scc

The compiler provides an option to generate dependeny information in make file syntax. This option is -M [Filename] and is pretty useful when you are building from a make file.

I hope this helps.

CrasyCat

0 Kudos
Reply

1,280 Views
DragonSlayer
Contributor I
It does. Thanks very much Cat!
0 Kudos
Reply