aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 106c15055b50..2400e5068a2f 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -363,6 +363,9 @@ LIB_OBJS += util/parse-options.o
363LIB_OBJS += util/parse-events.o 363LIB_OBJS += util/parse-events.o
364LIB_OBJS += util/path.o 364LIB_OBJS += util/path.o
365LIB_OBJS += util/rbtree.o 365LIB_OBJS += util/rbtree.o
366LIB_OBJS += util/bitmap.o
367LIB_OBJS += util/hweight.o
368LIB_OBJS += util/find_next_bit.o
366LIB_OBJS += util/run-command.o 369LIB_OBJS += util/run-command.o
367LIB_OBJS += util/quote.o 370LIB_OBJS += util/quote.o
368LIB_OBJS += util/strbuf.o 371LIB_OBJS += util/strbuf.o
@@ -790,6 +793,19 @@ util/config.o: util/config.c PERF-CFLAGS
790util/rbtree.o: ../../lib/rbtree.c PERF-CFLAGS 793util/rbtree.o: ../../lib/rbtree.c PERF-CFLAGS
791 $(QUIET_CC)$(CC) -o util/rbtree.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< 794 $(QUIET_CC)$(CC) -o util/rbtree.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
792 795
796# some perf warning policies can't fit to lib/bitmap.c, eg: it warns about variable shadowing
797# from <string.h> that comes from kernel headers wrapping.
798KBITMAP_FLAGS=`echo $(ALL_CFLAGS) | sed s/-Wshadow// | sed s/-Wswitch-default// | sed s/-Wextra//`
799
800util/bitmap.o: ../../lib/bitmap.c PERF-CFLAGS
801 $(QUIET_CC)$(CC) -o util/bitmap.o -c $(KBITMAP_FLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
802
803util/hweight.o: ../../lib/hweight.c PERF-CFLAGS
804 $(QUIET_CC)$(CC) -o util/hweight.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
805
806util/find_next_bit.o: ../../lib/find_next_bit.c PERF-CFLAGS
807 $(QUIET_CC)$(CC) -o util/find_next_bit.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $<
808
793perf-%$X: %.o $(PERFLIBS) 809perf-%$X: %.o $(PERFLIBS)
794 $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) 810 $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS)
795 811