Refactor Makefile to decouple from filenames

There's no need to specify each file name, just use wildcards.