Hello,
I am using makefiles to build the project, and there I am trying to make a library out of some object files.
Compiler is doing fine, it is making all the object files correctly. But when I try making library using -cmd command librarian fails to do so.
AR_COMMAND = C:\Freescale\CWMCUV~1.6\MCU\S12lisa_Tools\Build_Tools\libmaker -WmsgNu=abc -Cmd{$(OBJS) = $(LIBNAME)}
AR_COMMAND is used to make library with name = LIBNAME, OBJS has all the object files make by compiler.
Does anybody has any idea what's wrong with the AR_COMMAND?
Best Regards,
Omer
Hi Omer,
By default when you create an example with the wizard you can select between Application or library.
I've created a project for library and build it.
Extract of console:
+++++++++++++++++++++++
**** Clean-only build of configuration Debug for project test_lib_s12lisa ****
Build complete for project test_lib_s12lisa
**** Build of configuration Debug for project test_lib_s12lisa ****
"E:\\Freescale\\CW_MCU_v10.6\\gnu\\bin\\mingw32-make" -j8 all
'Building file: ../Lib/mylibrary.c'
'Executing target #1 ../Lib/mylibrary.c'
'Invoking: S12Z Compiler'
"E:/Freescale/CW_MCU_v10.6/MCU/S12lisa_Tools/Build_Tools/mwccs12lisa" -c @@"Lib/mylibrary.args" -o "Lib/mylibrary_c.obj" "../Lib/mylibrary.c" -MD -gccdep
'Finished building: ../Lib/mylibrary.c'
' '
'Building target: test_lib_s12lisa.lib'
'Executing target #2 test_lib_s12lisa.lib'
'Invoking: S12Z Libmaker'
"E:/Freescale/CW_MCU_v10.6/MCU/S12lisa_Tools/Build_Tools/libmaker" -NoPath -cmd( "./Lib/mylibrary_c.obj" = "test_lib_s12lisa.lib")
- ./Lib/mylibrary_c.obj
- E:\Temp_bis\Community\355016\MCU_10.6\test_lib_s12lisa\Debug\test_lib_s12lisa.lib
Listing of 'test_lib_s12lisa.lib' is written to 'E:\Temp_bis\Community\355016\MCU_10.6\test_lib_s12lisa\Debug\test_lib_s12lisa.lst'
'Finished building target: test_lib_s12lisa.lib'
' '
+++++++++++++++++++++++
May be there is an issue with the path.
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------