add configuration files and use prefix and bindir in Makefile