extend the rules/c-objs macro to take the way as a parameter