diff options
-rw-r--r-- | tools/perf/Build | 2 | ||||
-rw-r--r-- | tools/perf/Makefile.perf | 17 | ||||
-rw-r--r-- | tools/perf/config/Makefile | 1 | ||||
-rw-r--r-- | tools/perf/ui/gtk/Build | 9 |
4 files changed, 17 insertions, 12 deletions
diff --git a/tools/perf/Build b/tools/perf/Build index e84ced325147..a9ff8fd0bff9 100644 --- a/tools/perf/Build +++ b/tools/perf/Build | |||
@@ -35,3 +35,5 @@ CFLAGS_builtin-timechart.o += $(paths) | |||
35 | libperf-y += util/ | 35 | libperf-y += util/ |
36 | libperf-y += arch/ | 36 | libperf-y += arch/ |
37 | libperf-y += ui/ | 37 | libperf-y += ui/ |
38 | |||
39 | gtk-y += ui/gtk/ | ||
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index d9de8af55de2..18ff8aab582a 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf | |||
@@ -341,14 +341,7 @@ endif | |||
341 | 341 | ||
342 | ifndef NO_GTK2 | 342 | ifndef NO_GTK2 |
343 | ALL_PROGRAMS += $(OUTPUT)libperf-gtk.so | 343 | ALL_PROGRAMS += $(OUTPUT)libperf-gtk.so |
344 | 344 | GTK_IN := $(OUTPUT)gtk-in.o | |
345 | GTK_OBJS += $(OUTPUT)ui/gtk/browser.o | ||
346 | GTK_OBJS += $(OUTPUT)ui/gtk/hists.o | ||
347 | GTK_OBJS += $(OUTPUT)ui/gtk/setup.o | ||
348 | GTK_OBJS += $(OUTPUT)ui/gtk/util.o | ||
349 | GTK_OBJS += $(OUTPUT)ui/gtk/helpline.o | ||
350 | GTK_OBJS += $(OUTPUT)ui/gtk/progress.o | ||
351 | GTK_OBJS += $(OUTPUT)ui/gtk/annotate.o | ||
352 | 345 | ||
353 | install-gtk: $(OUTPUT)libperf-gtk.so | 346 | install-gtk: $(OUTPUT)libperf-gtk.so |
354 | $(call QUIET_INSTALL, 'GTK UI') \ | 347 | $(call QUIET_INSTALL, 'GTK UI') \ |
@@ -416,10 +409,10 @@ $(OUTPUT)perf: $(OUTPUT)perf.o $(BUILTIN_OBJS) $(PERFLIBS) $(PERF_IN) | |||
416 | $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $(OUTPUT)perf.o \ | 409 | $(QUIET_LINK)$(CC) $(CFLAGS) $(LDFLAGS) $(OUTPUT)perf.o \ |
417 | $(BUILTIN_OBJS) $(PERF_IN) $(LIBS) -o $@ | 410 | $(BUILTIN_OBJS) $(PERF_IN) $(LIBS) -o $@ |
418 | 411 | ||
419 | $(GTK_OBJS): $(OUTPUT)%.o: %.c $(LIB_H) | 412 | $(GTK_IN): FORCE |
420 | $(QUIET_CC)$(CC) -o $@ -c -fPIC $(CFLAGS) $(GTK_CFLAGS) $< | 413 | @$(MAKE) $(build)=gtk |
421 | 414 | ||
422 | $(OUTPUT)libperf-gtk.so: $(GTK_OBJS) $(PERFLIBS) | 415 | $(OUTPUT)libperf-gtk.so: $(GTK_IN) $(PERFLIBS) |
423 | $(QUIET_LINK)$(CC) -o $@ -shared $(LDFLAGS) $(filter %.o,$^) $(GTK_LIBS) | 416 | $(QUIET_LINK)$(CC) -o $@ -shared $(LDFLAGS) $(filter %.o,$^) $(GTK_LIBS) |
424 | 417 | ||
425 | $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt | 418 | $(OUTPUT)common-cmds.h: util/generate-cmdlist.sh command-list.txt |
@@ -699,7 +692,7 @@ config-clean: | |||
699 | @$(MAKE) -C config/feature-checks clean >/dev/null | 692 | @$(MAKE) -C config/feature-checks clean >/dev/null |
700 | 693 | ||
701 | clean: $(LIBTRACEEVENT)-clean $(LIBAPIKFS)-clean config-clean | 694 | clean: $(LIBTRACEEVENT)-clean $(LIBAPIKFS)-clean config-clean |
702 | $(call QUIET_CLEAN, core-objs) $(RM) $(LIB_OBJS) $(BUILTIN_OBJS) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf-with-kcore $(OUTPUT)perf.o $(LANG_BINDINGS) $(GTK_OBJS) | 695 | $(call QUIET_CLEAN, core-objs) $(RM) $(LIB_OBJS) $(BUILTIN_OBJS) $(LIB_FILE) $(OUTPUT)perf-archive $(OUTPUT)perf-with-kcore $(OUTPUT)perf.o $(LANG_BINDINGS) |
703 | @find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete | 696 | @find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete |
704 | @$(RM) .config-detected | 697 | @$(RM) .config-detected |
705 | $(call QUIET_CLEAN, core-progs) $(RM) $(ALL_PROGRAMS) perf perf-read-vdso32 perf-read-vdsox32 | 698 | $(call QUIET_CLEAN, core-progs) $(RM) $(ALL_PROGRAMS) perf perf-read-vdso32 perf-read-vdsox32 |
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 4b251114b34d..6b9678248694 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile | |||
@@ -846,3 +846,4 @@ $(call detected_var,ETC_PERFCONFIG_SQ) | |||
846 | $(call detected_var,prefix_SQ) | 846 | $(call detected_var,prefix_SQ) |
847 | $(call detected_var,perfexecdir_SQ) | 847 | $(call detected_var,perfexecdir_SQ) |
848 | $(call detected_var,LIBDIR) | 848 | $(call detected_var,LIBDIR) |
849 | $(call detected_var,GTK_CFLAGS) | ||
diff --git a/tools/perf/ui/gtk/Build b/tools/perf/ui/gtk/Build new file mode 100644 index 000000000000..ec22e899a224 --- /dev/null +++ b/tools/perf/ui/gtk/Build | |||
@@ -0,0 +1,9 @@ | |||
1 | CFLAGS_gtk += -fPIC $(GTK_CFLAGS) | ||
2 | |||
3 | gtk-y += browser.o | ||
4 | gtk-y += hists.o | ||
5 | gtk-y += setup.o | ||
6 | gtk-y += util.o | ||
7 | gtk-y += helpline.o | ||
8 | gtk-y += progress.o | ||
9 | gtk-y += annotate.o | ||