compile script and makefile