Pull crypto/Makefile details into crypto/build.mk

This is the first step towards trying to get the top-level Makefile to include
build.mk files directly.
Extract Makefile implementations into build.mk