]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/um/scripts/Makefile.unmap
Merge /spare/repo/linux-2.6/
[linux-2.6-omap-h63xx.git] / arch / um / scripts / Makefile.unmap
1 clean-files += unmap_tmp.o unmap_fin.o unmap.o
2
3 ifdef CONFIG_MODE_TT
4
5 #Always build unmap_fin.o
6 extra-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).
8 targets += unmap.o
9
10 #XXX: partially copied from arch/um/scripts/Makefile.rules
11 $(obj)/unmap.o: _c_flags = $(call unprofile,$(CFLAGS))
12
13 quiet_cmd_wrapld = LD      $@
14 define cmd_wrapld
15         $(LD) -r -o $(obj)/unmap_tmp.o $< $(shell $(CC) -print-file-name=libc.a); \
16         $(OBJCOPY) $(obj)/unmap_tmp.o $@ -G switcheroo
17 endef
18
19 $(obj)/unmap_fin.o : $(obj)/unmap.o FORCE
20         $(call if_changed,wrapld)
21
22 endif