Cosmic Compiler - how to run from command line
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-11-03 7:09 AM
HI,
I have a project which contains 12 different 'targets' defined by different &sharpdefines. Now i need to edit .h file manually, uncomment one of 12 defines, build it and do the same for all the targets.
What is best approach to trigger building project for different configuration by single click/single command...
It would be also nice to have output files (s19) named according to selected target.
Thank you in advance
Krzysiek
#cosmic-compiler #stm8- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-11-04 11:29 PM
For a similar task, I use GNU make. The Makefile uses pattern rules, static patterns and pattern-specific variables. I have 3 programs, each compiled for 8 targets each with 4 different sets of compiler options. I use SDCC on GNU/Linux, but the approach should work with any compiler. AFAIR, Cosmic has a section 'Compiler Command Line Options' in the manual.
Philipp
