#! make -f
#----------------------------------------------------------------------------
# Project:  NitroDWC - BroadOn VOIP demo
# File:     Makefile
#
# Copyright 2005 Nintendo. All rights reserved.
# Copyright 2007 BroadOn. All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law. They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
#----------------------------------------------------------------------------

SUBDIRS		=


#----------------------------------------------------------------------------

SRCS		=	voip.c launch.c

TARGET_NEF	=	main.nef
TARGET_BIN	=	main.srl

NITRO_MAKEROM	=	TRUE

NITRODWC_LIB_MODULES_   = base auth ac bm account p2p

# Local includes
LINCLUDES     = $(NITROSDK_ROOT)/include
LINCLUDES     += $(NITROSDK_ROOT)/include/netcard
LINCLUDES     += $(NITROSDK_ROOT)/include/netcard/ds
LINCLUDES     += $(NITRODWC_ROOT)/include/netcard
LINCLUDES     += $(NITRODWC_ROOT)/include/netcard/ds

include	$(NITRODWC_ROOT)/build/buildtools/commondefs

TARGETS += voip.bwf

#----------------------------------------------------------------------------

do-build:		$(TARGETS)

include	$(NITRODWC_ROOT)/build/buildtools/modulerules

voip.mrg: bin/ARM9-TS/Release/main.srl 
	$(NCMERGE) -D $^ -n $(NETCARD_SDK_ROOT)/usr/bin/sc/audbufrm.elf -o $@

voip.bwf: voip.mrg
	$(NCPUBLISH) -s 1 -W -n voip -l $^

#===== End of Makefile =====
