diff options
| -rw-r--r-- | tools/perf/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 4b1044cbd84c..a158309a65ef 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
| @@ -149,6 +149,8 @@ RM = rm -f | |||
| 149 | MKDIR = mkdir | 149 | MKDIR = mkdir |
| 150 | FIND = find | 150 | FIND = find |
| 151 | INSTALL = install | 151 | INSTALL = install |
| 152 | FLEX = flex | ||
| 153 | BISON= bison | ||
| 152 | 154 | ||
| 153 | # sparse is architecture-neutral, which means that we need to tell it | 155 | # sparse is architecture-neutral, which means that we need to tell it |
| 154 | # explicitly what architecture to check for. Fix this up for yours.. | 156 | # explicitly what architecture to check for. Fix this up for yours.. |
| @@ -158,6 +160,14 @@ ifneq ($(MAKECMDGOALS),clean) | |||
| 158 | ifneq ($(MAKECMDGOALS),tags) | 160 | ifneq ($(MAKECMDGOALS),tags) |
| 159 | -include config/feature-tests.mak | 161 | -include config/feature-tests.mak |
| 160 | 162 | ||
| 163 | ifeq ($(call get-executable,$(FLEX)),) | ||
| 164 | dummy := $(error Error: $(FLEX) is missing on this system, please install it) | ||
| 165 | endif | ||
| 166 | |||
| 167 | ifeq ($(call get-executable,$(BISON)),) | ||
| 168 | dummy := $(error Error: $(BISON) is missing on this system, please install it) | ||
| 169 | endif | ||
| 170 | |||
| 161 | ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -fstack-protector-all,-fstack-protector-all),y) | 171 | ifeq ($(call try-cc,$(SOURCE_HELLO),$(CFLAGS) -Werror -fstack-protector-all,-fstack-protector-all),y) |
| 162 | CFLAGS := $(CFLAGS) -fstack-protector-all | 172 | CFLAGS := $(CFLAGS) -fstack-protector-all |
| 163 | endif | 173 | endif |
| @@ -282,9 +292,6 @@ endif | |||
| 282 | 292 | ||
| 283 | export PERL_PATH | 293 | export PERL_PATH |
| 284 | 294 | ||
| 285 | FLEX = flex | ||
| 286 | BISON= bison | ||
| 287 | |||
| 288 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c | 295 | $(OUTPUT)util/parse-events-flex.c: util/parse-events.l $(OUTPUT)util/parse-events-bison.c |
| 289 | $(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) -t util/parse-events.l > $(OUTPUT)util/parse-events-flex.c | 296 | $(QUIET_FLEX)$(FLEX) --header-file=$(OUTPUT)util/parse-events-flex.h $(PARSER_DEBUG_FLEX) -t util/parse-events.l > $(OUTPUT)util/parse-events-flex.c |
| 290 | 297 | ||
