1#---------------------------------------------------------------------------- 2# Project: Horizon 3# File: modulerules.om 4# 5# Copyright (C)2009-2011 Nintendo Co., Ltd. All rights reserved. 6# 7# These coded instructions, statements, and computer programs contain 8# proprietary information of Nintendo of America Inc. and/or Nintendo 9# Company Ltd., and are protected by Federal copyright law. They may 10# not be disclosed to third parties or copied or duplicated in any form, 11# in whole or in part, without the prior written consent of Nintendo. 12# 13# $Rev: 41476 $ 14#---------------------------------------------------------------------------- 15 16export DEFAULT_TARGETS 17 18# The full path of the object file generated from .c/.cpp/.asm is stored. 19# The value can also be set with OMakefile. 20# When generating additional object files together, When generating additional object files, use late evaluation for TARGET. 21if $(not $(defined OBJECTS)) 22 OBJECTS = 23 export 24 25 26 27foreach(rule_func, $(getvar HORIZON_ADDITIONAL_RULES)) 28 rule_func() 29 export 30 31 32 33 34# The library name (omitting the extension) is stored 35if $(defined TARGET_LIBRARY) 36 foreach(TARGET, $(BUILDER.getLibraryTargets $(SUPPORTED_TARGETS))) 37 target_file = $(StaticLibrary $(TARGET), $(TARGET_LIBRARY), $(SOURCES) $(OBJECTS), $(LIBRARY_LIBFILES)) 38 if $(TARGET.isFilterMatched) 39 DEFAULT_TARGETS += $(target_file) 40 41 42 43# If TRUE, the generated object is maintained as a library 44if $(and $(defined INSTALL_OBJECTS), $(INSTALL_OBJECTS)) 45 foreach(TARGET, $(BUILDER.getLibraryTargets $(SUPPORTED_TARGETS))) 46 target_file = $(StaticObject $(TARGET), $(SOURCES)) 47 if $(TARGET.isFilterMatched) 48 DEFAULT_TARGETS += $(target_file) 49 50 51 52# The program name (omitting the extension) is stored 53# ELF files or ROM files are used as the file name for the program name specified here. 54if $(defined TARGET_PROGRAM) 55 foreach(TARGET, $(BUILDER.getTargets $(SUPPORTED_TARGETS))) 56 DEFAULT_TARGETS += $(Program $(TARGET), $(TARGET_PROGRAM), $(SOURCES) $(OBJECTS)) 57 58foreach(rule_func, $(getvar HORIZON_POST_ADDITIONAL_RULES)) 59 rule_func() 60 export 61 62DefineDefaultRules() 63 64 65