Produce dylib and rlib