Add a rule to get the footprint of binaries and libraries.