Hi Shigenori,
You can use the CLI --library option to specify that a library be built instead of an executable. Please see the markdown documentation here for an explanation of the options:
If you have problems using this option, please tell us:
- What error are you getting?
- What is the complete command you are using to build it with the CLI?
- What library are you starting from and how was it originally built?
Regards,
Ralph, Team Mbed