From: Andreas Färber <address@hidden>
Juan has donated a cool Makefile infrastructure that enables us to
drop
static libraries completely:
Move shared obj-y definitions to Makefile.objs, prefixed common-,
hw-, user-.
Link those object files directly.
Replace HWLIB by HWDIR, specifying only the directory.
Drop --whole-archive and ARLIBS in Makefiles and configure.
Drop GENERATED_HEADERS dependency in rules.mak, since this rebuilds
all
common objects after generating a target-specific header. Add
dependency
rules to Makefile and Makefile.target instead.