1############################################################################### 2# Makefile for gd 3# 4# Copyright 2001 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.4 2008/09/05 09:44:16 nrs_buildsystem 14# Changed all commands to adopt "make -j option(parallel processing)" (by yasuh-to). 15# 16# Revision 1.3 2005/11/16 08:27:42 yasuh-to 17# Changed the macro indicating the path to the settings file 18# 19# Revision 1.2 2005/07/07 11:57:52 yasuh-to 20# Changed environment variables from NNGC* to REVOLUTION* 21# 22# Revision 1.1.1.1 2005/05/12 02:15:49 yasuh-to 23# Ported from dolphin sheath tree. 24# 25# 26# 3 2003/02/12 9:43 Hirose 27# Added GDIndirect.c. 28# 29# 2 2001/11/21 4:46p Hirose 30# Added host side build script. 31# 32# 1 2001/09/12 1:57p Carl 33# Initial revision of GD: Graphics Display List Library. 34# $NoKeywords: $ 35############################################################################### 36 37 38ifdef X86 39# build host library 40all: 41 $(MAKE) buildhost 42clean: cleanhost 43else 44# build and install library for GC hardware 45all: 46 $(MAKE) setup 47 $(MAKE) build 48 $(MAKE) install 49endif 50 51ifdef X86 52buildhost: 53 @echo ===========Build host library============== 54 @./buildscript 55 @echo =========================================== 56 57cleanhost: 58 @echo ===========Clean up host library=========== 59 @./buildscript /CLEAN 60 @echo =========================================== 61endif 62 63# module name should be set to the name of this subdirectory 64MODULENAME = gd 65LIB = TRUE 66 67LIBNAME = gd 68 69include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs 70 71ifdef EPPC 72CLIBSRCS = GDBase.c \ 73 GDFile.c \ 74 GDGeometry.c \ 75 GDIndirect.c \ 76 GDLight.c \ 77 GDPixel.c \ 78 GDTev.c \ 79 GDTexture.c \ 80 GDTransform.c 81endif 82 83# This must come after all variables have been defined 84include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules 85 86