file extensions are a windows thing. .bin is basically meaningless.
about 5% of what you learnt about computers form windows applies to linux. the remainder is partially or completely wrong.
To generate a binary file you need to compile the source.
If you want to create a package, getting and examining the source to the hello package and its documentation is probably a good start.
do this:
1. apt-get source hello
2. sudo apt-get build-dep hello