capstone/functions.mk
2023-05-19 19:50:46 +01:00

16 lines
292 B
Makefile

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