base.mk: use eval to generate flag checks.