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:$ 15#---------------------------------------------------------------------------- 16 17SUPPORTED_TARGETS = CTR-*.Process.MPCore.* 18 19SOURCES[] = 20 sources/main.cpp 21 22TARGET_PROGRAM = PackedFont 23 24FONT_OPTIONS = -i win -in Tahoma -is 16 -ic A6 -ia -o bcfnt -op resources/layoutDemo.xggp -f resources/layoutDemo.xllt 25 26SHADER_BIN = nwfont_TextWriterShader.shbin 27 28INCLUDES += 29 30# ROM�Ɋ܂߂�t�@�C���̃��[�g���L�q���܂��B 31# ���̃p�X�ȉ��̃t�@�C���́AROM�Ɋ܂܂�t�@�C���V�X�e������ǂݍ��߂܂��B 32ROMFS_ROOT = romfiles 33 34SHADER_PATH = $(ROMFS_ROOT)/$(SHADER_BIN) 35 36FONT_FILE = $(ROMFS_ROOT)/tahoma.bcfna 37 38ROMFS_DEPENDENCIES = $(FONT_FILE) $(SHADER_PATH) 39 40include $(NW4C_ROOT)/build/omake/modulerules 41 42build: $(DEFAULT_TARGETS) 43 44$(FONT_FILE): 45 mkdir -p $(dirname $@) 46 $(FONT_CONVERTER) -of $@ $(FONT_OPTIONS) 47 48$(SHADER_PATH): $(NW4C_ROOT)/shaders/$(SHADER_BIN) 49 mkdir -p $(dirname $@) 50 cp $< $@ 51