1 clean-files += unmap_tmp.o unmap_fin.o unmap.o
5 #Always build unmap_fin.o
7 #Do dependency tracking for unmap.o (it will be always built, but won't get the tracking unless we use this).
10 #XXX: partially copied from arch/um/scripts/Makefile.rules
11 $(obj)/unmap.o: _c_flags = $(call unprofile,$(CFLAGS))
13 quiet_cmd_wrapld = LD $@
15 $(LD) $(LDFLAGS) -r -o $(obj)/unmap_tmp.o $< ; \
16 $(OBJCOPY) $(UML_OBJCOPYFLAGS) $(obj)/unmap_tmp.o $@ -G switcheroo
19 $(obj)/unmap_fin.o : $(obj)/unmap.o FORCE
20 $(call if_changed,wrapld)