build: Fix per-object variables for Makefile.target