ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / md / Makefile
1 #
2 # Makefile for the kernel software RAID and LVM drivers.
3 #
4
5 dm-mod-objs     := dm.o dm-table.o dm-target.o dm-linear.o dm-stripe.o \
6                    dm-ioctl.o
7 raid6-objs      := raid6main.o raid6algos.o raid6recov.o raid6tables.o \
8                    raid6int1.o raid6int2.o raid6int4.o \
9                    raid6int8.o raid6int16.o raid6int32.o \
10                    raid6mmx.o raid6sse1.o raid6sse2.o
11 host-progs      := mktables
12
13 # Note: link order is important.  All raid personalities
14 # and xor.o must come before md.o, as they each initialise 
15 # themselves, and md.o may use the personalities when it 
16 # auto-initialised.
17
18 obj-$(CONFIG_MD_LINEAR)         += linear.o
19 obj-$(CONFIG_MD_RAID0)          += raid0.o
20 obj-$(CONFIG_MD_RAID1)          += raid1.o
21 obj-$(CONFIG_MD_RAID5)          += raid5.o xor.o
22 obj-$(CONFIG_MD_RAID6)          += raid6.o xor.o
23 obj-$(CONFIG_MD_MULTIPATH)      += multipath.o
24 obj-$(CONFIG_BLK_DEV_MD)        += md.o
25 obj-$(CONFIG_BLK_DEV_DM)        += dm-mod.o
26 obj-$(CONFIG_DM_CRYPT)          += dm-crypt.o
27
28 quiet_cmd_unroll = UNROLL  $@
29       cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \
30                    < $< > $@ || ( rm -f $@ && exit 1 )
31
32 targets += raid6int1.c
33 $(obj)/raid6int1.c:   UNROLL := 1
34 $(obj)/raid6int1.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
35         $(call if_changed,unroll)
36
37 targets += raid6int2.c
38 $(obj)/raid6int2.c:   UNROLL := 2
39 $(obj)/raid6int2.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
40         $(call if_changed,unroll)
41
42 targets += raid6int4.c
43 $(obj)/raid6int4.c:   UNROLL := 4
44 $(obj)/raid6int4.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
45         $(call if_changed,unroll)
46
47 targets += raid6int8.c
48 $(obj)/raid6int8.c:   UNROLL := 8
49 $(obj)/raid6int8.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
50         $(call if_changed,unroll)
51
52 targets += raid6int16.c
53 $(obj)/raid6int16.c:  UNROLL := 16
54 $(obj)/raid6int16.c:  $(src)/raid6int.uc $(src)/unroll.pl FORCE
55         $(call if_changed,unroll)
56
57 targets += raid6int32.c
58 $(obj)/raid6int32.c:  UNROLL := 32
59 $(obj)/raid6int32.c:  $(src)/raid6int.uc $(src)/unroll.pl FORCE
60         $(call if_changed,unroll)
61
62 quiet_cmd_mktable = TABLE   $@
63       cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 )
64
65 targets += raid6tables.c
66 $(obj)/raid6tables.c: $(obj)/mktables FORCE
67         $(call if_changed,mktable)