############################################################################### # Makefile for any library # # Copyright (C) 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. # ############################################################################### # NOTE: Only MODULE_DEPTH needs to be modified! # This makefile must set the relative depth to the src directory # using only "..", without a trailing slash MODULE_DEPTH := ../.. BUILD_MAKE_PATH := $(MODULE_DEPTH)/build/make # commondefs must be included near the top so that all common variables # will be defined before their use. Define commondefs for compiler. include $(BUILD_MAKE_PATH)/commondefs.mk include $(BUILD_MAKE_PATH)/commondefs.cos.mk # LIB := TRUE tells modulerules to treat this as a library, not as an executable LIBNAME := libsys DEFINES += -DEMBEDDED --diag_suppress 42,1235 LIB := TRUE # CLIBSRCS, CPPLIBSRCS, and ASMLIBSRCS automatically lists all # C, C++, and assembly files that should be compiled and linked for the library # Use a different suffix if you do not want the file to be compiled and linked. # ind_call.c ind_dots.c ind_gcnt.c ind_mcnt.c ind_alrm.c ind_lockcpp.c ind_sock.c ind_targ1.c prof_960.c prof_mip.c CLIBSRCS := ind_alloc.c \ ind_bcnt.c \ ind_gmtm.c \ ind_gpid.c \ ind_gprf.c \ ind_heap.c \ ind_io.c \ ind_lock.c \ ind_manprf.c \ ind_mprf.c \ ind_renm.c \ ind_sgnl.c \ ind_stackcheck.c \ ind_stat.c \ ind_syst.c \ ind_thrd.c \ ind_time.c \ ind_tmzn.c \ ind_trnc.c \ ghsheap.c CPPLIBSRCS := ASMLIBSRCS := ind_call.s \ ind_dots.s \ ind_gcnt.s \ ind_mcnt.s # The name of the library is automatically set to the directory name of this module. # The path to the library output is $(LIB_DIR)/$(LIBNAME)$(LIBSUFFIX) ############################################################################### # modulerules contains the rules that will use the above variables # and dependencies below to construct the binaries specified. # Do not specify any targets before including modulerules. include $(BUILD_MAKE_PATH)/modulerules.mk #======== End of makefile ========#