aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-03-24 19:56:08 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-05-29 07:40:18 -0400
commit4a8f888a63248db76096a8c9ac8f2124d601c60e (patch)
tree3c2df5e50875a1e6dd0e9a809fcf580322809bb3 /tools/perf/Makefile
parenta8279525f42b4073e06b8b0061be1e55be29a023 (diff)
perf tools: Move slang check config into config/Makefile
Moving slang 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-10-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile39
1 files changed, 13 insertions, 26 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 57d39ed23f5b..f0c23ce6f957 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -99,10 +99,6 @@ ifeq ($(config),1)
99include config/Makefile 99include config/Makefile
100endif 100endif
101 101
102ifdef NO_NEWT
103 NO_SLANG=1
104endif
105
106# Among the variables below, these: 102# Among the variables below, these:
107# perfexecdir 103# perfexecdir
108# template_dir 104# template_dir
@@ -509,28 +505,19 @@ ifndef NO_LIBAUDIT
509endif 505endif
510 506
511ifndef NO_SLANG 507ifndef NO_SLANG
512 FLAGS_SLANG=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -I/usr/include/slang -lslang 508 LIB_OBJS += $(OUTPUT)ui/browser.o
513 ifneq ($(call try-cc,$(SOURCE_SLANG),$(FLAGS_SLANG),libslang),y) 509 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
514 msg := $(warning slang not found, disables TUI support. Please install slang-devel or libslang-dev); 510 LIB_OBJS += $(OUTPUT)ui/browsers/hists.o
515 else 511 LIB_OBJS += $(OUTPUT)ui/browsers/map.o
516 # Fedora has /usr/include/slang/slang.h, but ubuntu /usr/include/slang.h 512 LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o
517 BASIC_CFLAGS += -I/usr/include/slang 513 LIB_OBJS += $(OUTPUT)ui/tui/setup.o
518 BASIC_CFLAGS += -DSLANG_SUPPORT 514 LIB_OBJS += $(OUTPUT)ui/tui/util.o
519 EXTLIBS += -lslang 515 LIB_OBJS += $(OUTPUT)ui/tui/helpline.o
520 LIB_OBJS += $(OUTPUT)ui/browser.o 516 LIB_OBJS += $(OUTPUT)ui/tui/progress.o
521 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o 517 LIB_H += ui/browser.h
522 LIB_OBJS += $(OUTPUT)ui/browsers/hists.o 518 LIB_H += ui/browsers/map.h
523 LIB_OBJS += $(OUTPUT)ui/browsers/map.o 519 LIB_H += ui/keysyms.h
524 LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o 520 LIB_H += ui/libslang.h
525 LIB_OBJS += $(OUTPUT)ui/tui/setup.o
526 LIB_OBJS += $(OUTPUT)ui/tui/util.o
527 LIB_OBJS += $(OUTPUT)ui/tui/helpline.o
528 LIB_OBJS += $(OUTPUT)ui/tui/progress.o
529 LIB_H += ui/browser.h
530 LIB_H += ui/browsers/map.h
531 LIB_H += ui/keysyms.h
532 LIB_H += ui/libslang.h
533 endif
534endif 521endif
535 522
536ifndef NO_GTK2 523ifndef NO_GTK2