upgrade to linux 2.6.10-1.12_FC2
[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 dm-io.o kcopyd.o
7 dm-snapshot-objs := dm-snap.o dm-exception-store.o
8 dm-mirror-objs  := dm-log.o dm-raid1.o
9 raid6-objs      := raid6main.o raid6algos.o raid6recov.o raid6tables.o \
10                    raid6int1.o raid6int2.o raid6int4.o \
11                    raid6int8.o raid6int16.o raid6int32.o \
12                    raid6mmx.o raid6sse1.o raid6sse2.o
13 hostprogs-y     := mktables
14
15 CFLAGS_raid6int8.o += -O2
16
17 # Note: link order is important.  All raid personalities
18 # and xor.o must come before md.o, as they each initialise 
19 # themselves, and md.o may use the personalities when it 
20 # auto-initialised.
21
22 obj-$(CONFIG_MD_LINEAR)         += linear.o
23 obj-$(CONFIG_MD_RAID0)          += raid0.o
24 obj-$(CONFIG_MD_RAID1)          += raid1.o
25 obj-$(CONFIG_MD_RAID10)         += raid10.o
26 obj-$(CONFIG_MD_RAID5)          += raid5.o xor.o
27 obj-$(CONFIG_MD_RAID6)          += raid6.o xor.o
28 obj-$(CONFIG_MD_MULTIPATH)      += multipath.o
29 obj-$(CONFIG_MD_FAULTY)         += faulty.o
30 obj-$(CONFIG_BLK_DEV_MD)        += md.o
31 obj-$(CONFIG_BLK_DEV_DM)        += dm-mod.o
32 obj-$(CONFIG_DM_CRYPT)          += dm-crypt.o
33 obj-$(CONFIG_DM_SNAPSHOT)       += dm-snapshot.o
34 obj-$(CONFIG_DM_MIRROR)         += dm-mirror.o
35 obj-$(CONFIG_DM_ZERO)           += dm-zero.o
36
37 quiet_cmd_unroll = UNROLL  $@
38       cmd_unroll = $(PERL) $(srctree)/$(src)/unroll.pl $(UNROLL) \
39                    < $< > $@ || ( rm -f $@ && exit 1 )
40
41 targets += raid6int1.c
42 $(obj)/raid6int1.c:   UNROLL := 1
43 $(obj)/raid6int1.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
44         $(call if_changed,unroll)
45
46 targets += raid6int2.c
47 $(obj)/raid6int2.c:   UNROLL := 2
48 $(obj)/raid6int2.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
49         $(call if_changed,unroll)
50
51 targets += raid6int4.c
52 $(obj)/raid6int4.c:   UNROLL := 4
53 $(obj)/raid6int4.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
54         $(call if_changed,unroll)
55
56 targets += raid6int8.c
57 $(obj)/raid6int8.c:   UNROLL := 8
58 $(obj)/raid6int8.c:   $(src)/raid6int.uc $(src)/unroll.pl FORCE
59         $(call if_changed,unroll)
60
61 targets += raid6int16.c
62 $(obj)/raid6int16.c:  UNROLL := 16
63 $(obj)/raid6int16.c:  $(src)/raid6int.uc $(src)/unroll.pl FORCE
64         $(call if_changed,unroll)
65
66 targets += raid6int32.c
67 $(obj)/raid6int32.c:  UNROLL := 32
68 $(obj)/raid6int32.c:  $(src)/raid6int.uc $(src)/unroll.pl FORCE
69         $(call if_changed,unroll)
70
71 quiet_cmd_mktable = TABLE   $@
72       cmd_mktable = $(obj)/mktables > $@ || ( rm -f $@ && exit 1 )
73
74 targets += raid6tables.c
75 $(obj)/raid6tables.c: $(obj)/mktables FORCE
76         $(call if_changed,mktable)