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