cstool: fix Makefile

This commit is contained in:
Nguyen Anh Quynh 2016-10-10 23:07:39 +08:00
parent 346032797a
commit a169963a61

View File

@ -4,14 +4,17 @@ include ../functions.mk
.PHONY: clean
CFLAGS = -I../include
LDFLAGS = -O3 -Wall -L.. -l$(LIBNAME)
LIBNAME = capstone
cstool: cstool.o
ifeq ($(V),0)
$(call log,LINK,$@)
@${CC} $< -O3 -Wall -L.. -l$(LIBNAME) -o $@
@${CC} $(LDFLAGS) $< -o $@
else
${CC} $< -O3 -Wall -L.. -l$(LIBNAME) -o $@
${CC} $(LDFLAGS) $< -o $@
endif
clean:
@ -20,7 +23,7 @@ clean:
%.o: %.c
ifeq ($(V),0)
$(call log,CC,$@)
@$(compile)
@${CC} $(CFLAGS) -c $< -o $@
else
$(compile)
${CC} $(CFLAGS) -c $< -o $@
endif