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