You can encrypt your source with any good encryption tool, of course.
But obviously you can’t compile it anymore …
But perhaps a library could help you.
You can build a library which contains your GSM stuff.
Then you and others can call the functions from the library, the only file you have to distribute, is the *.h file where the declarations are.
2
solved How to encrypt header files in C [closed]