diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 16 |
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 | |||
363 | LIB_OBJS += util/parse-events.o | 363 | LIB_OBJS += util/parse-events.o |
364 | LIB_OBJS += util/path.o | 364 | LIB_OBJS += util/path.o |
365 | LIB_OBJS += util/rbtree.o | 365 | LIB_OBJS += util/rbtree.o |
366 | LIB_OBJS += util/bitmap.o | ||
367 | LIB_OBJS += util/hweight.o | ||
368 | LIB_OBJS += util/find_next_bit.o | ||
366 | LIB_OBJS += util/run-command.o | 369 | LIB_OBJS += util/run-command.o |
367 | LIB_OBJS += util/quote.o | 370 | LIB_OBJS += util/quote.o |
368 | LIB_OBJS += util/strbuf.o | 371 | LIB_OBJS += util/strbuf.o |
@@ -790,6 +793,19 @@ util/config.o: util/config.c PERF-CFLAGS | |||
790 | util/rbtree.o: ../../lib/rbtree.c PERF-CFLAGS | 793 | util/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. | ||
798 | KBITMAP_FLAGS=`echo $(ALL_CFLAGS) | sed s/-Wshadow// | sed s/-Wswitch-default// | sed s/-Wextra//` | ||
799 | |||
800 | util/bitmap.o: ../../lib/bitmap.c PERF-CFLAGS | ||
801 | $(QUIET_CC)$(CC) -o util/bitmap.o -c $(KBITMAP_FLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
802 | |||
803 | util/hweight.o: ../../lib/hweight.c PERF-CFLAGS | ||
804 | $(QUIET_CC)$(CC) -o util/hweight.o -c $(ALL_CFLAGS) -DETC_PERFCONFIG='"$(ETC_PERFCONFIG_SQ)"' $< | ||
805 | |||
806 | util/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 | |||
793 | perf-%$X: %.o $(PERFLIBS) | 809 | perf-%$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 | ||