build: Redo Makefile a bit

A few changes:

 * Don't hardcode 'gcc' and use $(CC) instead
 * Split off CFLAGS/LDFLAGS so we can pick them up from the environment
 * Add a static library build
1 file changed