1############################################################################### 2# Makefile for demo library 3# 4# Copyright 1998- 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 2008/09/05 09:43:37 nrs_buildsystem 14# Changed all commands to adopt "make -j option(parallel processing)" (by yasuh-to). 15# 16# Revision 1.4 2006/01/07 06:49:14 hirose 17# Reconstruction from simpler form. Deleted DEMOStats. 18# 19# Revision 1.3 2005/11/16 08:27:40 yasuh-to 20# changed the macro indicating the path to the settings file 21# 22# Revision 1.2 2005/07/07 11:57:50 yasuh-to 23# changed environment variables from NNGC* to REVOLUTION* 24# 25# Revision 1.1.1.1 2005/05/12 02:15:48 yasuh-to 26# Ported from dolphin sheath tree. 27# 28# $NoKeywords: $ 29############################################################################### 30 31################################## 32# QUICK START INSTRUCTIONS 33# Type "make" at /dolphin/build/libraries/demo to build DEBUG version 34# of the demo library 35# Type "make NDEBUG=TRUE" to build OPTIMIZED versions of the demo library 36# 37# To add more sources to a library 38# 1. add the .c files to CLIBSRCS 39################################## 40 41 42# All modules have "setup" and "build" as targets. System libraries 43# and demo programs also have an "install" target that copies the compiled 44# binaries to the binary tree (/dolphin/$(ARCH_TARGET)). 45all: 46 $(MAKE) setup 47 $(MAKE) build 48 $(MAKE) install 49 50# commondefs must be included near the top so that all common variables 51# will be defined before their use. 52include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs 53 54# module name should be set to the name of this subdirectory 55# LIB = TRUE indicates that this module resides under the "libraries" subtree. 56# The list of selectable paths can be found in modulerules. 57MODULENAME = demo 58LIB = TRUE 59 60# LIBNAME specifies the name of the library. No suffix is required, as 61# that will depend on whether this is a DEBUG build or not. 62# The final name of the library will be $(LIBNAME)$(LIBSUFFIX) 63LIBNAME = demo 64 65# CLIBSRCS specifies all C files that are built and linked into the library. 66CLIBSRCS = DEMOInit.c DEMOPuts.c DEMOFont.c DEMOPad.c DEMOWin.c DEMOAVX.c 67 68# modulerules contains the rules that will use the above variables 69# to construct the library specified. 70include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules 71 72