1###############################################################################
2# Makefile for mpdl demo
3#
4# Copyright 2006 Nintendo. All rights reserved.
5#
6# These coded instructions, statements, and computer programs contain
7# proprietary information of Nintendo of America Inc. and/or Nintendo
8# Company Ltd., and are protected by Federal copyright law.  They may
9# not be disclosed to third parties or copied or duplicated in any form,
10# in whole or in part, without the prior written consent of Nintendo.
11#
12# $Id: makefile,v 1.10 2007/05/14 11:37:17 hatamoto_minoru Exp $
13###############################################################################
14
15all:    install
16
17include $(REVOLUTION_EXT_ROOT)/build/buildtools/commondefs
18include $(REVOLUTION_EXT_ROOT)/build/demos/share/commondefs.demoshare
19
20MODULENAME  = mpdldemo
21DEMO        = TRUE
22REX_NETDEMO = TRUE
23
24LCF_FILE    = $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf
25
26CSRCS       = mpdlsimple.c mpdlntr2rvl.c
27
28# DS program registration information has become a requirement with RevoEX1.0plus and later versions.
29CSRCS      += registration.c
30src/registration.c: $(wildcard $(REVOLUTION_EXT_ROOT)/build/demos/mpdldemo/dvddata/*.srl)
31	$(REVOLUTION_EXT_ROOT)/X86/bin/regds.exe -o $@ $^
32
33BINNAMES    = mpdlsimple mpdlntr2rvl
34
35REX_DVDROOT = $$(REVOLUTION_EXT_ROOT)/build/demos/mpdldemo/dvddata
36
37include $(REVOLUTION_EXT_ROOT)/build/buildtools/modulerules
38include $(REVOLUTION_EXT_ROOT)/build/demos/share/modulerules.demoshare
39
40$(FULLBIN_ROOT)/mpdlsimple$(BINSUFFIX): mpdlsimple.o registration.o $(REX_DEMOSHARE_OBJS) $(REVOLUTION_LIBS) $(REX_LIBS)
41
42$(FULLBIN_ROOT)/mpdlntr2rvl$(BINSUFFIX): mpdlntr2rvl.o registration.o $(REX_DEMOSHARE_OBJS) $(REVOLUTION_LIBS) $(REX_LIBS)
43
44
45#======== End of makefile ========#
46