Adapting Makefile