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