1#!/usr/bin/env omake 2#---------------------------------------------------------------------------- 3# Project: Horizon 4# File: OMakefile 5# 6# Copyright (C)2009-2012 Nintendo Co., Ltd. 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# $Rev: 46365 $ 15#---------------------------------------------------------------------------- 16 17# Create a downloadable trial version based on demo1. 18 19# Describes the target that the process supports. 20# The system name should always be "Process". 21SUPPORTED_TARGETS = CTR-T*.Process.MPCore.* 22 23SAMPLED_DEMOS_COMMON_INCLUDE_DIR = $(dir ../../common/include) 24INCLUDES += $(SAMPLED_DEMOS_COMMON_INCLUDE_DIR) 25 26# Since it is a downloadable application (CIA), specify CTR_APPTYPE = SD when creating. 27CTR_APPTYPE = SD 28 29# Specifies the source code to build. 30SOURCES[] = 31 ../demo1.cpp 32 ../gx.cpp 33 ../rtc.cpp 34 ../pad.cpp 35 ../tp.cpp 36 ../acc.cpp 37 ../mic.cpp 38 ../snd.cpp 39 ../camera.cpp 40 ../fs.cpp 41 ../savedata.cpp 42 ../kbd.cpp 43 44# Specify DESC file for downloadable trial version. 45DESCRIPTOR = $(CTRSDK_ROOT)/resources/specfiles/DemoVersion.desc 46 47 48# Specify the libraries to link. No extension is needed. 49LIBS += lib_demo lib_applet 50 51 52# Specifies the shader include directory. 53SHADER_INCLUDES += ../../gx/DMPGL/Common 54 55# Specifies the shader source code. 56SHADER_SOURCES[] = 57 ../shaders/VShader.vsh 58 59# Specifies directory to output the shader binary. 60SHBIN_INSTALL_ROOT = $(EMPTY) 61 62# Link binary 63OBJECTS[] = 64 $`(ObjectFromBinary $(TARGET), $`(getShaderObjectDirectory)/shader.shbin) 65 $`(ObjectFromBinary $(TARGET), ../data/sound.dat) 66 67MANUAL_DIR = ../manual # When creating an application that has an e-manual, specify the directory where the application e-manual resides. 68 # 69 70# Specifies the program name. 71# No extension is needed. 72TARGET_PROGRAM = demo1_Demo_version 73 74# When specifying a proprietary RSF file, describe as shown below. 75ROM_SPEC_FILE = demo1_Demo_version.rsf 76 77# Banner, icon 78CTR_BANNER_SPEC = demo1_Demo_version.bsf 79 80include $(ROOT_OMAKE)/modulerules 81 82build: $(DEFAULT_TARGETS) 83