How does these makefiles work