#
# Makefile for nf-hipac on top of IPv4.
#

O_TARGET := netfilter.o

export-objs := nfhp_mod.o

# multipart objects
list-multi    := nf_hipac.o

# objects for nf-hipac core
nf_hipac-objs := ihash.o global.o btree.o dimtree.o hipac.o nfhp_dev.o nfhp_proc.o nfhp_mod.o

# nf-hipac core
obj-$(CONFIG_IP_NF_HIPAC)        += nf_hipac.o

# nf-hipac conntrack helper
obj-$(CONFIG_IP_NF_HIPAC_CTHELP) += nf_hipac_cthelp.o

ifneq ($(ARCH), alpha)
ifneq ($(ARCH), ia64)
ifneq ($(ARCH), mips64)
ifneq ($(ARCH), ppc64)
ifneq ($(ARCH), s390x)
ifneq ($(ARCH), sparc64)
EXTRA_CFLAGS += -D BIT32_ARCH
endif
endif
endif
endif
endif
endif

include $(TOPDIR)/Rules.make

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