diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2016-03-22 15:59:15 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-22 16:58:18 +0000 |
commit | 58ba255e29bad8a3d7e660620d9b0201c42a3fdc (patch) | |
tree | c8766c6b4281ca43e1df1c32f6e13d2ec9d7ba08 /Makerules | |
parent | 8f7f4981d031ffa907cdfd2767438276ebb6ae7c (diff) | |
download | mupdf-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-- | Makerules | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |