aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-05-17 17:18:11 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-05-17 17:18:11 -0400
commit94f3ca95787ada3d64339a4ecb2754236ab563f6 (patch)
tree0be41b36ad1e1f7b98abfcb0f013e7a468c7cbc3 /tools
parent2f51903bc3139e25ec908f8944a0001c7b868e90 (diff)
perf tools: Add mode to build without newt support
make NO_NEWT=1 Will avoid building the newt (tui) support. Suggested-by: Ingo Molnar <mingo@elte.hu> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index e2729fcfaf30..3d8f31ed771d 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -558,6 +558,9 @@ else
558endif # PERF_HAVE_DWARF_REGS 558endif # PERF_HAVE_DWARF_REGS
559endif # NO_DWARF 559endif # NO_DWARF
560 560
561ifdef NO_NEWT
562 BASIC_CFLAGS += -DNO_NEWT_SUPPORT
563else
561ifneq ($(shell sh -c "(echo '\#include <newt.h>'; echo 'int main(void) { newtInit(); newtCls(); return newtFinished(); }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -lnewt -o $(BITBUCKET) $(ALL_LDFLAGS) $(EXTLIBS) "$(QUIET_STDERR)" && echo y"), y) 564ifneq ($(shell sh -c "(echo '\#include <newt.h>'; echo 'int main(void) { newtInit(); newtCls(); return newtFinished(); }') | $(CC) -x c - $(ALL_CFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -lnewt -o $(BITBUCKET) $(ALL_LDFLAGS) $(EXTLIBS) "$(QUIET_STDERR)" && echo y"), y)
562 msg := $(warning newt not found, disables TUI support. Please install newt-devel or libnewt-dev); 565 msg := $(warning newt not found, disables TUI support. Please install newt-devel or libnewt-dev);
563 BASIC_CFLAGS += -DNO_NEWT_SUPPORT 566 BASIC_CFLAGS += -DNO_NEWT_SUPPORT
@@ -567,6 +570,7 @@ else
567 EXTLIBS += -lnewt -lslang 570 EXTLIBS += -lnewt -lslang
568 LIB_OBJS += $(OUTPUT)util/newt.o 571 LIB_OBJS += $(OUTPUT)util/newt.o
569endif 572endif
573endif # NO_NEWT
570 574
571ifndef NO_LIBPERL 575ifndef NO_LIBPERL
572PERL_EMBED_LDOPTS = `perl -MExtUtils::Embed -e ldopts 2>/dev/null` 576PERL_EMBED_LDOPTS = `perl -MExtUtils::Embed -e ldopts 2>/dev/null`