how to generate the *.lib file from the original .c /.h file using specific setting done in the code warrior suite..
Solved! Go to Solution.
Hello
Thanks it is much more clear to me now.
In order to create a project for an object library:
- Create your project as usual using the wizard
- Open the Target Settings dialog (Press ALT + F7)
- In the Target -> Target Settings panel change Linker to Libmaker for HC12 or Libmaker for HC08 (depending on the processor you are targeting).
- You will see a new panel Libmaker for HC12 or Libmaker for HC08 (according to the target), where you can adjust name of the library you want to create.
If your library is MCU independent, you can remove the MCU related .c and ,h file from your project. Just select the corresponding file names and click DELETE key.
I hope this helps.
CrasyCat
To make my question more simple, In one of the project customer asked us to develop of specific algo related to their
application. In order to protect the algo i want to covert this file in .lib format & provide to customer with some known API
defination so that further can be used for development purpose without disclosing the background code.
I hope it will be much clear situation.
Hello
Thanks it is much more clear to me now.
In order to create a project for an object library:
- Create your project as usual using the wizard
- Open the Target Settings dialog (Press ALT + F7)
- In the Target -> Target Settings panel change Linker to Libmaker for HC12 or Libmaker for HC08 (depending on the processor you are targeting).
- You will see a new panel Libmaker for HC12 or Libmaker for HC08 (according to the target), where you can adjust name of the library you want to create.
If your library is MCU independent, you can remove the MCU related .c and ,h file from your project. Just select the corresponding file names and click DELETE key.
I hope this helps.
CrasyCat
Thanks for your wonderful support..
It works as i required to send the info.. to my customer..
Warm Regards,
Rohit
Hello
Not sure I understand the question here.
Are you asking how you can rebuild the ANSI library after changing some compilation option?
If this is the question, there is a .mcp file in the {Install}\lib\hc08c or {Install}\lib\hc12c that can be loaded in CodeWarrior to rebuild the libraries.
CrasyCat