###############################################################################
# Makefile for mpfs demo
#
# Copyright 2006,2007 Nintendo. 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.
#
# $Id: makefile,v 1.4 2007/05/14 11:37:17 hatamoto_minoru Exp $
###############################################################################

all:    install

include $(REVOLUTION_EXT_ROOT)/build/buildtools/commondefs
include $(REVOLUTION_EXT_ROOT)/build/demos/share/commondefs.demoshare

MODULENAME  = mpfsdemo
DEMO        = TRUE
REX_NETDEMO = TRUE

LCF_FILE    = $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf

BINNAMES    = mpfssimple
COMMONSRCS  = download.c fsserver.c
CSRCS       = $(COMMONSRCS) $(addsuffix .c, $(BINNAMES))

# DS program registration information has become a requirement with RevoEX1.0plus and later versions.
CSRCS      += registration.c
src/registration.c: $(wildcard $(REVOLUTION_EXT_ROOT)/build/demos/mpfsdemo/dvddata/*.srl)
	$(REVOLUTION_EXT_ROOT)/X86/bin/regds.exe -o $@ $^

REX_DVDROOT = $$(REVOLUTION_EXT_ROOT)/build/demos/mpfsdemo/dvddata

include $(REVOLUTION_EXT_ROOT)/build/buildtools/modulerules
include $(REVOLUTION_EXT_ROOT)/build/demos/share/modulerules.demoshare

$(FULLBIN_ROOT)/mpfssimple$(BINSUFFIX): download.o fsserver.o mpfssimple.o registration.o $(REX_DEMOSHARE_OBJS) $(REVOLUTION_LIBS) $(REX_LIBS)


#======== End of makefile ========#
