diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index e07fbd838749..cc27148635cd 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -507,6 +507,20 @@ else | |||
507 | endif | 507 | endif |
508 | endif | 508 | endif |
509 | 509 | ||
510 | ifdef NO_GTK2 | ||
511 | BASIC_CFLAGS += -DNO_GTK2 | ||
512 | else | ||
513 | FLAGS_GTK2=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) $(shell pkg-config --libs --cflags gtk+-2.0) | ||
514 | ifneq ($(call try-cc,$(SOURCE_GTK2),$(FLAGS_GTK2)),y) | ||
515 | msg := $(warning GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev); | ||
516 | BASIC_CFLAGS += -DNO_GTK2_SUPPORT | ||
517 | else | ||
518 | BASIC_CFLAGS += $(shell pkg-config --cflags gtk+-2.0) | ||
519 | EXTLIBS += $(shell pkg-config --libs gtk+-2.0) | ||
520 | LIB_OBJS += $(OUTPUT)util/gtk/browser.o | ||
521 | endif | ||
522 | endif | ||
523 | |||
510 | ifdef NO_LIBPERL | 524 | ifdef NO_LIBPERL |
511 | BASIC_CFLAGS += -DNO_LIBPERL | 525 | BASIC_CFLAGS += -DNO_LIBPERL |
512 | else | 526 | else |