#
# 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 := mobile_ip6.o

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

ifeq ($(CONFIG_IPV6_MOBILITY_HA),)
ifeq ($(CONFIG_IPV6_MOBILITY_MN),)
obj-y += module_cn.o
endif
endif

ifeq ($(CONFIG_IPV6_MOBILITY_HA),y)
obj-y += tunnel.o halist.o mipv6_icmp.o mipv6_icmp_ha.o \
	sortedlist.o prefix.o prefix_ha.o dad.o ha.o module_ha.o
endif

ifeq ($(CONFIG_IPV6_MOBILITY_MN),y)
obj-y += tunnel.o halist.o mipv6_icmp.o mipv6_icmp_mn.o ioctl_mn.o \
	sortedlist.o prefix.o mdetect.o bul.o multiaccess_ctl.o \
	mobhdr_mn.o mn.o module_mn.o
endif

obj-m	:= $(O_TARGET)

include $(TOPDIR)/Rules.make
