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
19SUPPORTED_TARGETS   =   CTR-*.Process.MPCore.*
20
21SOURCES[]           =
22                        sources/main.cpp
23
24TARGET_PROGRAM      =   ArchiveFont
25
26FONT_OPTIONS        =   -i win -in Tahoma -is 16 -ic A6 -ia -o bcfnt -op resources/layoutDemo.xggp -f resources/layoutDemo.xllt
27
28SHADER_BIN          =   nwfont_RectDrawerShader.shbin
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