#
# Makefile to compile OIPTables
#

include ../../makefile.envars

CHECKOUT_PREFIX ?= svn://svn.atc.amit.com.tw
ifeq ("$(KERNEL_VERSION)","2.6.x")
COMPO_URL := $(CHECKOUT_PREFIX)/Sahara/OIPTables138/trunk
COMPO_REV := -r 8 
COMPO_DIR := $(COMPO_BASE)/open_src/OIPTables138
else
COMPO_URL := $(CHECKOUT_PREFIX)/Sahara/OIPTables126a/trunk
COMPO_REV := -r 5
COMPO_DIR := $(COMPO_BASE)/open_src/OIPTables126a
endif

include ../../makefile.compo
include ../../makefile.install

KERNEL_PATH := ${TOPDIR}/linux/src

#

build:
	KERNEL_DIR=${KERNEL_PATH} make -C $(COMPO_DIR) all
	

install: INSTALL.copy_OIPTables

clean:
	KERNEL_DIR=${KERNEL_PATH} make -C $(COMPO_DIR) distclean

copying:
