#!/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 $ #---------------------------------------------------------------------------- # Create a downloadable trial version based on demo1. # Describes 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) # Since it is a downloadable application (CIA), specify CTR_APPTYPE = SD when creating. CTR_APPTYPE = 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 DESC file for downloadable trial version. DESCRIPTOR = $(CTRSDK_ROOT)/resources/specfiles/DemoVersion.desc # Specify the libraries to link. No extension is needed. 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 that has an e-manual, specify the directory where the application e-manual resides. # # Specifies the program name. # No extension is needed. TARGET_PROGRAM = demo1_Demo_version # When specifying a proprietary RSF file, describe as shown below. ROM_SPEC_FILE = demo1_Demo_version.rsf # Banner, icon CTR_BANNER_SPEC = demo1_Demo_version.bsf include $(ROOT_OMAKE)/modulerules build: $(DEFAULT_TARGETS)