#! make -f
#----------------------------------------------------------------------------
# Project:  NitroSDK - MB - demos - mb_child
# File:     Makefile
#
# Copyright 2003,2004 Nintendo.  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.
#
# Revision 1.5  2004/09/24 01:50:37  miya
# ftHgthumbR[hł̃RpCOFF
#
# Revision 1.4  2004/09/22 11:02:07  sato_masaki
# add NITRO_CODEGEN_ALL = True
#
#
# Revision 1.3  2004/09/10 01:35:57  miya
# delete TARGET_SIGN_BIN
#
# Revision 1.2  2004/09/01 09:25:21  miya
# add TARGET_SIGN_BIN
#
# Revision 1.1  2004/08/31 11:00:12  sato_masaki
# initial check-in
#
#----------------------------------------------------------------------------

-include ../version

ifeq	($(PM_LANG),LANG_ENGLISH)
LANG_DIR	= eng
else
ifeq	($(PM_LANG),LANG_FRANCE)
LANG_DIR	= fra
else
ifeq	($(PM_LANG),LANG_GERMANY)
LANG_DIR	= ger
else
ifeq	($(PM_LANG),LANG_ITALY)
LANG_DIR	= ita
else
ifeq	($(PM_LANG),LANG_SPAIN)
LANG_DIR	= spa
else
ifeq	($(PM_LANG),LANG_KOREA)
LANG_DIR	= kor
endif
endif
endif
endif
endif
endif

SUBDIRS			=	mb_loader ARM7 ARM9
# NITRO_CODEGEN_ALL	=	True

#----------------------------------------------------------------------------

ROM_SPEC		=	main.rsf

TARGET_BIN		=	main.srl

MY_COMPONENT_DIR	=	./ARM7/bin
MY_COMPONENT_NAME	=	spmain
DATA_FOR_DP			=	..\src\resource\$(LANG_DIR)\downloader\eoo.dat

# makerom settings
MAKEROM_ARM9		=	ARM9/bin/$(NITRO_BUILDTYPE_ARM9)/main.nef
MAKEROM_ARM7		=	$(MY_COMPONENT_DIR)/$(NITRO_BUILDTYPE_ARM7)/$(MY_COMPONENT_NAME).nef



include	$(NITROSDK_ROOT)/build/buildtools/commondefs


#----------------------------------------------------------------------------
do-build:	$(TARGETS) $(DATA_FOR_DP)

$(DATA_FOR_DP): $(TARGETS)
	@echo "--copy to $(DATA_FOR_DP)--"
	@cp $(TARGETS) $(DATA_FOR_DP)

include	$(NITROSDK_ROOT)/build/buildtools/modulerules


#ifdef	NITRO_ELFTOBIN
#$(TARGETS): $(ELFTOBIN_ARM7)
#
#else	#NITRO_ELFTOBIN
#$(TARGETS): $(MAKEROM_ARM7)
#
#endif	#NITRO_ELFTOBIN


#===== End of Makefile =====

