1#! make -f 2#---------------------------------------------------------------------------- 3# Project: TwlSDK - demos - os - argument-2 4# File: Makefile 5# 6# Copyright 2007-2008 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:: 2009-01-27#$ 15# $Rev: 9920 $ 16# $Author: okubata_ryoma $ 17#---------------------------------------------------------------------------- 18TARGET_PLATFORM = TWL NITRO 19 20SRCS = main.c 21TARGET_BIN = main.srl 22 23#---------------------------------------------------------------------------- 24ifdef TARGET_FINALROM 25SKIP_DEMO = TRUE 26else 27ifdef TWL_FINALROM 28SKIP_DEMO = TRUE 29else 30ifdef NITRO_FINALROM 31SKIP_DEMO = TRUE 32endif 33endif 34endif 35 36include $(TWLSDK_ROOT)/build/buildtools/commondefs 37 38#---------------------------------------------------------------------------- 39 40BURYARG_TWL = $(TOOLSDIR)/bin/buryarg.TWL.exe 41BURYARG_NITRO = $(TOOLSDIR)/bin/buryarg.exe 42 43ARGUMENT_STR = "-x (C) NINTENDO" 2008 44 45#---------------------------------------------------------------------------- 46 47SUBDIRS = 48 49#---------------------------------------------------------------------------- 50 51do-build: $(TARGETS) 52ifndef SKIP_DEMO 53 @echo "-- replace argument data" $(TWL_STDOUT) 54ifneq ($(filter TWL,$(TARGET_PLATFORM_LIST)),) 55 $(BURYARG_TWL) -q $(TARGETS) $(ARGUMENT_STR) 56 $(BURYARG_TWL) -q $(TARGETS:.srl=.tlf) $(ARGUMENT_STR) 57else 58 $(BURYARG_NITRO) -q $(TARGETS) $(ARGUMENT_STR) 59 $(BURYARG_NITRO) -q $(TARGETS:.srl=.nlf) $(ARGUMENT_STR) 60endif 61 @echo -- done. try to execute $(TARGET_BIN). $(TWL_STDOUT) 62endif 63 64#---------------------------------------------------------------------------- 65include $(TWLSDK_ROOT)/build/buildtools/modulerules 66 67#===== End of Makefile ===== 68