This looks like a handy tool!
Is there a way to specify Code::Blocks's conf file? I scanned this topic and looked at the config doc for cbp2make and did not see anything obvious.
I use several different conf file depending on the toolchain and whether the project build environment is portable or not.
Update: seems as if cbp2make does not reference a conf file. I am getting error:
Generating makefile(s): test_UART.cbp.mak: Warning: toolchain 'armelfgcc' for target 'Debug' is not defined.
Warning: toolchain 'armelfgcc' for target 'Release' is not defined.
Warning: toolchain 'armelfgcc' for target 'Debug' is not defined.
Warning: toolchain 'armelfgcc' for target 'Release' is not defined.
Does this mean that global settings are not included?
Update 2:
I created a new armelfgcc toolchain entry in the CFG file. cbp2make seems to be happy with that.
Now to move any global settings to the project settings.
Update 3:
Work pretty good! But, it is ignoring assembly files (.s & .S). I'll manually add those and report on progress.
Last Update:
I added the assembly files and the output file was generated successfully, when the (modified) make file was ran!
Two additional things I had to fix:
1) When clean is specified, the order that the directory deletions was done was incorrect. It attempted to remove a parent directory before a sub directory was removed. Also, it does not remove any nested parent directories that did not contain files. As an example: I had a source file file in level5
.\level1\level2\level3\level4\level5\file.o
it attempted to remove .\level1 before removing .\level1\level2\level3\level4\level5
Also, it did not attempt to remove .\level1\level2\level3\level4, .\level1\level2\level3 or .\level1\level2 directories I presume because they did not contain any object files.
2) Is there any way I can resolve the Code::Blocks predefined symbols %TARGET_OUTPUT_DIR% and %TARGET_OUTPUT_BASENAME% without defining exact directory and file name?
Ha, I lied, one more update:
I tried to add a single variable, but it is always added as a set. It works OK, just adds a lot of unnecessary verbiage to the make file.
Thank you very much for putting the effort into creating this application!
Vance