fix run prog in sequence using for loop
update Makefile
add a global Makefile