rules.mk: introduce new variable OUTPUT_DIR