History

perf build: Suppress 'rm dlfilter' build message

The following build message: rm dlfilters/dlfilter-test-api-v0.o is unwanted. The object file is being treated as an intermediate file and being automatically removed. Mark the object file as .SECONDARY to prevent removal and hence the message.

Adrian Hunter committed 5 years ago

Commit 09572941 parent 180eca51 file · +2 −0Browse files

Unified · Split

tools/perf/Makefile.perf+2−0
@@ -787,6 +787,8 @@ $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h · 786 unmodified lines
787 $(Q)$(MKDIR) -p $(OUTPUT)dlfilters787 $(Q)$(MKDIR) -p $(OUTPUT)dlfilters
788 $(QUIET_CC)$(CC) -c -Iinclude $(EXTRA_CFLAGS) -o $@ -fpic $<788 $(QUIET_CC)$(CC) -c -Iinclude $(EXTRA_CFLAGS) -o $@ -fpic $<
789 789
790.SECONDARY: $(DLFILTERS:.so=.o)
791
790$(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o792$(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o
791 $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $<793 $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $<
792 794