#!/usr/bin/env omake
#----------------------------------------------------------------------------
# Project:  Horizon
# File:     OMakefile
#
# Copyright (C)2009-2012 Nintendo Co., Ltd.  All rights reserved.
#
# These coded instructions, statements, and computer programs contain
# proprietary information of Nintendo of America Inc. and/or Nintendo
# Company Ltd., and are protected by Federal copyright law.  They may
# not be disclosed to third parties or copied or duplicated in any form,
# in whole or in part, without the prior written consent of Nintendo.
#
# $Rev: 46365 $
#----------------------------------------------------------------------------

.SUBDIRS: DemoVersion

# Specifies the target that the process supports.
# The system name should always be "Process".
SUPPORTED_TARGETS   =   CTR-T*.Process.MPCore.*

SAMPLED_DEMOS_COMMON_INCLUDE_DIR   = $(dir ../common/include)
INCLUDES           += $(SAMPLED_DEMOS_COMMON_INCLUDE_DIR)

# ダウンロードアプリ(cia) のみを作成する場合は CTR_APPTYPE = SD を、
# カードアプリ(cci) とダウンロードアプリの両方を作成する場合は CTR_APPTYPE = CARD SD を指定しください。
# カードアプリのみを作成する場合は CTR_APPTYPE を指定する必要はありません。
CTR_APPTYPE = CARD SD

# Specifies the source code to build.
SOURCES[]           =
                        demo1.cpp
                        gx.cpp
                        rtc.cpp
                        pad.cpp
                        tp.cpp
                        acc.cpp
                        mic.cpp
                        snd.cpp
                        camera.cpp
                        fs.cpp
                        savedata.cpp
                        kbd.cpp


# Specify the libraries to link. No extension is needed.
# Although several standard libraries are automatically linked by the build system, libraries provided for a specific process must be explicitly specified here.
# 
# 
#
# Normally, for fast builds, libraries with the same optimization options as in libnn_demo.fast are linked, but optimization options such as libnn_demo.fast can also be explicitly specified.
# 
#   
# 
LIBS                +=  lib_demo lib_applet


# Specifies the shader include directory.
SHADER_INCLUDES    +=   ../gx/DMPGL/Common

# Specifies the shader source code.
SHADER_SOURCES[]    =
                        shaders/VShader.vsh

# Specifies directory to output the shader binary.
SHBIN_INSTALL_ROOT  =   $(EMPTY)

# Link binary
OBJECTS[]           =
                        $`(ObjectFromBinary $(TARGET), $`(getShaderObjectDirectory)/shader.shbin)
                        $`(ObjectFromBinary $(TARGET), data/sound.dat)

MANUAL_DIR  = manual    # When creating an application with an e-manual, specify the directory containing the application's e-manual.
                        # 

# Describes the program name.
# No extension is needed.
TARGET_PROGRAM      =   demo1

# When specifying a proprietary RSF file, describe as shown below.
ROM_SPEC_FILE       =   demo1.rsf

# Banner, icon
CTR_BANNER_SPEC      =   demo1.bsf

include $(ROOT_OMAKE)/modulerules

build: $(DEFAULT_TARGETS)
