parse command line arguments. fixed makefile