You can make your software available under the GPL, allowing anyone to inclue your code in other GPL'd software.
You can solicit royalties from those who want to use your code in their proprietary software.