add macros.mk, rules.mk