aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2014-12-29 18:27:52 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-02-12 09:48:13 -0500
commitcf15c74cbdccb8fb5ced91c6f24f9b3a68f9a82b (patch)
tree43ed3a79d612877c8faae7497434ecf5e4919e15
parent3b939a631b53bdb1bf6826fca2a330b16e995fc2 (diff)
perf build: Add slang objects building
Move the slang objects building under build framework to be included in the libperf build object. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Tested-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> Tested-by: Will Deacon <will.deacon@arm.com> Cc: Alexis Berlemont <alexis.berlemont@gmail.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-2ofo1r00jl6i143qxcl9n2jr@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/Makefile.perf33
-rw-r--r--tools/perf/config/Makefile1
-rw-r--r--tools/perf/ui/Build6
-rw-r--r--tools/perf/ui/browsers/Build10
-rw-r--r--tools/perf/ui/tui/Build4
5 files changed, 21 insertions, 33 deletions
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index c658fa6dc81e..d9de8af55de2 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -339,24 +339,6 @@ ifneq ($(OUTPUT),)
339 CFLAGS += -I$(OUTPUT) 339 CFLAGS += -I$(OUTPUT)
340endif 340endif
341 341
342ifndef NO_SLANG
343 LIB_OBJS += $(OUTPUT)ui/browser.o
344 LIB_OBJS += $(OUTPUT)ui/browsers/annotate.o
345 LIB_OBJS += $(OUTPUT)ui/browsers/hists.o
346 LIB_OBJS += $(OUTPUT)ui/browsers/map.o
347 LIB_OBJS += $(OUTPUT)ui/browsers/scripts.o
348 LIB_OBJS += $(OUTPUT)ui/browsers/header.o
349 LIB_OBJS += $(OUTPUT)ui/tui/setup.o
350 LIB_OBJS += $(OUTPUT)ui/tui/util.o
351 LIB_OBJS += $(OUTPUT)ui/tui/helpline.o
352 LIB_OBJS += $(OUTPUT)ui/tui/progress.o
353 LIB_H += ui/tui/tui.h
354 LIB_H += ui/browser.h
355 LIB_H += ui/browsers/map.h
356 LIB_H += ui/keysyms.h
357 LIB_H += ui/libslang.h
358endif
359
360ifndef NO_GTK2 342ifndef NO_GTK2
361 ALL_PROGRAMS += $(OUTPUT)libperf-gtk.so 343 ALL_PROGRAMS += $(OUTPUT)libperf-gtk.so
362 344
@@ -484,21 +466,6 @@ $(OUTPUT)%.o: %.S
484$(OUTPUT)%.s: %.S 466$(OUTPUT)%.s: %.S
485 $(QUIET_CC)$(CC) -o $@ -E $(CFLAGS) $< 467 $(QUIET_CC)$(CC) -o $@ -E $(CFLAGS) $<
486 468
487$(OUTPUT)ui/browser.o: ui/browser.c $(OUTPUT)PERF-CFLAGS
488 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DENABLE_SLFUTURE_CONST $<
489
490$(OUTPUT)ui/browsers/annotate.o: ui/browsers/annotate.c $(OUTPUT)PERF-CFLAGS
491 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DENABLE_SLFUTURE_CONST $<
492
493$(OUTPUT)ui/browsers/hists.o: ui/browsers/hists.c $(OUTPUT)PERF-CFLAGS
494 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DENABLE_SLFUTURE_CONST $<
495
496$(OUTPUT)ui/browsers/map.o: ui/browsers/map.c $(OUTPUT)PERF-CFLAGS
497 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DENABLE_SLFUTURE_CONST $<
498
499$(OUTPUT)ui/browsers/scripts.o: ui/browsers/scripts.c $(OUTPUT)PERF-CFLAGS
500 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DENABLE_SLFUTURE_CONST $<
501
502$(OUTPUT)util/scripting-engines/trace-event-perl.o: util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS 469$(OUTPUT)util/scripting-engines/trace-event-perl.o: util/scripting-engines/trace-event-perl.c $(OUTPUT)PERF-CFLAGS
503 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow -Wno-undef -Wno-switch-default $< 470 $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-shadow -Wno-undef -Wno-switch-default $<
504 471
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 07391389aa4c..4b251114b34d 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -479,6 +479,7 @@ ifndef NO_SLANG
479 CFLAGS += -I/usr/include/slang 479 CFLAGS += -I/usr/include/slang
480 CFLAGS += -DHAVE_SLANG_SUPPORT 480 CFLAGS += -DHAVE_SLANG_SUPPORT
481 EXTLIBS += -lslang 481 EXTLIBS += -lslang
482 $(call detected,CONFIG_SLANG)
482 endif 483 endif
483endif 484endif
484 485
diff --git a/tools/perf/ui/Build b/tools/perf/ui/Build
index 077b6a448ddc..0a73538c0441 100644
--- a/tools/perf/ui/Build
+++ b/tools/perf/ui/Build
@@ -6,3 +6,9 @@ libperf-y += hist.o
6libperf-y += stdio/hist.o 6libperf-y += stdio/hist.o
7 7
8CFLAGS_setup.o += -DLIBDIR="BUILD_STR($(LIBDIR))" 8CFLAGS_setup.o += -DLIBDIR="BUILD_STR($(LIBDIR))"
9
10libperf-$(CONFIG_SLANG) += browser.o
11libperf-$(CONFIG_SLANG) += browsers/
12libperf-$(CONFIG_SLANG) += tui/
13
14CFLAGS_browser.o += -DENABLE_SLFUTURE_CONST
diff --git a/tools/perf/ui/browsers/Build b/tools/perf/ui/browsers/Build
new file mode 100644
index 000000000000..de223f5bed58
--- /dev/null
+++ b/tools/perf/ui/browsers/Build
@@ -0,0 +1,10 @@
1libperf-y += annotate.o
2libperf-y += hists.o
3libperf-y += map.o
4libperf-y += scripts.o
5libperf-y += header.o
6
7CFLAGS_annotate.o += -DENABLE_SLFUTURE_CONST
8CFLAGS_hists.o += -DENABLE_SLFUTURE_CONST
9CFLAGS_map.o += -DENABLE_SLFUTURE_CONST
10CFLAGS_scripts.o += -DENABLE_SLFUTURE_CONST
diff --git a/tools/perf/ui/tui/Build b/tools/perf/ui/tui/Build
new file mode 100644
index 000000000000..9e4c6ca41a9f
--- /dev/null
+++ b/tools/perf/ui/tui/Build
@@ -0,0 +1,4 @@
1libperf-y += setup.o
2libperf-y += util.o
3libperf-y += helpline.o
4libperf-y += progress.o