summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2016-03-22 15:59:15 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-22 16:58:18 +0000
commit58ba255e29bad8a3d7e660620d9b0201c42a3fdc (patch)
treec8766c6b4281ca43e1df1c32f6e13d2ec9d7ba08 /Makerules
parent8f7f4981d031ffa907cdfd2767438276ebb6ae7c (diff)
downloadmupdf-58ba255e29bad8a3d7e660620d9b0201c42a3fdc.tar.xz
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.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules3
1 files changed, 3 insertions, 0 deletions
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