diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index efbc0e864212..8ad57b51d648 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -497,6 +497,7 @@ ifneq ($(shell sh -c "(echo '\#include <EXTERN.h>'; echo '\#include <perl.h>'; e | |||
497 | BASIC_CFLAGS += -DNO_LIBPERL | 497 | BASIC_CFLAGS += -DNO_LIBPERL |
498 | else | 498 | else |
499 | ALL_LDFLAGS += $(PERL_EMBED_LDOPTS) | 499 | ALL_LDFLAGS += $(PERL_EMBED_LDOPTS) |
500 | LIB_OBJS += scripts/perl/Perf-Trace-Util/Context.o | ||
500 | endif | 501 | endif |
501 | 502 | ||
502 | ifdef NO_DEMANGLE | 503 | ifdef NO_DEMANGLE |
@@ -873,6 +874,9 @@ util/find_next_bit.o: ../../lib/find_next_bit.c PERF-CFLAGS | |||
873 | util/trace-event-perl.o: util/trace-event-perl.c PERF-CFLAGS | 874 | util/trace-event-perl.o: util/trace-event-perl.c PERF-CFLAGS |
874 | $(QUIET_CC)$(CC) -o util/trace-event-perl.o -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter $< | 875 | $(QUIET_CC)$(CC) -o util/trace-event-perl.o -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter $< |
875 | 876 | ||
877 | scripts/perl/Perf-Trace-Util/Context.o: scripts/perl/Perf-Trace-Util/Context.c PERF-CFLAGS | ||
878 | $(QUIET_CC)$(CC) -o scripts/perl/Perf-Trace-Util/Context.o -c $(ALL_CFLAGS) $(PERL_EMBED_CCOPTS) -Wno-redundant-decls -Wno-strict-prototypes -Wno-unused-parameter -Wno-nested-externs $< | ||
879 | |||
876 | perf-%$X: %.o $(PERFLIBS) | 880 | perf-%$X: %.o $(PERFLIBS) |
877 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) | 881 | $(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) $(LIBS) |
878 | 882 | ||
@@ -1072,7 +1076,7 @@ distclean: clean | |||
1072 | # $(RM) configure | 1076 | # $(RM) configure |
1073 | 1077 | ||
1074 | clean: | 1078 | clean: |
1075 | $(RM) *.o */*.o $(LIB_FILE) | 1079 | $(RM) *.o */*.o */*/*.o */*/*/*.o $(LIB_FILE) |
1076 | $(RM) $(ALL_PROGRAMS) $(BUILT_INS) perf$X | 1080 | $(RM) $(ALL_PROGRAMS) $(BUILT_INS) perf$X |
1077 | $(RM) $(TEST_PROGRAMS) | 1081 | $(RM) $(TEST_PROGRAMS) |
1078 | $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope* | 1082 | $(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags cscope* |