at v2.6.16 22 lines 613 B view raw
1clean-files += unmap_tmp.o unmap_fin.o unmap.o 2 3ifdef CONFIG_MODE_TT 4 5#Always build unmap_fin.o 6extra-y += 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). 8targets += unmap.o 9 10#XXX: partially copied from arch/um/scripts/Makefile.rules 11$(obj)/unmap.o: _c_flags = $(call unprofile,$(CFLAGS)) 12 13quiet_cmd_wrapld = LD $@ 14define cmd_wrapld 15 $(LD) $(LDFLAGS) -r -o $(obj)/unmap_tmp.o $< ; \ 16 $(OBJCOPY) $(UML_OBJCOPYFLAGS) $(obj)/unmap_tmp.o $@ -G switcheroo 17endef 18 19$(obj)/unmap_fin.o : $(obj)/unmap.o FORCE 20 $(call if_changed,wrapld) 21 22endif