Can generate makefile to build from Command prompt/script?

Showing results for 
Search instead for 
Did you mean: 

Can generate makefile to build from Command prompt/script?

Contributor III

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 Kudos
1 Reply

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


Have a great day,
Jun Zhang

- 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 Kudos