## ## 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 ############################################################## # # build rules # ############################################################## TOOL_ROOTS = icache dcache allcache dcache_xscale_config all: tools TOOLS = $(TOOL_ROOTS:%=%$(PINTOOL_SUFFIX)) tools: $(TOOLS) test: $(TOOL_ROOTS:%=%.test) ## 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 *.exp *.lib