############################################################################### # vim:ts=4:sw=4:noexpandtab # Makefile for an RPL # # Copyright (C) 2011 Nintendo. 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. # ############################################################################### # This makefile must set the relative depth to the build directory # using only "..", without a trailing slash MODULE_DEPTH := ../.. BUILD_MAKE_PATH := $(MODULE_DEPTH)/build/make RPLNAME := malloc DEF_FILE := exports.def include $(BUILD_MAKE_PATH)/commondefs.mk include $(BUILD_MAKE_PATH)/commondefs.cos.mk include $(BUILD_MAKE_PATH)/os_version.mk RPL_ENTRY_SPEC := -e rpl_entry CSRCS := $(FIND_C_SRCS) CPPSRCS := $(FIND_CPP_SRCS) ASMSRCS := $(FIND_ASM_SRCS) COMMON_DYNAMIC_LIBNAMES := coredyn COS_DONT_USE_DEF_MALLOC := TRUE USE_PREPRPL_IMPORT_LIB := TRUE ############################################################################### # modulerules.mk contains the rules that will use the above variables # and dependencies below to construct the RPL specified. ############################################################################### include $(BUILD_MAKE_PATH)/modulerules.mk # Defining $(IMPORT_LIB) as a dependency causes multiple build paths to be # followed in a parallel make, but this breaks since both are built by the # same target rule. The dependency is redundant (for the same reason). $(BIN_DIR)/$(RPLNAME)$(RPLSUFFIX): $(OBJECTS) $(LIBS) #| $(IMPORT_LIB) ############################################################################### # Install to DEBUG or NDEBUG os installation install: $(BIN_DIR)/$(RPLNAME)$(RPLSUFFIX) clean: clean_import_lib clean_import_lib: rm -f $(IMPORT_LIB) clobber: clobber_import_lib clobber_import_lib: ifneq ($(TOP_CLOBBER_DONE),TRUE) rm -f $(dir $(LIB_DIR))DEBUG/$(RPLNAME)$(LIBSUFFIX) rm -f $(dir $(LIB_DIR))NDEBUG/$(RPLNAME)$(LIBSUFFIX) endif #======== End of makefile ========#