#
# Makefile to compile OPPTP
#

include ../../makefile.envars

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

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}/options.pptp ${COMPO_DIR}/options.pptp.uo $(ENDIAN)
	${PRIV_TOOLS}/bin/mkuo ${COMPO_DIR}/pptp.conf ${COMPO_DIR}/pptp.conf.uo $(ENDIAN)
endif

install: INSTALL.copy_OPPTP

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

