1###############################################################################
2# CARD demo makefile
3#
4# Copyright 2000, 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.1  01/31/2006 10:45:06  mitu
14# (none)
15#
16#
17#   5     7/13/01 14:19 Shiki
18#   Added MULTIBYTE = TRUE.
19#
20#   4     6/19/01 1:05p Dante
21#   Added new create demos
22#
23#   3     6/14/01 11:37a Shiki
24#   Added save.
25#
26#   2     5/18/01 5:51p Shiki
27#   Added listdemo.
28#
29#   1     11/28/00 2:13p Tian
30#   Initial check-in.
31# $NoKeywords: $
32#
33###############################################################################
34
35all:    setup build install
36
37# module name should be set to the name of this subdirectory
38MODULENAME  = carddemo
39DEMO        = TRUE
40
41# listdemo.c uses Japanese Kanji characters
42#MULTIBYTE = TRUE
43CCFLAGS += -encoding SJIS
44
45include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs
46
47ifdef MAC
48
49else
50# EPPC
51
52CSRCS    = format.c create.c list.c save.c \
53           create-1icon.c create-8icon.c create-bnr-4icon.c
54
55# listdemo files
56CSRCS   += listdemo.c cardutil.c cont.c
57
58LCF_FILE	= $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf
59
60BINNAMES = format create list save  \
61           create-1icon create-8icon create-bnr-4icon listdemo
62
63endif
64
65TPL_LIB     = $(INSTALL_ROOT)/lib/tpl$(LIBSUFFIX)
66
67include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules
68
69$(FULLBIN_ROOT)/format$(BINSUFFIX): format.o \
70			$(REVOLUTION_LIBS)
71
72$(FULLBIN_ROOT)/create$(BINSUFFIX): create.o \
73			$(REVOLUTION_LIBS)
74
75$(FULLBIN_ROOT)/list$(BINSUFFIX): list.o \
76			$(REVOLUTION_LIBS)
77
78$(FULLBIN_ROOT)/save$(BINSUFFIX): save.o \
79			$(REVOLUTION_LIBS)
80
81$(FULLBIN_ROOT)/listdemo$(BINSUFFIX): listdemo.o cont.o cardutil.o \
82			$(REVOLUTION_LIBS) $(TPL_LIB)
83
84$(FULLBIN_ROOT)/create-1icon$(BINSUFFIX): create-1icon.o \
85			$(REVOLUTION_LIBS) $(TPL_LIB)
86
87$(FULLBIN_ROOT)/create-8icon$(BINSUFFIX): create-8icon.o \
88			$(REVOLUTION_LIBS) $(TPL_LIB)
89
90$(FULLBIN_ROOT)/create-bnr-4icon$(BINSUFFIX): create-bnr-4icon.o \
91			$(REVOLUTION_LIBS) $(TPL_LIB)
92