aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-03-17 19:09:24 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-05-29 07:42:26 -0400
commit58cabf6ab1f68f4a44e88bee5d578f68d8a39b38 (patch)
tree24ee749874a72bf0463def9b89bd739b35d4ec04 /tools
parent4a8f888a63248db76096a8c9ac8f2124d601c60e (diff)
perf tools: Move gtk2 check config into config/Makefile
Moving gtk2 check config into config/Makefile. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1369398928-9809-11-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/Makefile25
-rw-r--r--tools/perf/config/Makefile15
2 files changed, 22 insertions, 18 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index f0c23ce6f957..8e59a4d40b4e 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -521,24 +521,13 @@ ifndef NO_SLANG
521endif 521endif
522 522
523ifndef NO_GTK2 523ifndef NO_GTK2
524 FLAGS_GTK2=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null) 524 LIB_OBJS += $(OUTPUT)ui/gtk/browser.o
525 ifneq ($(call try-cc,$(SOURCE_GTK2),$(FLAGS_GTK2),gtk2),y) 525 LIB_OBJS += $(OUTPUT)ui/gtk/hists.o
526 msg := $(warning GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev); 526 LIB_OBJS += $(OUTPUT)ui/gtk/setup.o
527 else 527 LIB_OBJS += $(OUTPUT)ui/gtk/util.o
528 ifeq ($(call try-cc,$(SOURCE_GTK2_INFOBAR),$(FLAGS_GTK2),-DHAVE_GTK_INFO_BAR),y) 528 LIB_OBJS += $(OUTPUT)ui/gtk/helpline.o
529 BASIC_CFLAGS += -DHAVE_GTK_INFO_BAR 529 LIB_OBJS += $(OUTPUT)ui/gtk/progress.o
530 endif 530 LIB_OBJS += $(OUTPUT)ui/gtk/annotate.o
531 BASIC_CFLAGS += -DGTK2_SUPPORT
532 BASIC_CFLAGS += $(shell pkg-config --cflags gtk+-2.0 2>/dev/null)
533 EXTLIBS += $(shell pkg-config --libs gtk+-2.0 2>/dev/null)
534 LIB_OBJS += $(OUTPUT)ui/gtk/browser.o
535 LIB_OBJS += $(OUTPUT)ui/gtk/hists.o
536 LIB_OBJS += $(OUTPUT)ui/gtk/setup.o
537 LIB_OBJS += $(OUTPUT)ui/gtk/util.o
538 LIB_OBJS += $(OUTPUT)ui/gtk/helpline.o
539 LIB_OBJS += $(OUTPUT)ui/gtk/progress.o
540 LIB_OBJS += $(OUTPUT)ui/gtk/annotate.o
541 endif
542endif 531endif
543 532
544ifdef NO_LIBPERL 533ifdef NO_LIBPERL
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 06634be35581..8cf0958c6daa 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -225,3 +225,18 @@ ifndef NO_SLANG
225 EXTLIBS += -lslang 225 EXTLIBS += -lslang
226 endif 226 endif
227endif 227endif
228
229ifndef NO_GTK2
230 FLAGS_GTK2=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) $(shell pkg-config --libs --cflags gtk+-2.0 2>/dev/null)
231 ifneq ($(call try-cc,$(SOURCE_GTK2),$(FLAGS_GTK2),gtk2),y)
232 msg := $(warning GTK2 not found, disables GTK2 support. Please install gtk2-devel or libgtk2.0-dev);
233 NO_GTK2 := 1
234 else
235 ifeq ($(call try-cc,$(SOURCE_GTK2_INFOBAR),$(FLAGS_GTK2),-DHAVE_GTK_INFO_BAR),y)
236 BASIC_CFLAGS += -DHAVE_GTK_INFO_BAR
237 endif
238 BASIC_CFLAGS += -DGTK2_SUPPORT
239 BASIC_CFLAGS += $(shell pkg-config --cflags gtk+-2.0 2>/dev/null)
240 EXTLIBS += $(shell pkg-config --libs gtk+-2.0 2>/dev/null)
241 endif
242endif