#
# Toplevel Makefile for the BCM947xx Linux Router release
#
# Copyright 2003, Broadcom Corporation
# All Rights Reserved.                
#                                     
#
# $Id: toplevel-release.mk,v 1.17.2.1 2003/06/05 22:04:03 noname Exp $
#

SRCBASE := $(shell pwd)
RELEASEDIR := $(shell (cd $(SRCBASE)/.. && pwd -P))

install: all
	install -d $(RELEASEDIR)/image
	cp pmon/pmon_lg.bin $(RELEASEDIR)/image/
	cp cfe/build/broadcom/bcm947xx/cfe.bin $(RELEASEDIR)/image/
	cp shared/nvram/*.txt $(RELEASEDIR)/image/
	$(MAKE) -C router install
	-cp router/mipsel/linux.trx $(RELEASEDIR)/image/linux-glibc.trx
	-cp router/mipsel-uclibc/linux.trx $(RELEASEDIR)/image/linux.trx

all clean:
	$(MAKE) -C pmon $@
	$(MAKE) -C cfe $@
	$(MAKE) -C router $@

.PHONY: all clean install
