1############################################################################### 2# Makefile for pmicdemo 3# 4# Copyright (C)2007 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.2.1 2009/10/15 07:10:13 aka 14# Removed VEN. 15# 16# Revision 1.5 2009/01/07 05:10:39 ozeki_kohei 17# Added VEN. 18# 19# Revision 1.4 2008/09/05 09:41:58 nrs_buildsystem 20# Changed all command to adopt "make -j option(parallel processing)" (by yasuh-to). 21# 22# Revision 1.3 2008/08/06 01:39:11 carlmu 23# Added graphic demo. 24# 25# Revision 1.2 2008/01/22 04:04:24 aka 26# removed 2 libs. 27# 28# Revision 1.1 2008/01/22 02:49:38 aka 29# initial check-in. 30# 31# 32############################################################################### 33 34################################## 35# QUICK START INSTRUCTIONS 36# Type "make" at /revolution/build/tests/audio to build DEBUG versions of all tests. 37# Type "make NDEBUG=TRUE" to build OPTIMIZED versions of all tests 38# Type "make lit-test00D.bin" to build DEBUG version of just lit-test00 39# Type "make NDEBUG=TRUE lit-test00.bin" to build OPTIMIZED version of 40# ju ctable paths can be found in modulerules. 41# just lit-test00 42# 43# To add another test 44# 1. add the .c files to CSRCS to make sure they are built 45# 2. add the binary name (no suffix) to BINNAMES 46# 3. add a dependency rule for this executable at the bottom of this file 47################################## 48 49 50# All modules have "setup" and "build" as targets. System libraries 51# and demo programs also have an "install" target that copies the compiled 52# binaries to the binary tree (/revolution/$(ARCH_TARGET)). 53 54all: 55 $(MAKE) setup 56 $(MAKE) build 57 $(MAKE) install 58 59# commondefs must be included near the top so that all common variables 60# will be defined before their use. 61 62include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs 63 64# module name should be set to the name of this subdirectory 65# DEMO = TRUE indicates that this module resides under the "demos" subtree. 66# The list of selectable paths can be found in modulerules. 67 68MODULENAME = pmicdemo 69DEMO = TRUE 70 71# CSRCS lists all C files that should be built 72# The makefile determines which objects are linked into which binaries 73# based on the dependencies you fill in at the bottom of this file 74 75CSRCS = pmic_simple.c pmic_graphic.c audio.c 76 77OBJS = $(CSRCS:.c=.o) 78 79# BINNAMES lists all binaries that will be linked. Note that no suffix is 80# required, as that will depend on whether this is a DEBUG build or not. 81# The final name of the binaries will be $(BINNAME)$(BINSUFFIX) 82 83BINNAMES = pmic_simple pmic_graphic 84 85# defining a linker command file will have the build system generate it 86# automatically and include it on the linker invocation line 87 88LCF_FILE = $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf 89 90# modulerules contains the rules that will use the above variables 91# and dependencies below to construct the binaries specified. 92 93include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules 94 95# Dependencies for the binaries listed in BINNAMES should come here 96# They are your typical makefile rule, with extra variables to ensure 97# that the names and paths match up. 98# $(FULLBIN_ROOT) is the location of the local bin directory 99# $(BINSUFFIX) depends on whether this is a debug build or not 100# $(REVOLUTION_LIBS) includes all the Revolution libraries. 101 102$(FULLBIN_ROOT)/pmic_simple$(BINSUFFIX): pmic_simple.o audio.o \ 103 $(REVOLUTION_LIBS) \ 104 $(INSTALL_ROOT)/lib/pmic$(LIBSUFFIX) 105 106$(FULLBIN_ROOT)/pmic_graphic$(BINSUFFIX): pmic_graphic.o audio.o \ 107 $(REVOLUTION_LIBS) \ 108 $(INSTALL_ROOT)/lib/pmic$(LIBSUFFIX) 109 110#======== End of makefile ========# 111