diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 0cbd5d6874ec..36d7eef49913 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -157,10 +157,15 @@ uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not') | |||
157 | uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not') | 157 | uname_P := $(shell sh -c 'uname -p 2>/dev/null || echo not') |
158 | uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not') | 158 | uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not') |
159 | 159 | ||
160 | # If we're on a 64-bit kernel, use -m64 | ||
161 | ifneq ($(patsubst %64,%,$(uname_M)),$(uname_M)) | ||
162 | M64 := -m64 | ||
163 | endif | ||
164 | |||
160 | # CFLAGS and LDFLAGS are for the users to override from the command line. | 165 | # CFLAGS and LDFLAGS are for the users to override from the command line. |
161 | 166 | ||
162 | CFLAGS = -ggdb3 -Wall -Werror -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -std=gnu99 -Wdeclaration-after-statement -O6 | 167 | CFLAGS = $(M64) -ggdb3 -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -std=gnu99 -Wdeclaration-after-statement -Werror -O6 |
163 | LDFLAGS = -lpthread -lrt -lelf | 168 | LDFLAGS = -lpthread -lrt -lelf -lm |
164 | ALL_CFLAGS = $(CFLAGS) | 169 | ALL_CFLAGS = $(CFLAGS) |
165 | ALL_LDFLAGS = $(LDFLAGS) | 170 | ALL_LDFLAGS = $(LDFLAGS) |
166 | STRIP ?= strip | 171 | STRIP ?= strip |
@@ -285,6 +290,7 @@ LIB_FILE=libperf.a | |||
285 | 290 | ||
286 | LIB_H += ../../include/linux/perf_counter.h | 291 | LIB_H += ../../include/linux/perf_counter.h |
287 | LIB_H += perf.h | 292 | LIB_H += perf.h |
293 | LIB_H += types.h | ||
288 | LIB_H += util/list.h | 294 | LIB_H += util/list.h |
289 | LIB_H += util/rbtree.h | 295 | LIB_H += util/rbtree.h |
290 | LIB_H += util/levenshtein.h | 296 | LIB_H += util/levenshtein.h |