[SOLVED] How to Compile the Code

I guess I do not really know the difference. I want to edit the APM and put it on the pi. When you download the APM the site gives you, it gives a .deb file, so I assumed that I needed to create a new file of the same type, but with my edited code files used to make it.