#
# Makefile to compile OL2TP
#

include ../../makefile.envars

CHECKOUT_PREFIX ?= svn://svn.atc.amit.com.tw
COMPO_URL := $(CHECKOUT_PREFIX)/Sahara/OL2TP/trunk
COMPO_REV := -r 28
COMPO_DIR := $(COMPO_BASE)/open_src/OL2TP

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

#
ifeq ($(BIG_ENDIAN),1)
ENDIAN := -b
else
ENDIAN :=
endif

build:
	make -C $(COMPO_DIR)
ifdef FULL_COPY
	${PRIV_TOOLS}/bin/mkuo ${COMPO_DIR}/l2tp.conf ${COMPO_DIR}/l2tp.conf.uo $(ENDIAN)
endif
	
install: INSTALL.copy_OL2TP


clean:
	make -C $(COMPO_DIR) clean
	-rm -f $(COMPO_DIR)/*.uo
copying:
