Set exit status and add a makefile