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