The following steps help rebuild the EWL library files on the command prompt.
cd C:\Freescale\CW MCU v10.x\MCU\ARM_GCC_Support\ewl
..\ewl>set ARM_TOOLS=C:\Freescale\CW MCU v10.x\Cross_Tools\arm-none-eabi-gcc-4_7_3 ..\ewl>set PLATFORM=arm ..\ewl>set VENDOR=GCC
You can find make utility at ' \CW MCU v10.x\gnu\bin\'
For example: If you want to build libc.a for cortex-m0, do: make TARGET=/armv6-m/ libc .
This builds libc.a under lib/armv6-m folder. Also you can build only C/C++/runtime libraries.
This builds all C libraries such as libc.a, libc99.a and libm.a for cortex-m0 and cortex-m4 architectures at armv6-m and armv7e-m respectively.
This builds C++ libraries such as libc++.a and libstdc++.a for cortex-m0 and cortex-m4 architectures.
This builds runtime libraries such as librt.a, libhosted.a, libuart.a, __arm_start.o, __arm_start- hosted.o, __arm_end.o and __arm_end-hosted.o for the both architectures.
9. To clean the libraries: make clean