1#!/usr/bin/env omake
2#----------------------------------------------------------------------------
3# Project: Horizon
4# File:    debuggerdefs.om
5#
6# Copyright 2007-2009 Nintendo.  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# $Date:: 2011-02-12#$
15# $Rev: 34373 $
16# $Author: hatamoto_minoru $
17#----------------------------------------------------------------------------
18
19#----------------------------------------------------------------------------
20# �O���[�o���ϐ��̒�`
21#----------------------------------------------------------------------------
22
23# ���s�p���[���̑Ή�
24global.PROGRAM_RUNNER_MAP = $(Map)
25
26
27#----------------------------------------------------------------------------
28# �ݒ胍�[�h
29#----------------------------------------------------------------------------
30
31include $(ROOT_OMAKE)/debuggers/debuggerdefs.$(TARGET_PLATFORM.GetDebuggerType).om
32
33foreach(om, $(ls i,$(ROOT_OMAKE)/debuggers/debuggerdefs.$(TARGET_PLATFORM.GetDebuggerType).*.om))
34    include $(removesuffix $(om))
35    export
36
37
38#----------------------------------------------------------------------------
39# ���s�p���[���lj�
40#
41# ���̊֐������s����鎞�_�ŁA
42# DEFAULT_TARGETS �̒�`���I����Ă��邱�Ƃ�O��Ƃ��܂��B
43#
44#----------------------------------------------------------------------------
45public.HORIZON_POST_ADDITIONAL_RULES +=
46    fun()
47        if $(filter run%, $(TARGETS))
48            foreach (runtype, $(filter $(PROGRAM_RUNNER_MAP.keys), $(TARGETS)))
49                private.runner = $(global.PROGRAM_RUNNER_MAP.find $(runtype))
50                if $(runner)
51                    value $(apply $(runner), $(runtype), $(DEFAULT_TARGETS))
52
53