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: 25429 $ 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 = Male.bcmdl 23MODEL_SET[] = 24 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Male.cmdl 25 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Male.ctex 26 27SKY_MODEL = $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/SkySphere.cmdl 28 29# ���̑��̃��\�[�X�t�@�C�����w�肵�܂��B 30RESOURCE_FILES[] = 31 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/SceneEnvironmentSetting.cenv 32 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/FragmentLight.cenv 33 $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Male/Walk.cskla 34 35# �t�H���g�o�C�i�����w�肵�܂��B 36FONT_BINARY = $(NW4C_ROOT)/SampleData/Graphics/Intermediate/ProgramResource/Environment/Font.bcfnt 37 38# �t�H���g�`��p�̃V�F�[�_�[�t�@�C�����w�肵�܂��B 39FONT_SHADER_SHBIN = $(NW4C_ROOT)/shaders/nwfont_RectDrawerShader.shbin 40 41# �v���O���������w�肵�܂��B 42TARGET_PROGRAM = AnimationDemo 43 44# �r���h����\�[�X�R�[�h���w�肵�܂��B 45SOURCES[] = sources/$(TARGET_PROGRAM).cpp 46 47# ROM�Ɋ܂߂�t�@�C���̃��[�g���L�q���܂��B 48# ���̃p�X�ȉ��̃t�@�C���́AROM�Ɋ܂܂�t�@�C���V�X�e������ǂݍ��߂܂��B 49ROMFS_ROOT = romfiles 50 51# �o�C�i���R���o�[�g�̃I�v�V�������w�肵�܂��B 52MODEL_OPTION = --auto_create_shader=on 53 54SKY_MODEL_OPTION = --auto_create_shader=on 55 56RESOURCE_OPTION = --auto_create_shader=off 57 58MODEL_TARGET = $(GfxBinaryObject $(ROMFS_ROOT)/$(MODEL_SET_NAME), $(MODEL_SET), $(MODEL_OPTION)) 59 60SKY_MODEL_TARGET = $(GfxBinaryObjects $(ROMFS_ROOT), $(SKY_MODEL), $(SKY_MODEL_OPTION)) 61 62RESOUCE_TARGETS = $(GfxBinaryObjects $(ROMFS_ROOT), $(RESOURCE_FILES), $(RESOURCE_OPTION)) 63 64FONT_TARGETS = $(ROMFS_ROOT)/$(basename $(FONT_BINARY)) 65 66$(FONT_TARGETS): $(FONT_BINARY) 67 mkdir -p $(dirname $@) 68 cp $< $@ 69 70FONT_SHADER_TARGETS = $(ROMFS_ROOT)/$(basename $(FONT_SHADER_SHBIN)) 71 72$(FONT_SHADER_TARGETS): $(FONT_SHADER_SHBIN) 73 mkdir -p $(dirname $@) 74 cp $< $@ 75 76ROMFS_DEPENDENCIES = $(MODEL_TARGET) $(SKY_MODEL_TARGET) $(RESOUCE_TARGETS) $(FONT_SHADER_TARGETS) $(FONT_TARGETS) 77 78include $(NW4C_ROOT)/build/omake/modulerules 79 80build: $(DEFAULT_TARGETS) 81 82resource: $(ROMFS_DEPENDENCIES)