1#!/usr/bin/env omake
2#----------------------------------------------------------------------------
3# Project:  NintendoWare
4# File:     OMakefile
5#
6# Copyright (C)2009-2010 Nintendo Co., Ltd./HAL Laboratory, Inc.  All rights reserved.
7#
8# These coded instructions, statements, and computer programs contain
9# proprietary information of Nintendo of America Inc. and/or Nintendo
10# Company Ltd., and are protected by Federal copyright law.  They may
11# not be disclosed to third parties or copied or duplicated in any form,
12# in whole or in part, without the prior written consent of Nintendo.
13#
14# $Revision: 19878 $
15#----------------------------------------------------------------------------
16
17# �v���Z�X���T�|�[�g����^�[�Q�b�g���L�q���܂��B
18# �V�X�e�����͕K�� Process �ɂȂ�͂��ł��B
19SUPPORTED_TARGETS   =   CTR-*.Process.MPCore.*
20
21# ���f���Z�b�g���w�肵�܂��B
22MODEL_SET_NAME = MultiAnimation.bcmdl
23MODEL_SET[] =
24            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Male.cmdl
25            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Male.ctex
26            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/MatAnim.cmdl
27            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/MatAnim.ctex
28            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/VisibilityAnim.cmdl
29            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/CameraAnim.cmdl
30            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.cmdl
31
32SKY_MODEL = $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/SkySphere.cmdl
33
34# ���̑��̃��\�[�X�t�@�C�����w�肵�܂��B
35RESOURCE_FILES[] =
36            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/SceneEnvironmentSetting.cenv
37            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/FragmentLight.cenv
38            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Walk.cskla
39            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/MatAnim.cmata
40            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/VisibilityAnim.cmdla
41            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/CameraAnim.ccam
42            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.cenv
43            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.clgt
44            $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/MultiAnimationDemo/LightAnim.cres
45
46# �t�H���g�o�C�i�����w�肵�܂��B
47FONT_BINARY = $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/Font.bcfnt
48
49# �t�H���g�`��p�̃V�F�[�_�[�t�@�C�����w�肵�܂��B
50FONT_SHADER_SHBIN =  $(NW4C_ROOT)/shaders/nwfont_RectDrawerShader.shbin
51
52# �v���O���������w�肵�܂��B
53TARGET_PROGRAM      =   MultiAnimationDemo
54
55# �r���h����\�[�X�R�[�h���w�肵�܂��B
56SOURCES[]           =   sources/$(TARGET_PROGRAM).cpp
57
58# ROM�Ɋ܂߂�t�@�C���̃��[�g���L�q���܂��B
59# ���̃p�X�ȉ��̃t�@�C���́AROM�Ɋ܂܂�t�@�C���V�X�e������ǂݍ��߂܂��B
60ROMFS_ROOT          =   romfiles
61
62# �o�C�i���R���o�[�g�̃I�v�V�������w�肵�܂��B
63MODEL_OPTION = --auto_create_shader=on
64
65SKY_MODEL_OPTION = --auto_create_shader=on
66
67RESOURCE_OPTION = --auto_create_shader=off
68
69MODEL_TARGET = $(GfxBinaryObject $(ROMFS_ROOT)/$(MODEL_SET_NAME), $(MODEL_SET), $(MODEL_OPTION))
70
71SKY_MODEL_TARGET = $(GfxBinaryObjects $(ROMFS_ROOT), $(SKY_MODEL), $(SKY_MODEL_OPTION))
72
73RESOUCE_TARGETS = $(GfxBinaryObjects $(ROMFS_ROOT), $(RESOURCE_FILES), $(RESOURCE_OPTION))
74
75FONT_TARGETS = $(ROMFS_ROOT)/$(basename $(FONT_BINARY))
76
77$(FONT_TARGETS): $(FONT_BINARY)
78    mkdir -p $(dirname $@)
79    cp $< $@
80
81FONT_SHADER_TARGETS = $(ROMFS_ROOT)/$(basename $(FONT_SHADER_SHBIN))
82
83$(FONT_SHADER_TARGETS): $(FONT_SHADER_SHBIN)
84    mkdir -p $(dirname $@)
85    cp $< $@
86
87ROMFS_DEPENDENCIES = $(MODEL_TARGET) $(SKY_MODEL_TARGET) $(RESOUCE_TARGETS) $(FONT_SHADER_TARGETS) $(FONT_TARGETS)
88
89include $(NW4C_ROOT)/build/omake/modulerules
90
91build: $(DEFAULT_TARGETS)
92
93resource: $(ROMFS_DEPENDENCIES)