#
# Makefile to compile OPPPoE
#

include ../../makefile.envars

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

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

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

build:
	make -C $(COMPO_DIR)/src 
ifdef FULL_COPY
	${PRIV_TOOLS}/bin/mkuo ${COMPO_DIR}/configs/pppoe.conf ${COMPO_DIR}/configs/pppoe.conf.uo $(ENDIAN)
endif

install: INSTALL.copy_OPPPoE

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