1############################################################################### 2# Makefile for discnanddemo 3# 4# Copyright (C) 2008 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.2.2.1 2009/10/21 08:41:38 miyamoto_satoshi 14# Modified format all: 15# 16# Revision 1.2 2009/10/05 05:52:57 iwai_yuma 17# Initial check-in to HEAD. 18# 19# Revision 1.1.2.1 2008/11/18 09:02:37 ooizumi 20# Initial check-in. 21# 22############################################################################### 23 24# All modules have "setup" and "build" as targets. System libraries 25# and demo programs also have an "install" target that copies the compiled 26# binaries to the binary tree (/$(ARCH_TARGET)). 27 28all: 29 $(MAKE) setup 30 $(MAKE) build 31 $(MAKE) install 32 33# commondefs must be included near the top so that all common variables 34# will be defined before their use. 35 36include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs 37 38# module name should be set to the name of this subdirectory 39# DEMO = TRUE indicates that this module resides under the "demos" subtree. 40# The list of selectable paths can be found in modulerules. 41 42MODULENAME = discnanddemo 43DEMO = TRUE 44 45# CSRCS lists all C files that should be built 46# The makefile determines which objects are linked into which binaries 47# based on the dependencies you fill in at the bottom of this file 48 49CSRCS = discnanddemo1.c discnanddemo2.c 50 51# BINNAMES lists all binaries that will be linked. Note that no suffix is 52# required, as that will depend on whether this is a DEBUG build or not. 53# The final name of the binaries will be $(BINNAME)$(BINSUFFIX) 54 55BINNAMES = discnanddemo1 discnanddemo2 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# modulerules contains the rules that will use the above variables 63# and dependencies below to construct the binaries specified. 64 65include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules 66 67# Dependencies for the binaries listed in BINNAMES should come here 68# They are your typical makefile rule, with extra variables to ensure 69# that the names and paths match up. 70# $(FULLBIN_ROOT) is the location of the local bin directory 71# $(BINSUFFIX) depends on whether this is a debug build or not 72# $(REVOLUTION_LIBS) includes all the Revolution libraries. 73 74$(FULLBIN_ROOT)/discnanddemo1$(BINSUFFIX): discnanddemo1.o $(REVOLUTION_LIBS) 75 76$(FULLBIN_ROOT)/discnanddemo2$(BINSUFFIX): discnanddemo2.o $(REVOLUTION_LIBS) 77 78# Make wad file of discnanddemo1 79export: $(FULLBIN_ROOT)/discnanddemo1$(BINSUFFIX) 80 @echo "Create discnanddemo1$(WADSUFFIX)" 81 @makedol -f $(FULLBIN_ROOT)/discnanddemo1$(BINSUFFIX) -d $(FULLBIN_ROOT)/discnanddemo1$(DOLSUFFIX) 82 @makeWad -n discnanddemo1$(ASUFFIX) -l $(FULLBIN_ROOT)/discnanddemo1$(DOLSUFFIX) -pc 0x4 -g ZZ -gc RABA 83 84 85#======== End of makefile ========# 86