parent
a5ff4bd263
commit
346032797a
2 changed files with 25 additions and 2 deletions
@ -1,9 +1,26 @@ |
|||||||
# Sample Makefile for Capstone Disassembly Engine
|
# Sample Makefile for Capstone Disassembly Engine
|
||||||
|
|
||||||
|
include ../functions.mk |
||||||
|
|
||||||
|
.PHONY: clean |
||||||
|
|
||||||
LIBNAME = capstone
|
LIBNAME = capstone
|
||||||
|
|
||||||
cstool: cstool.o |
cstool: cstool.o |
||||||
${CC} $< -O3 -Wall -l$(LIBNAME) -o $@
|
ifeq ($(V),0) |
||||||
|
$(call log,LINK,$@)
|
||||||
|
@${CC} $< -O3 -Wall -L.. -l$(LIBNAME) -o $@
|
||||||
|
else |
||||||
|
${CC} $< -O3 -Wall -L.. -l$(LIBNAME) -o $@
|
||||||
|
endif |
||||||
|
|
||||||
|
clean: |
||||||
|
${RM} -rf *.o cstool
|
||||||
|
|
||||||
%.o: %.c |
%.o: %.c |
||||||
${CC} -c $< -o $@
|
ifeq ($(V),0) |
||||||
|
$(call log,CC,$@)
|
||||||
|
@$(compile)
|
||||||
|
else |
||||||
|
$(compile)
|
||||||
|
endif |
||||||
|
Loading…
Reference in new issue