1obj-$(CONFIG_RAID6_PQ) += raid6_pq.o 2 3raid6_pq-y += algos.o recov.o recov_ssse3.o tables.o int1.o int2.o int4.o \ 4 int8.o int16.o int32.o altivec1.o altivec2.o altivec4.o \ 5 altivec8.o mmx.o sse1.o sse2.o 6hostprogs-y += mktables 7 8quiet_cmd_unroll = UNROLL $@ 9 cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \ 10 < $< > $@ || ( rm -f $@ && exit 1 ) 11 12ifeq ($(CONFIG_ALTIVEC),y) 13altivec_flags := -maltivec -mabi=altivec 14endif 15 16targets += int1.c 17$(obj)/int1.c: UNROLL := 1 18$(obj)/int1.c: $(src)/int.uc $(src)/unroll.awk FORCE 19 $(call if_changed,unroll) 20 21targets += int2.c 22$(obj)/int2.c: UNROLL := 2 23$(obj)/int2.c: $(src)/int.uc $(src)/unroll.awk FORCE 24 $(call if_changed,unroll) 25 26targets += int4.c 27$(obj)/int4.c: UNROLL := 4 28$(obj)/int4.c: $(src)/int.uc $(src)/unroll.awk FORCE 29 $(call if_changed,unroll) 30 31targets += int8.c 32$(obj)/int8.c: UNROLL := 8 33$(obj)/int8.c: $(src)/int.uc $(src)/unroll.awk FORCE 34 $(call if_changed,unroll) 35 36targets += int16.c 37$(obj)/int16.c: UNROLL := 16 38$(obj)/int16.c: $(src)/int.uc $(src)/unroll.awk FORCE 39 $(call if_changed,unroll) 40 41targets += int32.c 42$(obj)/int32.c: UNROLL := 32 43$(obj)/int32.c: $(src)/int.uc $(src)/unroll.awk FORCE 44 $(call if_changed,unroll) 45 46CFLAGS_altivec1.o += $(altivec_flags) 47targets += altivec1.c 48$(obj)/altivec1.c: UNROLL := 1 49$(obj)/altivec1.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 50 $(call if_changed,unroll) 51 52CFLAGS_altivec2.o += $(altivec_flags) 53targets += altivec2.c 54$(obj)/altivec2.c: UNROLL := 2 55$(obj)/altivec2.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 56 $(call if_changed,unroll) 57 58CFLAGS_altivec4.o += $(altivec_flags) 59targets += altivec4.c 60$(obj)/altivec4.c: UNROLL := 4 61$(obj)/altivec4.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 62 $(call if_changed,unroll) 63 64CFLAGS_altivec8.o += $(altivec_flags) 65targets += altivec8.c 66$(obj)/altivec8.c: UNROLL := 8 67$(obj)/altivec8.c: $(src)/altivec.uc $(src)/unroll.awk FORCE 68 $(call if_changed,unroll) 69 70quiet_cmd_mktable = TABLE $@ 71 cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 ) 72 73targets += tables.c 74$(obj)/tables.c: $(obj)/mktables FORCE 75 $(call if_changed,mktable) 76