Add -L and -a code to Makefile

Closes #30