#!/usr/bin/env omake
#----------------------------------------------------------------------------
# Project:  Horizon
# File:     OMakeroot
#
# 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:$
#----------------------------------------------------------------------------

# fBNgCAEgɂĂ̐
#
# a) \[XR[h[gfBNgɔzuꍇ
#    :
#     /OMakeroot
#     /foo/bar/OMakefile
#
#    :
#     OMakefile ƓfBNgȉ objects  images ܂B
#
#     /foo/bar/objects/...
#     /foo/bar/images/..
#
#
# b) \[XR[h sources ȉɔzuꍇ
#    :
#     /OMakeroot
#     /sources/foo/bar/OMakefile
#
#    :
#     [gfBNgȉ objects  images ܂B
#
#     /objects/foo/bar/...
#     /images/foo/bar/...
#
#

# [gϐ̎擾
public.HORIZON_ROOT =
if $(defined-env HORIZON_ROOT)
    HORIZON_ROOT = $(absname $(getenv HORIZON_ROOT))
    export

if $(defined-env CTRSDK_ROOT)
    CTRSDK_ROOT = $(absname $(getenv CTRSDK_ROOT))
    if $(and $(defined-env HORIZON_ROOT), $(not $(equal $(HORIZON_ROOT), $(CTRSDK_ROOT))))
        eprintln(HORIZON_ROOT  CTRSDK_ROOT v܂BpXݒ肷邩Aǂ炩`ĉB)
        exit(1)
    HORIZON_ROOT = $(CTRSDK_ROOT)
    export

if $(not $(HORIZON_ROOT))
    eprintln($"$$CTRSDK_ROOT `Ă܂")
    exit(1)

include $(HORIZON_ROOT)/build/omake/commondefs

DefineCommandVars()

.PHONY: all build clean clobber
.PHONY: run run-scripts

#
# OMakefile ̓ǂݍ
#
# .SUBDIRS: . ../../SampleDemos/common
.SUBDIRS: . ../../../../../3.2.5_SampleDemos/common
