By the way, there are going to be two parallel clibs in the next release, one using the existing clib and libraries and the other using the new clib with direct support for sdcc. By direct I mean the C interface is written for sdcc so all functions in the new clib should work. If the C interface for a particular function is not explicitly written for sdcc we are relying on zcc to smooth the calling between sdcc and z88dk's library, which may or may not work depending on the function.
The parallel implementation means there are two source directories, two include directories and two targets for each machine. When I say two targets I mean one for the current clib and three for the new clib. The three are sccz80 (for z88dk's native compiler, with fastcall and callee linkage), sdcc_ix (for sdcc, only C linkage and right to left parameter order, library uses IX which causes some faffing as sdcc also uses ix), sdcc_iy (for sdcc, only C linkage and right to left parameter order, library uses iy). There is also an option to build an assembler-only version of the library.
The way things will work is almost settled. You can see how I'm creating targets for the new clib in:
http://z88dk.cvs.sourceforge.net/viewvc ... NT/target/
The new targets are "zx_dev" "zx_devsx" "zx_devsy", the latter two being for sdcc and their configs are in the usual place:
http://z88dk.cvs.sourceforge.net/viewvc ... ib/config/
In the end I will probably merge those three targets into a single "zx_dev" which will mean compile line options will choose to use sdcc and library selection will be automatic.