|
|
|
Re: cdt autogenerated Makefile Script [message #1723429 is a reply to message #1723426] |
Mon, 15 February 2016 15:37 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
It does what most anyone would do when creating a make file: identify the sources; add rules and recipes to create object and dependency files; do similar for linking them together. The tool chain is mostly for generating make file recipes. Eclipse basically expects all source files would be included in the final build. There isn't much additional processing applied. The commands in the tool chain become part of the make recipes.
You could try modifying the compiler command to do what you want prior to the actual compile. Another option might be a pre-build step. http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_prop_build_settings_steps.htm Or you could use a script call in place of a compile command.
There's a post-build step as well which you can use as required but you can also change the linker command to be a script call as well.
One thing you should be aware of is that Eclipse tends to run make a lot and doesn't bother to see if it will result in making new files. So, pre- and post- build steps might happen when not necessary. I've personally chosen to avoid messing with Eclipse and build my own make files. It's amazing how much automation can be built into one of them. Often just needs a little thought.
[Updated on: Mon, 15 February 2016 15:37] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03224 seconds