Fix Makefile syntax

Some version of GNU make seem unaffected but I think this is more
correct.
Rearrange source code

Move all the source and SQL code into a single file.  It seems easier
to deal with with pgxn this way.