Create a folder structure like so:
/my_library.xml
/my_library
file_1
file_2
etc
Then in your my_library.xml file, add the following
<?xml version="1.0" encoding="utf-8"?>
<extension type="library" method="upgrade" version="3.4">
<name>My Library</name>
<libraryname>mylibrary</libraryname>
<author>Malaiselvan</author>
<creationDate>September 2015</creationDate>
<copyright>Copyright (C) 2015</copyright>
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
<authorEmail>[email protected]</authorEmail>
<authorUrl>www.example.com</authorUrl>
<version>1.0</version>
<description>Some description</description>
<files>
<folder>my_library</folder>
</files>
</extension>
Once all is done, zip everything up and install it like you would any other extension.
Hope this helps