Makefile for My project

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

Makefile for My project

1,633 次查看
yalamandadosaky
Contributor V

Hi NXP,

I am using s32ds v1.2 power pc for my project which is based on mpc5748g. As per requirement , We need to build Project from command line instead of using s32ds.

May be with own make file ,How can I build and generate elf file for my project with own make file ?

Any suggestion can be highly appreciated.

1 回复

1,136 次查看
stanish
NXP Employee
NXP Employee

Hello,

You can of course create your own makefile and call the command line gcc/binutils yourself:

"c:\NXP\S32DS_Power_v2017.R1\Cross_Tools\powerpc-eabivle-4_9\bin\*"

In fact IDE project generates make files automatically. So you can adjust the generated makefile to match your need.

Other approach is to run eclipse in headless mode and benefit from eclipse IDE features such as makefile generator.

See more info e.g. here:

HOWTO: S32 Design Studio Command Line Interface 

Building Projects with Eclipse from the Command Line | MCU on Eclipse 

Hope it helps.

Stan