Revert "Optimize makefile"

This reverts commit 7884a8ac131c2661335b5de68369ded23801bd36.