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