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