## ## PIN tools ## ############################################################## # # Here are some things you might want to configure # ############################################################## #TARGET_COMPILER?=ms TARGET_COMPILER?=gnu ############################################################## # # include *.config files # ############################################################## ifeq ($(TARGET_COMPILER),gnu) include ../makefile.gnu.config OPT=-O2 CXXFLAGS = -I$(PIN_HOME)/InstLib -fomit-frame-pointer -Wall -Werror -Wno-unknown-pragmas $(DBG) $(OPT) -MMD LINKER?=${CXX} endif ifeq ($(TARGET_COMPILER),ms) include ../makefile.ms.config # DBG?= endif TOOL_ROOTS = insmix TOOLS = $(TOOL_ROOTS:%=%$(PINTOOL_SUFFIX)) all: tools tools: $(TOOLS) ## build rules %.o : %.cpp $(CXX) -c $(CXXFLAGS) $(PIN_CXXFLAGS) ${OUTOPT}$@ $< $(TOOLS): $(PIN_LIBNAMES) $(TOOLS): %$(PINTOOL_SUFFIX) : %.o $(LINKER) $(PIN_LDFLAGS) ${LINK_OUT}$@ $< $(PIN_LIBS) $(DBG) ## cleaning clean: -rm -f *.o $(TOOLS) *.out *.exp *.lib *.tested *.failed *.d -include *.d