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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

4,241 次查看
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!
标签 (1)
标记 (1)
0 项奖励
回复
4 回复数

1,309 次查看
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 项奖励
回复

1,309 次查看
DragonSlayer
Contributor I
The requirements read StarCore SC140V3. I only know it is starcore.
0 项奖励
回复

1,309 次查看
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 项奖励
回复

1,309 次查看
DragonSlayer
Contributor I
It does. Thanks very much Cat!
0 项奖励
回复