Revert "simplify makefile"

This reverts commit a3d5fdef5895e2adc27e6f26f0a61905cdf1d147.