## ## 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 LINKER?=${CXX} CXXFLAGS ?= -Wall -Werror -Wno-unknown-pragmas $(DBG) $(OPT) endif ifeq ($(TARGET_COMPILER),ms) include ../makefile.ms.config DBG?= endif ############################################################## # # Tools sets # ############################################################## TOOL_ROOTS = strace TOOLS = $(TOOL_ROOTS:%=%$(PINTOOL_SUFFIX)) ############################################################## # # build rules # ############################################################## 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_DEBUG) ${LINK_OUT}$@ $< ${PIN_LPATHS} $(PIN_LIBS) $(DBG) ## cleaning clean: rm -f *~ *.o $(TOOLS) *.out *.tested *.failed *.d *.makefile.copy *.exp *.lib