I wished to create my own library files for LCD n timers of ATmega128. I use AVR studio to program. Can you tell me how should I create library files, so that while coding I just include them in the code?
I don't use AVR studio, however most of the programming environments I do use have procedures for creating libraries, so I suggest you find the section in your documentation that describes library creation. Otherwise, you can just create a directory on your development system where you put library files and just statically link them.
Look here http://en.wikipedia.org/wiki/Header_file, beasically .h file should contain declarations of functions in .c.
The .h file should have the guard mechanism described in the wiki article so that you can include one header file in different others and prevent double declaration of the functions.