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