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