diff options
-rw-r--r-- | tools/perf/Build | 1 | ||||
-rw-r--r-- | tools/perf/Makefile.perf | 10 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 1 | ||||
-rw-r--r-- | tools/perf/ui/Build | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/tools/perf/Build b/tools/perf/Build index 170e4563bb24..e84ced325147 100644 --- a/tools/perf/Build +++ b/tools/perf/Build | |||
@@ -34,3 +34,4 @@ CFLAGS_builtin-timechart.o += $(paths) | |||
34 | 34 | ||
35 | libperf-y += util/ | 35 | libperf-y += util/ |
36 | libperf-y += arch/ | 36 | libperf-y += arch/ |
37 | libperf-y += ui/ | ||
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 96e3cdc7f89c..c658fa6dc81e 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
@@ -327,13 +327,6 @@ LIB_H += util/data.h | |||
327 | LIB_H += util/kvm-stat.h | 327 | LIB_H += util/kvm-stat.h |
328 | LIB_H += util/thread-stack.h | 328 | LIB_H += util/thread-stack.h |
329 | 329 | ||
330 | LIB_OBJS += $(OUTPUT)ui/setup.o | ||
331 | LIB_OBJS += $(OUTPUT)ui/helpline.o | ||
332 | LIB_OBJS += $(OUTPUT)ui/progress.o | ||
333 | LIB_OBJS += $(OUTPUT)ui/util.o | ||
334 | LIB_OBJS += $(OUTPUT)ui/hist.o | ||
335 | LIB_OBJS += $(OUTPUT)ui/stdio/hist.o | ||
336 | |||
337 | PERFLIBS = $(LIB_FILE) $(LIBAPIKFS) $(LIBTRACEEVENT) | 330 | PERFLIBS = $(LIB_FILE) $(LIBAPIKFS) $(LIBTRACEEVENT) |
338 | 331 | ||
339 | # We choose to avoid "if .. else if .. else .. endif endif" | 332 | # We choose to avoid "if .. else if .. else .. endif endif" |
@@ -491,9 +484,6 @@ $(OUTPUT)%.o: %.S | |||
491 | $(OUTPUT)%.s: %.S | 484 | $(OUTPUT)%.s: %.S |
492 | $(QUIET_CC)$(CC) -o $@ -E $(CFLAGS) $< | 485 | $(QUIET_CC)$(CC) -o $@ -E $(CFLAGS) $< |
493 | 486 | ||
494 | $(OUTPUT)ui/setup.o: ui/setup.c $(OUTPUT)PERF-CFLAGS | ||
495 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DLIBDIR='"$(libdir_SQ)"' $< | ||
496 | |||
497 | $(OUTPUT)ui/browser.o: ui/browser.c $(OUTPUT)PERF-CFLAGS | 487 | $(OUTPUT)ui/browser.o: ui/browser.c $(OUTPUT)PERF-CFLAGS |
498 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DENABLE_SLFUTURE_CONST $< | 488 | $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) -DENABLE_SLFUTURE_CONST $< |
499 | 489 | ||
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index e55d811e633f..07391389aa4c 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -844,3 +844,4 @@ $(call detected_var,mandir_SQ) | |||
844 | $(call detected_var,ETC_PERFCONFIG_SQ) | 844 | $(call detected_var,ETC_PERFCONFIG_SQ) |
845 | $(call detected_var,prefix_SQ) | 845 | $(call detected_var,prefix_SQ) |
846 | $(call detected_var,perfexecdir_SQ) | 846 | $(call detected_var,perfexecdir_SQ) |
847 | $(call detected_var,LIBDIR) | ||
diff --git a/tools/perf/ui/Build b/tools/perf/ui/Build new file mode 100644 index 000000000000..077b6a448ddc --- /dev/null +++ b/tools/perf/ui/Build | |||
@@ -0,0 +1,8 @@ | |||
1 | libperf-y += setup.o | ||
2 | libperf-y += helpline.o | ||
3 | libperf-y += progress.o | ||
4 | libperf-y += util.o | ||
5 | libperf-y += hist.o | ||
6 | libperf-y += stdio/hist.o | ||
7 | |||
8 | CFLAGS_setup.o += -DLIBDIR="BUILD_STR($(LIBDIR))" | ||