Drop -O3 and allow user to specify their optimizations. --- a/cstool/Makefile +++ b/cstool/Makefile @@ -1,13 +1,14 @@ # Makefile for Cstool of Capstone Disassembly Engine include ../functions.mk +include ../config.mk .PHONY: clean all LIBNAME = capstone CFLAGS += -I../include -I. -LDFLAGS += -O3 -Wall -L.. -l$(LIBNAME) +LDFLAGS += -Wall -L.. -l$(LIBNAME) TARGET = cstool SOURCES := $(wildcard *.c)