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