#!/usr/bin/env omake #---------------------------------------------------------------------------- # Project: Horizon # File: OMakefile # # Copyright (C)2009 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: 31765 $ #---------------------------------------------------------------------------- SUPPORTED_TARGETS = CTR-*.Process.MPCore.* #demoライブラリ位置指定 #SAMPLED_DEMOS_COMMON_INCLUDE_DIR = $(dir ../common/include) #SAMPLED_DEMOS_COMMON_INCLUDE_DIR = $(dir ../CTR_SDK/sampledemos/common/include) #INCLUDES += $(SAMPLED_DEMOS_COMMON_INCLUDE_DIR) SOURCES[] = ./source/main.cpp ./source/test_data.cpp ../common/sleep.cpp ../common/common.cpp ../common/shfnt.cpp TARGET_PROGRAM = CtrSaveDataMover_imp TITLE = CSM_imp #LIBS += libnn_am IMPORTEE_CIA = importee.cia SRC_IMPORTEE_PATH = ../body/images/$(BUILD_TARGET_DIR)/$(BUILD_TYPE_DIR)/CtrSaveDataMover.cia #とりあえず、マスタリング時は直おき、配置時に改名 #SRC_IMPORTEE_PATH = CtrSaveDataMover_master.cia # ビルドタイプ別に romfs を作る #ROMFS_ROOT = $`(TARGET.getObjectDirectory)/romfsroot ROMFS_ROOT = ./romfiles DEST_IMPORTEE_PATH = $(ROMFS_ROOT)/$(IMPORTEE_CIA) foreach(TARGET, $(BUILDER.getTargets $(SUPPORTED_TARGETS))) $(DEST_IMPORTEE_PATH): $(SRC_IMPORTEE_PATH) $(makeDirectory $(ROMFS_ROOT)) cp $< $@ ROMFS_DEPENDENCIES = $(DEST_IMPORTEE_PATH) # プログラムから参照するためのROMFSのパスとプログラムIDを定義する ROMFS_IMPORTEE_PATH = L\"rom:/$(IMPORTEE_CIA)\" CCFLAGS += -DROMFS_IMPORTEE_PATH=$(ROMFS_IMPORTEE_PATH) ROM_SPEC_FILE = Imp.rsf DESCRIPTOR = $(CTRSDK_ROOT)/resources/specfiles/repairtool.desc # バナー、アイコン CTR_BANNER_SPEC = banner.bsf include $(ROOT_OMAKE)/modulerules build: $(DEFAULT_TARGETS)