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