#! make -f #---------------------------------------------------------------------------- # Project: CtrFirm - UnitTest Tool # File: modulerules.add-ins.utest # # Copyright 2008 Nintendo. All rights reserved. # # These coded insructions, 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. # # $Date:: $ # $Rev$ # $Author$ #---------------------------------------------------------------------------- .PHONY: utest # # UNIT TEST on ARM11 # ifeq ($(CODEGEN_PROC),ARM11) UTEST_MAKEOPTS = \ SRCS="$(SRCS) $(UTEST_MAIN_SRC)" \ LIBRARIES_UNLINK=$(TARGET_LIB) \ TARGET_BIN=$(UTEST_MAIN_BIN) \ TARGET_NEF= \ TARGET_LIB= \ TARGET_OBJ= \ TARGET_SIGN_BIN= \ UTEST_OBJS_TESTEE="$(OBJS)" \ UTEST_CHECKASSERT=True \ CTR_UTEST=True utest: @$(MAKE_SUBDIR) @$(ECHO_CURDIR) ifneq ($(strip $(TARGET_LIB)),) ifneq ($(strip $(NEWDIRS)),) @$(MKDIRP) $(NEWDIRS) $(BINDIR) endif @$(REMAKE) -s $(UTEST_MAIN_SRC) $(UTEST_MAKEOPTS) @if [ -e $(UTEST_MAIN_SRC) ]; \ then \ $(REMAKE) -s do-build $(UTEST_MAKEOPTS) && \ $(REMAKE) -s run TARGET_BIN=$(UTEST_MAIN_BIN); \ fi endif $(UTEST_MAIN_SRC): $(UTEST_OBJS_TESTEE) @$(MAKE_UTEST_MAIN) -c $(UTEST_MAIN_SRC) $(UTEST_OBJS_TESTEE) # # UNIT TEST on ARM9 # else # ($(CODEGEN_PROC),ARM9) utest: @ # Not support unit test on ARM9 endif #===== End of modulerules.add-ins.utest =====