blob: d734ce5d51767c1519827e94549b034bf702095d [file] [log] [blame] [edit]
# Capstone Disassembly Engine
# Common functions used by Makefile & tests/Makefile
define compile
@$(CC) -MM -MP -MT $@ -MT $(@:.o=.d) $(CFLAGS) $< > $(@:.o=.d)
${CC} ${CFLAGS} -c $< -o $@
endef
define log
@printf " %-7s %s\n" "$(1)" "$(2)"
endef