replacing -D with ${MACRODEFFLAG}