makefiles: Build the libs subdirectories directly from the top-level makefile.