moving compilation to Makefile