1############################################################################### 2# Makefile for scdemo 3# 4# Copyright 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.4 2008/09/05 09:42:07 nrs_buildsystem 14# Changed all command to adopt "make -j option(parallel processing)" (by yasuh-to). 15# 16# Revision 1.3 2006/03/13 01:45:54 kawaset 17# Updated dependency. 18# 19# Revision 1.2 2006/02/07 01:11:38 kawaset 20# Fixed build error for RVL 21# 22# Revision 1.1 2006/02/03 12:57:04 kawaset 23# Initial check-in. 24# 25# 26# $NoKeywords: $ 27# 28############################################################################### 29 30# All modules have "setup" and "build" as targets. System libraries 31# and demo programs also have an "install" target that copies the compiled 32# binaries to the binary tree (/$(ARCH_TARGET)). 33 34all: 35 $(MAKE) setup 36 $(MAKE) build 37 $(MAKE) install 38 39 40# commondefs must be included near the top so that all common variables 41# will be defined before their use. 42 43include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs 44 45 46# module name should be set to the name of this subdirectory 47# DEMO = TRUE indicates that this module resides under the "demos" subtree. 48# The list of selectable paths can be found in modulerules. 49 50MODULENAME = scdemo 51DEMO = TRUE 52 53 54# CSRCS lists all C files that should be built 55# The makefile determines which objects are linked into which binaries 56# based on the dependencies you fill in at the bottom of this file 57 58CSRCS = main.c 59 60 61# BINNAMES lists all binaries that will be linked. Note that no suffix is 62# required, as that will depend on whether this is a DEBUG build or not. 63# The final name of the binaries will be $(BINNAME)$(BINSUFFIX) 64 65BINNAMES = $(MODULENAME) 66 67 68# defining a linker command file will have the build system generate it 69# automatically and include it on the linker invocation line 70 71LCF_FILE = $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf 72 73 74# modulerules contains the rules that will use the above variables 75# and dependencies below to construct the binaries specified. 76 77include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules 78 79 80# Dependencies for the binaries listed in BINNAMES should come here 81# They are your typical makefile rule, with extra variables to ensure 82# that the names and paths match up. 83# $(FULLBIN_ROOT) is the location of the local bin directory 84# $(BINSUFFIX) depends on whether this is a debug build or not 85# $(REVOLUTION_LIBS) includes all the Revolution libraries. 86 87$(FULLBIN_ROOT)/$(MODULENAME)$(BINSUFFIX): main.o \ 88 $(REVOLUTION_LIBS) 89 90 91#======== End of makefile ========# 92