makefiles: Generate the loader rules from configure.