#---------------------------------------------------------------------------- # Project: Horizon # File: modulerules.om # # Copyright (C)2009-2011 Nintendo Co., Ltd. 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. # # $Rev: 41476 $ #---------------------------------------------------------------------------- export DEFAULT_TARGETS # The full path of the object file generated from .c/.cpp/.asm is stored. # The value can also be set with OMakefile. # When generating additional object files together, When generating additional object files, use late evaluation for TARGET. if $(not $(defined OBJECTS)) OBJECTS = export foreach(rule_func, $(getvar HORIZON_ADDITIONAL_RULES)) rule_func() export # The library name (omitting the extension) is stored if $(defined TARGET_LIBRARY) foreach(TARGET, $(BUILDER.getLibraryTargets $(SUPPORTED_TARGETS))) target_file = $(StaticLibrary $(TARGET), $(TARGET_LIBRARY), $(SOURCES) $(OBJECTS), $(LIBRARY_LIBFILES)) if $(TARGET.isFilterMatched) DEFAULT_TARGETS += $(target_file) # If TRUE, the generated object is maintained as a library if $(and $(defined INSTALL_OBJECTS), $(INSTALL_OBJECTS)) foreach(TARGET, $(BUILDER.getLibraryTargets $(SUPPORTED_TARGETS))) target_file = $(StaticObject $(TARGET), $(SOURCES)) if $(TARGET.isFilterMatched) DEFAULT_TARGETS += $(target_file) # The program name (omitting the extension) is stored # ELF files or ROM files are used as the filename for the program name specified here. if $(defined TARGET_PROGRAM) foreach(TARGET, $(BUILDER.getTargets $(SUPPORTED_TARGETS))) DEFAULT_TARGETS += $(Program $(TARGET), $(TARGET_PROGRAM), $(SOURCES) $(OBJECTS)) foreach(rule_func, $(getvar HORIZON_POST_ADDITIONAL_RULES)) rule_func() export DefineDefaultRules()