mirror of
https://github.com/rvtr/ctr_Repair.git
synced 2025-10-31 13:51:08 -04:00
70 lines
2.7 KiB
Plaintext
70 lines
2.7 KiB
Plaintext
#!/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/main_nochk.cpp
|
|
../../common/test_data.cpp
|
|
../../common/shfnt.cpp
|
|
../../common/sleep.cpp
|
|
../../common/common.cpp
|
|
|
|
OBJECTS[] =
|
|
$`(ObjectFromBinary $(TARGET), ./Imp_list/key/Public_Key.der)
|
|
|
|
TARGET_PROGRAM = CtrSaveDataMover_imp
|
|
|
|
TITLE = CSM_imp
|
|
|
|
LIBS += libnn_ps
|
|
|
|
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/private/repairtool.desc
|
|
|
|
# バナー、アイコン
|
|
#CTR_BANNER_SPEC = banner.bsf
|
|
CTR_BANNER_SPEC = banner_null_icon.bsf
|
|
|
|
include $(ROOT_OMAKE)/modulerules
|
|
|
|
build: $(DEFAULT_TARGETS)
|
|
|