.sdef file creat

Any one know about how to generate .sdef file without legato app ?
I have build system file and loaded in module. it is given shared library error.