From 58ba255e29bad8a3d7e660620d9b0201c42a3fdc Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 22 Mar 2016 15:59:15 +0000 Subject: Add Google Perf Tools build. "make build=gperf" will now build and link the google perf tools library into mutool. When mutool is then run, a mutool.prof file is dropped into the current directory that can be analysed. --- Makerules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index f9f2b06f..c73d8242 100644 --- a/Makerules +++ b/Makerules @@ -32,6 +32,9 @@ ifeq "$(HAVE_LIBDL)" "yes" CFLAGS += -DHAVE_LIBDL LIBS += -ldl endif +else ifeq "$(build)" "gperf" +CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer -DGPERF +LIBS += -lprofiler else $(error unknown build setting: '$(build)') endif -- cgit v1.2.3