diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /capstone/functions.mk | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
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 + |