new makefile with main function