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