How do i make a libary for Haiku OS

Well, in your case for self compiled libs by the user, you’d want to stick your library into ~/config/non-packaged/lib. As for your headers, just create a directory called “headers” in ~/config/non-packaged. As a note, you will still have to tell the compiler of that header directory.