Modified the makefile to build three types of the program