diff options
| -rw-r--r-- | tools/perf/config/Makefile | 43 |
1 files changed, 19 insertions, 24 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 976599319c6e..f139dcd2796e 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
| @@ -78,13 +78,12 @@ ifdef PARSER_DEBUG | |||
| 78 | CFLAGS += -DPARSER_DEBUG | 78 | CFLAGS += -DPARSER_DEBUG |
| 79 | endif | 79 | endif |
| 80 | 80 | ||
| 81 | CFLAGS += \ | 81 | CFLAGS += -fno-omit-frame-pointer |
| 82 | -fno-omit-frame-pointer \ | 82 | CFLAGS += -ggdb3 |
| 83 | -ggdb3 \ | 83 | CFLAGS += -funwind-tables |
| 84 | -funwind-tables \ | 84 | CFLAGS += -Wall |
| 85 | -Wall \ | 85 | CFLAGS += -Wextra |
| 86 | -Wextra \ | 86 | CFLAGS += -std=gnu99 |
| 87 | -std=gnu99 | ||
| 88 | 87 | ||
| 89 | EXTLIBS = -lpthread -lrt -lelf -lm | 88 | EXTLIBS = -lpthread -lrt -lelf -lm |
| 90 | 89 | ||
| @@ -106,30 +105,26 @@ ifndef PERF_DEBUG | |||
| 106 | endif | 105 | endif |
| 107 | endif | 106 | endif |
| 108 | 107 | ||
| 109 | CFLAGS += \ | 108 | CFLAGS += -I$(src-perf)/util/include |
| 110 | -I$(src-perf)/util/include \ | 109 | CFLAGS += -I$(src-perf)/arch/$(ARCH)/include |
| 111 | -I$(src-perf)/arch/$(ARCH)/include \ | 110 | CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi |
| 112 | -I$(srctree)/arch/$(ARCH)/include/uapi \ | 111 | CFLAGS += -I$(srctree)/arch/$(ARCH)/include |
| 113 | -I$(srctree)/arch/$(ARCH)/include \ | 112 | CFLAGS += -I$(srctree)/include/uapi |
| 114 | -I$(srctree)/include/uapi \ | 113 | CFLAGS += -I$(srctree)/include |
| 115 | -I$(srctree)/include | ||
| 116 | 114 | ||
| 117 | # $(obj-perf) for generated common-cmds.h | 115 | # $(obj-perf) for generated common-cmds.h |
| 118 | # $(obj-perf)/util for generated bison/flex headers | 116 | # $(obj-perf)/util for generated bison/flex headers |
| 119 | ifneq ($(OUTPUT),) | 117 | ifneq ($(OUTPUT),) |
| 120 | CFLAGS += \ | 118 | CFLAGS += -I$(obj-perf)/util |
| 121 | -I$(obj-perf)/util \ | 119 | CFLAGS += -I$(obj-perf) |
| 122 | -I$(obj-perf) | ||
| 123 | endif | 120 | endif |
| 124 | 121 | ||
| 125 | CFLAGS += \ | 122 | CFLAGS += -I$(src-perf)/util |
| 126 | -I$(src-perf)/util \ | 123 | CFLAGS += -I$(src-perf) |
| 127 | -I$(src-perf) \ | 124 | CFLAGS += -I$(TRACE_EVENT_DIR) |
| 128 | -I$(TRACE_EVENT_DIR) \ | 125 | CFLAGS += -I$(srctree)/tools/lib/ |
| 129 | -I$(srctree)/tools/lib/ | ||
| 130 | 126 | ||
| 131 | CFLAGS += \ | 127 | CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE |
| 132 | -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE | ||
| 133 | 128 | ||
| 134 | ifndef NO_BIONIC | 129 | ifndef NO_BIONIC |
| 135 | ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) | 130 | ifeq ($(call try-cc,$(SOURCE_BIONIC),$(CFLAGS),bionic),y) |
