1###############################################################################
2# Makefile for spdemo
3#
4# Copyright (C)1998-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# $Log: makefile,v $
13# Revision 1.5  02/02/2006 02:40:40  aka
14# Changed copyright.
15#
16# Revision 1.4  01/06/2006 07:13:12  hiratsu
17# changed LCF file path.
18#
19# Revision 1.3  11/16/2005 08:28:29  yasuh-to
20# Changed path of configuration file.
21#
22# Revision 1.2  11/04/2005 05:20:57  aka
23# Modified for Revolution.
24#
25# Revision 1.1  11/04/2005 05:02:14  aka
26# Imported from Dolphin tree.
27#
28###############################################################################
29
30##################################
31# QUICK START INSTRUCTIONS
32# Type "make" at /revolution/build/tests/audio to build DEBUG versions of all tests.
33# Type "make NDEBUG=TRUE" to build OPTIMIZED versions of all tests
34# Type "make lit-test00D.bin" to build DEBUG version of just lit-test00
35# Type "make NDEBUG=TRUE lit-test00.bin" to build OPTIMIZED version of
36# ju ctable paths can be found in modulerules.
37# just lit-test00
38#
39# To add another test
40# 1. add the .c files to CSRCS to make sure they are built
41# 2. add the binary name (no suffix) to BINNAMES
42# 3. add a dependency rule for this executable at the bottom of this file
43##################################
44
45
46# All modules have "setup" and "build" as targets.  System libraries
47# and demo programs also have an "install" target that copies the compiled
48# binaries to the binary tree (/revolution/$(ARCH_TARGET)).
49
50all: 	setup build install
51
52# commondefs must be included near the top so that all common variables
53# will be defined before their use.
54
55include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs
56
57# module name should be set to the name of this subdirectory
58# DEMO = TRUE indicates that this module resides under the "demos" subtree.
59# The list of selectable paths can be found in modulerules.
60
61MODULENAME	= spdemo
62DEMO		= TRUE
63
64# CSRCS lists all C files that should be built
65# The makefile determines which objects are linked into which binaries
66# based on the dependencies you fill in at the bottom of this file
67
68CSRCS =		spdemo.c
69
70# BINNAMES lists all binaries that will be linked.  Note that no suffix is
71# required, as that will depend on whether this is a DEBUG build or not.
72# The final name of the binaries will be $(BINNAME)$(BINSUFFIX)
73BINNAMES = 	spdemo
74
75# defining a linker command file will have the build system generate it
76# automatically and include it on the linker invocation line
77
78LCF_FILE	= $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf
79
80# modulerules contains the rules that will use the above variables
81# and dependencies below to construct the binaries specified.
82
83include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules
84
85# Dependencies for the binaries listed in BINNAMES should come here
86# They are your typical makefile rule, with extra variables to ensure
87# that the names and paths match up.
88# $(FULLBIN_ROOT) is the location of the local bin directory
89# $(BINSUFFIX) depends on whether this is a debug build or not
90# $(REVOLUTION_LIBS) includes all the Revolution libraries.
91
92$(FULLBIN_ROOT)/spdemo$(BINSUFFIX):	spdemo.o	\
93					$(REVOLUTION_LIBS)
94
95#======== End of makefile ========#
96