diff options
Diffstat (limited to 'capstone/functions.mk')
-rw-r--r-- | capstone/functions.mk | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/capstone/functions.mk b/capstone/functions.mk new file mode 100644 index 000000000..d734ce5d5 --- /dev/null +++ b/capstone/functions.mk @@ -0,0 +1,13 @@ +# 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 + |