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.6 2008/09/05 09:42:17 nrs_buildsystem 14# Changed all command to adopt "make -j option(parallel processing)" (by yasuh-to). 15# 16# Revision 1.5 2006/02/02 02:40:40 aka 17# Changed copyright. 18# 19# Revision 1.4 2006/01/06 07:13:12 hiratsu 20# changed LCF file path. 21# 22# Revision 1.3 2005/11/16 08:28:29 yasuh-to 23# Changed path of configuration file. 24# 25# Revision 1.2 2005/11/04 05:20:57 aka 26# Modified for Revolution. 27# 28# Revision 1.1 2005/11/04 05:02:14 aka 29# Imported from Dolphin tree. 30# 31############################################################################### 32 33################################## 34# QUICK START INSTRUCTIONS 35# Type "make" at /revolution/build/tests/audio to build DEBUG versions of all tests. 36# Type "make NDEBUG=TRUE" to build OPTIMIZED versions of all tests 37# Type "make lit-test00D.bin" to build DEBUG version of just lit-test00 38# Type "make NDEBUG=TRUE lit-test00.bin" to build OPTIMIZED version of 39# ju ctable paths can be found in modulerules. 40# just lit-test00 41# 42# To add another test 43# 1. add the .c files to CSRCS to make sure they are built 44# 2. add the binary name (no suffix) to BINNAMES 45# 3. add a dependency rule for this executable at the bottom of this file 46################################## 47 48 49# All modules have "setup" and "build" as targets. System libraries 50# and demo programs also have an "install" target that copies the compiled 51# binaries to the binary tree (/revolution/$(ARCH_TARGET)). 52 53all: 54 $(MAKE) setup 55 $(MAKE) build 56 $(MAKE) 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 = spdemo 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 = spdemo.c 75 76# BINNAMES lists all binaries that will be linked. Note that no suffix is 77# required, as that will depend on whether this is a DEBUG build or not. 78# The final name of the binaries will be $(BINNAME)$(BINSUFFIX) 79BINNAMES = spdemo 80 81# defining a linker command file will have the build system generate it 82# automatically and include it on the linker invocation line 83 84LCF_FILE = $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf 85 86# modulerules contains the rules that will use the above variables 87# and dependencies below to construct the binaries specified. 88 89include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules 90 91# Dependencies for the binaries listed in BINNAMES should come here 92# They are your typical makefile rule, with extra variables to ensure 93# that the names and paths match up. 94# $(FULLBIN_ROOT) is the location of the local bin directory 95# $(BINSUFFIX) depends on whether this is a debug build or not 96# $(REVOLUTION_LIBS) includes all the Revolution libraries. 97 98$(FULLBIN_ROOT)/spdemo$(BINSUFFIX): spdemo.o \ 99 $(REVOLUTION_LIBS) 100 101#======== End of makefile ========# 102