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.
Unified · Split
| @@ -787,6 +787,8 @@ $(OUTPUT)dlfilters/%.o: dlfilters/%.c include/perf/perf_dlfilter.h · 786 unmodified lines | ||
| 787 | 787 | $(Q)$(MKDIR) -p $(OUTPUT)dlfilters |
| 788 | 788 | $(QUIET_CC)$(CC) -c -Iinclude $(EXTRA_CFLAGS) -o $@ -fpic $< |
| 789 | 789 | |
| 790 | +.SECONDARY: $(DLFILTERS:.so=.o) | |
| 791 | + | |
| 790 | 792 | $(OUTPUT)dlfilters/%.so: $(OUTPUT)dlfilters/%.o |
| 791 | 793 | $(QUIET_LINK)$(CC) $(EXTRA_CFLAGS) -shared -o $@ $< |
| 792 | 794 | |