Thank you Erich, that could be the basis of a usable workaround. I think the bigger problem (as MJW points out) is that CW10 only supports the Magnivi S12 object code set (e.g. S12Z),
whereas CW5 is only supporting the classic HC12/S12 set (e.g. S12G), so linking these is not feasible anyway until we get CW10 support for any classic HC12/S12 device.
Our library is generic C code and does not deal with the peripherals or memory map so we'd overlooked the object code differences between some S12 families.
We'll just have build our S12 Magnivi lib and Doxygen docs in CW10, then create a mirrored CW5 project for building the classic HC12/S12 lib.
It would be nice if the CW5 linker error message was improved from:
"Link Error: L1400: Incompatible processor: Freescale HC12 in previous files and Freescale S12XG in current file MyLibraryFile.lib"
to
"Link Error: L1400: Incompatible processor: Freescale HC12/S12 (classic) in previous files and Freescale S12 (Magnivi) in current file MyLibraryFile.lib"
I've put that request in a ticket.
Thanks for your help!