diff options
-rw-r--r-- | tools/perf/Makefile.perf | 33 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 1 | ||||
-rw-r--r-- | tools/perf/ui/Build | 6 | ||||
-rw-r--r-- | tools/perf/ui/browsers/Build | 10 | ||||
-rw-r--r-- | tools/perf/ui/tui/Build | 4 |
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) |
340 | endif | 340 | endif |
341 | 341 | ||
342 | ifndef 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 | ||
358 | endif | ||
359 | |||
360 | ifndef NO_GTK2 | 342 | ifndef 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 |
483 | endif | 484 | endif |
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 | |||
6 | libperf-y += stdio/hist.o | 6 | libperf-y += stdio/hist.o |
7 | 7 | ||
8 | CFLAGS_setup.o += -DLIBDIR="BUILD_STR($(LIBDIR))" | 8 | CFLAGS_setup.o += -DLIBDIR="BUILD_STR($(LIBDIR))" |
9 | |||
10 | libperf-$(CONFIG_SLANG) += browser.o | ||
11 | libperf-$(CONFIG_SLANG) += browsers/ | ||
12 | libperf-$(CONFIG_SLANG) += tui/ | ||
13 | |||
14 | CFLAGS_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 @@ | |||
1 | libperf-y += annotate.o | ||
2 | libperf-y += hists.o | ||
3 | libperf-y += map.o | ||
4 | libperf-y += scripts.o | ||
5 | libperf-y += header.o | ||
6 | |||
7 | CFLAGS_annotate.o += -DENABLE_SLFUTURE_CONST | ||
8 | CFLAGS_hists.o += -DENABLE_SLFUTURE_CONST | ||
9 | CFLAGS_map.o += -DENABLE_SLFUTURE_CONST | ||
10 | CFLAGS_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 @@ | |||
1 | libperf-y += setup.o | ||
2 | libperf-y += util.o | ||
3 | libperf-y += helpline.o | ||
4 | libperf-y += progress.o | ||