#
# Makefile for the MIPL Mobile IPv6 for Linux.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#


O_TARGET := mip6_base.o

list-multi := mip6_ha.o mip6_mn.o

obj-y := hashlist.o bcache.o mobhdr_common.o stats.o exthdrs.o \
	rr_crypto.o hmac.o auth_opt.o mipv6_icmp.o module_cn.o

obj-m := $(O_TARGET)

mip6_ha-objs := halist.o mipv6_icmp_ha.o tunnel_ha.o \
		ndisc_ha.o ha.o module_ha.o

mip6_mn-objs := mipv6_icmp_mn.o ioctl_mn.o tunnel_mn.o \
		mdetect.o bul.o multiaccess_ctl.o mobhdr_mn.o mn.o \
		module_mn.o 

obj-$(CONFIG_IPV6_MOBILITY_HA) += mip6_ha.o
obj-$(CONFIG_IPV6_MOBILITY_MN) += mip6_mn.o

include $(TOPDIR)/Rules.make

mip6_ha.o: $(mip6_ha-objs)
	$(LD) -r -o $@ $(mip6_ha-objs)

mip6_mn.o: $(mip6_mn-objs)
	$(LD) -r -o $@ $(mip6_mn-objs)
