how to create lib file for c file with codewarrior2.10?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to create lib file for c file with codewarrior2.10?

659 Views
huanghai
Contributor I

i have codewarrior2.10.

i want to convert c file to a lib file.How can i do?thanks.

0 Kudos
3 Replies

546 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

open project settings, choose EPPC Target option and select Library instead of Application. Please see the figure below.

pastedImage_1.png

If you have any other questions, please feel free to write me back.

Regards,

Martin

0 Kudos

546 Views
huanghai
Contributor I

Hello,Martin,thanks for reply.

I follow your steps,click OK and click Make to build project,but it does not create other file like .lib file type.

My project compose with .c and .h files,some .c file are more important,so I only want to convert these .c file(not all .c file) into lib file.Is there some good method?

I remember that cw4.x has a tool which name is Libmaker.exe,it can covert one .c file into one .lib file.

0 Kudos

546 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

CodeWarrior by default creates output file with the same name for application and also for library. Please change the name of your output file in second line.

pastedImage_1.png

Regards,

Martin

0 Kudos