1###############################################################################
2# Makefile for fntdemo
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# $Id: makefile,v 1.1 2006/10/18 02:51:56 nishida_yasunari 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# module name should be set to the name of this subdirectory
22# DEMO = TRUE indicates that this module resides under the "demos" subtree.
23# The list of selectable paths can be found in modulerules.
24
25MODULENAME	= fntdemo
26DEMO		= TRUE
27
28
29# commondefs must be included near the top so that all common variables
30# will be defined before their use.
31
32include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs
33
34
35# additional libraries not defined as REVOLUTION_LIBS
36FNT_LIB      = $(INSTALL_ROOT)/lib/fnt$(LIBSUFFIX)
37
38
39# CSRCS lists all C files that should be built
40# The makefile determines which objects are linked into which binaries
41# based on the dependencies you fill in at the bottom of this file
42
43CSRCS = \
44	fntdemo1.c
45
46
47# BINNAMES lists all binaries that will be linked.  Note that no suffix is
48# required, as that will depend on whether this is a DEBUG build or not.
49# The final name of the binaries will be $(BINNAME)$(BINSUFFIX)
50
51BINNAMES = \
52	   fntdemo1
53
54
55# defining a linker command file will have the build system generate it
56# automatically and include it on the linker invocation line
57
58LCF_FILE	= $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf
59
60
61# modulerules contains the rules that will use the above variables
62# and dependencies below to construct the binaries specified.
63
64include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules
65
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)/fntdemo1$(BINSUFFIX): fntdemo1.o \
75				$(REVOLUTION_LIBS) $(FNT_LIB)
76
77#======== End of makefile ========#
78