make: don't call mkdir -p a lot
make: use $@ and $<
make: call ranlib
make: don't invoke wildcard repeatedly
make: easier to read object targets
Merge pull request #1571 from Kijewski/make-mkdir-once

make: cleanup Makefile.base