1############################################################################### 2# Makefile for any library 3# 4# Copyright (C) 2010 Nintendo. All rights reserved. 5# 6# These coded instructions, statements, and computer programs contain 7# proprietary information of Nintendo of America Inc. and/or Nintendo 8# Company Ltd., and are protected by Federal copyright law. They may 9# not be disclosed to third parties or copied or duplicated in any form, 10# in whole or in part, without the prior written consent of Nintendo. 11# 12############################################################################### 13 14# NOTE: Only MODULE_DEPTH needs to be modified! 15 16# This makefile must set the relative depth to the src directory 17# using only "..", without a trailing slash 18 19MODULE_DEPTH := ../.. 20BUILD_MAKE_PATH := $(MODULE_DEPTH)/build/make 21 22# commondefs must be included near the top so that all common variables 23# will be defined before their use. Define commondefs for compiler. 24 25include $(BUILD_MAKE_PATH)/commondefs.mk 26include $(BUILD_MAKE_PATH)/commondefs.cos.mk 27 28# LIB := TRUE tells modulerules to treat this as a library, not as an executable 29 30LIBNAME := libsys 31 32DEFINES += -DEMBEDDED --diag_suppress 42,1235 33 34LIB := TRUE 35 36# CLIBSRCS, CPPLIBSRCS, and ASMLIBSRCS automatically lists all 37# C, C++, and assembly files that should be compiled and linked for the library 38# Use a different suffix if you do not want the file to be compiled and linked. 39 40# 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 41CLIBSRCS := ind_alloc.c \ 42 ind_bcnt.c \ 43 ind_gmtm.c \ 44 ind_gpid.c \ 45 ind_gprf.c \ 46 ind_heap.c \ 47 ind_io.c \ 48 ind_lock.c \ 49 ind_manprf.c \ 50 ind_mprf.c \ 51 ind_renm.c \ 52 ind_sgnl.c \ 53 ind_stackcheck.c \ 54 ind_stat.c \ 55 ind_syst.c \ 56 ind_thrd.c \ 57 ind_time.c \ 58 ind_tmzn.c \ 59 ind_trnc.c \ 60 ghsheap.c 61 62CPPLIBSRCS := 63 64ASMLIBSRCS := ind_call.s \ 65 ind_dots.s \ 66 ind_gcnt.s \ 67 ind_mcnt.s 68 69# The name of the library is automatically set to the directory name of this module. 70# The path to the library output is $(LIB_DIR)/$(LIBNAME)$(LIBSUFFIX) 71 72############################################################################### 73# modulerules contains the rules that will use the above variables 74# and dependencies below to construct the binaries specified. 75# Do not specify any targets before including modulerules. 76 77include $(BUILD_MAKE_PATH)/modulerules.mk 78 79#======== End of makefile ========# 80