| 1 | # Capstone Disassembly Engine |
| 2 | # Common functions used by Makefile & tests/Makefile |
| 3 | |
| 4 | define compile |
| 5 | $(ifeq ($(MACOS_UNIVERSAL),no), |
| 6 | @$(CC) -MM -MP -MT $@ -MT $(@:.o=.d) $(CFLAGS) $< > $(@:.o=.d) |
| 7 | ) |
| 8 | ${CC} ${CFLAGS} -c $< -o $@ |
| 9 | endef |
| 10 | |
| 11 | |
| 12 | define log |
| 13 | @printf " %-7s %s\n" "$(1)" "$(2)" |
| 14 | endef |
| 15 |