Can generate makefile to build from Command prompt/script?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can generate makefile to build from Command prompt/script?

835件の閲覧回数
wei_w_he
Contributor IV

Dear Officer,

I am using CW 5.2 IDE to build the project ( by clicking on the Make icon). Can we also support to use the makefile directly? (then triggering the code build from command prompt or script). and how to generate the makefile?

Thanks and best regards

He Wei

0 件の賞賛
1 返信

730件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

HI He Wei 

The HC12 makefile sample code can be found under

{your CW install directory}\(CodeWarrior_Examples)\MakeFileSample_HC12.

This sample code is available for all HC(S)12 derivatives.

you need make sure INSTALL PATH in build.bat match with your own CW installation path. 

NOTE: blank character is forbidden for path!

We don't have the exact feature of generating makefile.

However there are some options in compiler, linker you can use with the IDE to help you to create the makefile.

For instance the compiler:

- set the option -Lm: List of Included Files in Make Format

-  set the option -LmCfg: Configuration of List of Included Files in Make Format

 

After you compiled the project you will have:

- a file make.txt (generated by the option -lm) useful to create the makefile. The generated list is in the make format

pastedImage_1.png


Have a great day,
Jun Zhang

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 件の賞賛