1###############################################################################
2# Makefile for axdemo
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.7  06/08/2006 08:16:41  aka
14# Modified for new AXFX made by Kawamura-san (EAD).
15#
16# Revision 1.6  02/02/2006 02:44:39  aka
17# Revised comment.
18#
19# Revision 1.5  02/01/2006 04:36:03  aka
20# Changed copyright.
21#
22# Revision 1.4  01/06/2006 07:13:11  hiratsu
23# changed LCF file path.
24#
25# Revision 1.3  11/16/2005 08:28:28  yasuh-to
26# Changed path of configuration file.
27#
28# Revision 1.2  11/04/2005 05:17:15  aka
29# Modified for Revolution.
30#
31# Revision 1.1	 2005/11/04 05:01:08  aka
32# Imported from Dolphin tree.
33#
34###############################################################################
35
36##################################
37# QUICK START INSTRUCTIONS
38# Type "make" at /revolution/build/tests/audio to build DEBUG versions of all tests.
39# Type "make NDEBUG=TRUE" to build OPTIMIZED versions of all tests
40# Type "make lit-test00D.bin" to build DEBUG version of just lit-test00
41# Type "make NDEBUG=TRUE lit-test00.bin" to build OPTIMIZED version of
42# ju ctable paths can be found in modulerules.
43# just lit-test00
44#
45# To add another test
46# 1. add the .c files to CSRCS to make sure they are built
47# 2. add the binary name (no suffix) to BINNAMES
48# 3. add a dependency rule for this executable at the bottom of this file
49##################################
50
51
52# All modules have "setup" and "build" as targets.  System libraries
53# and demo programs also have an "install" target that copies the compiled
54# binaries to the binary tree (/revolution/$(ARCH_TARGET)).
55
56all:	setup build install
57
58# commondefs must be included near the top so that all common variables
59# will be defined before their use.
60
61include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs
62
63# module name should be set to the name of this subdirectory
64# DEMO = TRUE indicates that this module resides under the "demos" subtree.
65# The list of selectable paths can be found in modulerules.
66
67MODULENAME	= axdemo
68DEMO		= TRUE
69
70# CSRCS lists all C files that should be built
71# The makefile determines which objects are linked into which binaries
72# based on the dependencies you fill in at the bottom of this file
73
74CSRCS =		axstream.c         \
75		axsimple.c         \
76		syndemo.c          \
77		seqdemo.c          \
78		compressor.c       \
79		axart3ddemo.c      \
80		dpl2demo.c         \
81		dpl2reverb.c       \
82		axfilter.c         \
83                expchorus.c        \
84                expchorusDpl2.c    \
85                expdelay.c         \
86                expdelayDpl2.c     \
87                expreverbStd.c     \
88                expreverbStdDpl2.c \
89                expreverbHi.c      \
90                expreverbHiDpl2.c  \
91                fxbussend.c        \
92                fxbussendDpl2.c
93
94# BINNAMES lists all binaries that will be linked.  Note that no suffix is
95# required, as that will depend on whether this is a DEBUG build or not.
96# The final name of the binaries will be $(BINNAME)$(BINSUFFIX)
97
98BINNAMES =	axstream         \
99		axsimple         \
100		syndemo	         \
101		seqdemo	         \
102		compressor       \
103		axart3ddemo      \
104		dpl2demo         \
105		dpl2reverb       \
106		axfilter         \
107                expchorus        \
108                expchorusDpl2    \
109                expdelay         \
110                expdelayDpl2     \
111                expreverbStd     \
112                expreverbStdDpl2 \
113                expreverbHi      \
114                expreverbHiDpl2  \
115                fxbussendDpl2    \
116                fxbussend
117
118# defining a linker command file will have the build system generate it
119# automatically and include it on the linker invocation line
120
121LCF_FILE	= $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf
122
123# modulerules contains the rules that will use the above variables
124# and dependencies below to construct the binaries specified.
125
126include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules
127
128# Dependencies for the binaries listed in BINNAMES should come here
129# They are your typical makefile rule, with extra variables to ensure
130# that the names and paths match up.
131# $(FULLBIN_ROOT) is the location of the local bin directory
132# $(BINSUFFIX) depends on whether this is a debug build or not
133# $(REVOLUTION_LIBS) includes all the Revolution libraries.
134
135$(FULLBIN_ROOT)/axstream$(BINSUFFIX):	axstream.o	\
136					$(REVOLUTION_LIBS)
137
138$(FULLBIN_ROOT)/axsimple$(BINSUFFIX):	axsimple.o	\
139					$(REVOLUTION_LIBS)
140
141$(FULLBIN_ROOT)/syndemo$(BINSUFFIX):	syndemo.o	\
142					$(REVOLUTION_LIBS)
143
144$(FULLBIN_ROOT)/seqdemo$(BINSUFFIX):	seqdemo.o	\
145					$(REVOLUTION_LIBS)
146
147$(FULLBIN_ROOT)/compressor$(BINSUFFIX): compressor.o    \
148					$(REVOLUTION_LIBS)
149
150$(FULLBIN_ROOT)/axart3ddemo$(BINSUFFIX):axart3ddemo.o	\
151					$(REVOLUTION_LIBS)
152
153$(FULLBIN_ROOT)/dpl2demo$(BINSUFFIX):	dpl2demo.o      \
154					$(REVOLUTION_LIBS)
155
156$(FULLBIN_ROOT)/dpl2reverb$(BINSUFFIX): dpl2reverb.o    \
157					$(REVOLUTION_LIBS)
158
159$(FULLBIN_ROOT)/axfilter$(BINSUFFIX):	axfilter.o	\
160					$(REVOLUTION_LIBS)
161
162$(FULLBIN_ROOT)/expchorus$(BINSUFFIX): expchorus.o   \
163					$(REVOLUTION_LIBS)
164
165$(FULLBIN_ROOT)/expchorusDpl2$(BINSUFFIX): expchorusDpl2.o   \
166					$(REVOLUTION_LIBS)
167
168$(FULLBIN_ROOT)/expdelay$(BINSUFFIX): expdelay.o   \
169					$(REVOLUTION_LIBS)
170
171$(FULLBIN_ROOT)/expdelayDpl2$(BINSUFFIX): expdelayDpl2.o   \
172					$(REVOLUTION_LIBS)
173
174$(FULLBIN_ROOT)/expreverbStd$(BINSUFFIX): expreverbStd.o   \
175					$(REVOLUTION_LIBS)
176
177$(FULLBIN_ROOT)/expreverbStdDpl2$(BINSUFFIX): expreverbStdDpl2.o   \
178					$(REVOLUTION_LIBS)
179
180$(FULLBIN_ROOT)/expreverbHi$(BINSUFFIX): expreverbHi.o   \
181					$(REVOLUTION_LIBS)
182
183$(FULLBIN_ROOT)/expreverbHiDpl2$(BINSUFFIX): expreverbHiDpl2.o   \
184					$(REVOLUTION_LIBS)
185
186$(FULLBIN_ROOT)/fxbussend$(BINSUFFIX): fxbussend.o   \
187					$(REVOLUTION_LIBS)
188
189$(FULLBIN_ROOT)/fxbussendDpl2$(BINSUFFIX): fxbussendDpl2.o   \
190					$(REVOLUTION_LIBS)
191
192#======== End of makefile ========#
193