1#
2# Makefile for the kernel software RAID and LVM drivers.
3#
4
5O_TARGET	:= mddev.o
6
7export-objs	:= md.o xor.o
8list-multi	:= lvm-mod.o
9lvm-mod-objs	:= lvm.o lvm-snap.o lvm-fs.o
10
11# Note: link order is important.  All raid personalities
12# and xor.o must come before md.o, as they each initialise
13# themselves, and md.o may use the personalities when it
14# auto-initialised.
15
16obj-$(CONFIG_MD_LINEAR)		+= linear.o
17obj-$(CONFIG_MD_RAID0)		+= raid0.o
18obj-$(CONFIG_MD_RAID1)		+= raid1.o
19obj-$(CONFIG_MD_RAID5)		+= raid5.o xor.o
20obj-$(CONFIG_MD_MULTIPATH)	+= multipath.o
21obj-$(CONFIG_BLK_DEV_MD)	+= md.o
22obj-$(CONFIG_BLK_DEV_LVM)	+= lvm-mod.o
23
24include $(TOPDIR)/Rules.make
25
26lvm-mod.o: $(lvm-mod-objs)
27	$(LD) -r -o $@ $(lvm-mod-objs)
28