use makefile instead of cmdide.exe for project

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

use makefile instead of cmdide.exe for project

Jump to solution
3,804 Views
yyLeung
Contributor I
Hello,
If anyone can give an example of a makefile that can build a s19 file with Metrowerks CodeWarrior IDE version 5.6.1
 
The CPU we use is MC9S08GB32.
 
Thanks a lot.
yyLeung
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,260 Views
CrasyCat
Specialist III
Oups Just noticed that the sample project is not delivered with V5.1 .
(Thanks CompilerGuru for notifying me) :smileywink:
 
Find attached a zip file containing that sample project.
 
CrasyCat

View solution in original post

0 Kudos
Reply
7 Replies
1,260 Views
CrasyCat
Specialist III
Hello
 
If you are running CodeWarrior for HC08 V5.1, look at the example located in
{Install}\(CodeWarrior_Examples)\MakeFileSample.
 
This is a example of a project build with a make file. The make file there is pretty generic and the document TN250 - Automake_HC08.pdf in the same directory provides you guidance to adjust the make file to your own project.
 
I hope this helps.
 
CrasyCat
0 Kudos
Reply
1,261 Views
CrasyCat
Specialist III
Oups Just noticed that the sample project is not delivered with V5.1 .
(Thanks CompilerGuru for notifying me) :smileywink:
 
Find attached a zip file containing that sample project.
 
CrasyCat
0 Kudos
Reply
1,260 Views
Nge
Contributor I

Hello,

 

I have been trying to make the example work with CW6.3  with no luck... is there an updated version?

 

Thanks

0 Kudos
Reply
1,260 Views
CrasyCat
Specialist III

Hello

 

Which kind of message do you get?

I am able to build the delivered sample project with V6.2.

 

Just make sure to adjust the INSTALLPATH environment variable in build.bat

 

CrasyCat

0 Kudos
Reply
1,260 Views
Nge
Contributor I

 

Hi Cat,
Thanks for answering. I did adjust the INSTALLPATH environment variable in build.bat. 
The message I have been receiving is the following:
"Top: D:\MakeFileSample\default.mak
Reading make file 'D:\MakeFileSample\DEFAULT.MAK'
DEFAULT.MAK(186): WARNING M5012: Include file not found: MyProject.dep
D:\MakeFileSample\default.mak: INFORMATION M5027: Making target main.o
D:\MakeFileSample\default.mak: ERROR M5118: Could not create process: open file error
Maker: *** 1 error(s), 1 warning(s), 1 information message(s) ***
*** command line: '-ENV"GENPATH=.\Sources;C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.3\lib\hc08c\src;C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.3\lib\hc08c\lib" 
-ENV"OBJPATH=.\bin" -ENV"ABSPATH=.\bin" -ENV"TEXTPATH=.\bin" default.mak' ***
Maker: *** Error occurred while processing! ***"
Do you have any idea what could be the problem?
Thanks a lot

 

0 Kudos
Reply
1,260 Views
CrasyCat
Specialist III

Hello

 

Can you try to re-install codeWarrior in a directory without spaces in the full path name?

 

For instance install in C:\Freescale\CodeWarrior_Microcontrollers_V6.3

 

Otherwise you need to enclose all paths in double quotes.

 

CrasyCat

0 Kudos
Reply
1,260 Views
yyLeung
Contributor I
Thanks cat. I tried and success.
Thanks a lot.
0 Kudos
Reply