diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2012-04-30 00:55:08 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-05-02 15:17:34 -0400 |
commit | 281ef544a8476f750b9f378593c42b3e8a0b8788 (patch) | |
tree | 685e23ed105380b167a36ccac54130c42aaf38c9 /tools/perf/Makefile | |
parent | 28e62b90d95a4ed8ae2ba93879003665051581a6 (diff) |
perf ui: Add gtk2 support into setup_browser()
Now setup_browser can handle gtk2 front-end so split the TUI code to
ui/tui/setup.c in order to remove dependency.
To this end, make ui__init/exit global symbols and take an argument.
Also split gtk code to ui/gtk/setup.c.
Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1335761711-31403-5-git-send-email-namhyung.kim@lge.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 4122a668952e..4734f41f801d 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -483,6 +483,7 @@ else | |||
483 | LIB_OBJS += $(OUTPUT)ui/helpline.o | 483 | LIB_OBJS += $(OUTPUT)ui/helpline.o |
484 | LIB_OBJS += $(OUTPUT)ui/progress.o | 484 | LIB_OBJS += $(OUTPUT)ui/progress.o |
485 | LIB_OBJS += $(OUTPUT)ui/util.o | 485 | LIB_OBJS += $(OUTPUT)ui/util.o |
486 | LIB_OBJS += $(OUTPUT)ui/tui/setup.o | ||
486 | LIB_H += ui/browser.h | 487 | LIB_H += ui/browser.h |
487 | LIB_H += ui/browsers/map.h | 488 | LIB_H += ui/browsers/map.h |
488 | LIB_H += ui/helpline.h | 489 | LIB_H += ui/helpline.h |
@@ -505,6 +506,11 @@ else | |||
505 | BASIC_CFLAGS += $(shell pkg-config --cflags gtk+-2.0) | 506 | BASIC_CFLAGS += $(shell pkg-config --cflags gtk+-2.0) |
506 | EXTLIBS += $(shell pkg-config --libs gtk+-2.0) | 507 | EXTLIBS += $(shell pkg-config --libs gtk+-2.0) |
507 | LIB_OBJS += $(OUTPUT)ui/gtk/browser.o | 508 | LIB_OBJS += $(OUTPUT)ui/gtk/browser.o |
509 | LIB_OBJS += $(OUTPUT)ui/gtk/setup.o | ||
510 | # Make sure that it'd be included only once. | ||
511 | ifneq ($(findstring -DNO_NEWT_SUPPORT,$(BASIC_CFLAGS)),) | ||
512 | LIB_OBJS += $(OUTPUT)ui/setup.o | ||
513 | endif | ||
508 | endif | 514 | endif |
509 | endif | 515 | endif |
510 | 516 | ||