diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index c045b4271e57..9f8d207a91bf 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -166,7 +166,35 @@ endif | |||
166 | 166 | ||
167 | # CFLAGS and LDFLAGS are for the users to override from the command line. | 167 | # CFLAGS and LDFLAGS are for the users to override from the command line. |
168 | 168 | ||
169 | CFLAGS = $(M64) -ggdb3 -Wall -Wextra -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -std=gnu99 -Wdeclaration-after-statement -Werror -O6 | 169 | # |
170 | # Include saner warnings here, which can catch bugs: | ||
171 | # | ||
172 | |||
173 | EXTRA_WARNINGS := -Wcast-align | ||
174 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat | ||
175 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-security | ||
176 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wformat-y2k | ||
177 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wshadow | ||
178 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Winit-self | ||
179 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wpacked | ||
180 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wredundant-decls | ||
181 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstack-protector | ||
182 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-aliasing=3 | ||
183 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-default | ||
184 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wswitch-enum | ||
185 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wno-system-headers | ||
186 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wundef | ||
187 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wvolatile-register-var | ||
188 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wwrite-strings | ||
189 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wbad-function-cast | ||
190 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-declarations | ||
191 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wmissing-prototypes | ||
192 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wnested-externs | ||
193 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wold-style-definition | ||
194 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wstrict-prototypes | ||
195 | EXTRA_WARNINGS := $(EXTRA_WARNINGS) -Wdeclaration-after-statement | ||
196 | |||
197 | CFLAGS = $(M64) -ggdb3 -Wall -Wextra -std=gnu99 -Werror -O6 -fstack-protector-all -D_FORTIFY_SOURCE=2 $(EXTRA_WARNINGS) | ||
170 | LDFLAGS = -lpthread -lrt -lelf -lm | 198 | LDFLAGS = -lpthread -lrt -lelf -lm |
171 | ALL_CFLAGS = $(CFLAGS) | 199 | ALL_CFLAGS = $(CFLAGS) |
172 | ALL_LDFLAGS = $(LDFLAGS) | 200 | ALL_LDFLAGS = $(LDFLAGS) |
@@ -310,6 +338,7 @@ LIB_H += util/sigchain.h | |||
310 | LIB_H += util/symbol.h | 338 | LIB_H += util/symbol.h |
311 | LIB_H += util/module.h | 339 | LIB_H += util/module.h |
312 | LIB_H += util/color.h | 340 | LIB_H += util/color.h |
341 | LIB_H += util/values.h | ||
313 | 342 | ||
314 | LIB_OBJS += util/abspath.o | 343 | LIB_OBJS += util/abspath.o |
315 | LIB_OBJS += util/alias.o | 344 | LIB_OBJS += util/alias.o |
@@ -337,6 +366,13 @@ LIB_OBJS += util/color.o | |||
337 | LIB_OBJS += util/pager.o | 366 | LIB_OBJS += util/pager.o |
338 | LIB_OBJS += util/header.o | 367 | LIB_OBJS += util/header.o |
339 | LIB_OBJS += util/callchain.o | 368 | LIB_OBJS += util/callchain.o |
369 | LIB_OBJS += util/values.o | ||
370 | LIB_OBJS += util/debug.o | ||
371 | LIB_OBJS += util/map.o | ||
372 | LIB_OBJS += util/thread.o | ||
373 | LIB_OBJS += util/trace-event-parse.o | ||
374 | LIB_OBJS += util/trace-event-read.o | ||
375 | LIB_OBJS += util/trace-event-info.o | ||
340 | 376 | ||
341 | BUILTIN_OBJS += builtin-annotate.o | 377 | BUILTIN_OBJS += builtin-annotate.o |
342 | BUILTIN_OBJS += builtin-help.o | 378 | BUILTIN_OBJS += builtin-help.o |
@@ -345,6 +381,7 @@ BUILTIN_OBJS += builtin-record.o | |||
345 | BUILTIN_OBJS += builtin-report.o | 381 | BUILTIN_OBJS += builtin-report.o |
346 | BUILTIN_OBJS += builtin-stat.o | 382 | BUILTIN_OBJS += builtin-stat.o |
347 | BUILTIN_OBJS += builtin-top.o | 383 | BUILTIN_OBJS += builtin-top.o |
384 | BUILTIN_OBJS += builtin-trace.o | ||
348 | 385 | ||
349 | PERFLIBS = $(LIB_FILE) | 386 | PERFLIBS = $(LIB_FILE) |
350 | 387 | ||