Simple GNU Makefile for Standard Metrowerks Projects

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

Simple GNU Makefile for Standard Metrowerks Projects

1,074 次查看
Jim_Kemp
Contributor I
Hello All,

Does anyone have a simple GNU makefile that can be adapted to the standard Metrowerks project layout. In other words, I want to switch from the GUI and start using GNU make to rebuild my project. The makefile needs to rebuild several directories such as “CODE” and “Sources” plus a few that I have added. It would be nice if all the objects went into an obj output directory. The complete solution would also automatically sort out the dependencies (but I can hanndle this for now).

This can’t be that hard – but after several hours of reading the GNU make manual my head is spinning.

Thanks for any help you can provide,
Jim
标签 (1)
0 项奖励
1 回复

331 次查看
englere
Contributor I
This Yahoo forum is a good place to ask this kind of question:
 
 
You'll need both a makefile and a linker script.
 
My IDE makes very simple makefiles and linker scripts for you, and this would give you a place to start. But it only works on Windows.
 
 
Eric
0 项奖励