mirror of
https://github.com/rvtr/ctr_firmware.git
synced 2025-10-31 07:51:08 -04:00
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_firmware@53 b871894f-2f95-9b40-918c-086798483c85
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
#! 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 =====
|