1###############################################################################
2# Makefile for any library
3#
4# Copyright (C) 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 := cos_def_malloc
31
32DEFINES += -DEMBEDDED --diag_suppress 42,1235
33
34LIB := TRUE
35
36INSTALL_OBJ_TO_LIB_DIR := TRUE
37
38# CLIBSRCS, CPPLIBSRCS, and ASMLIBSRCS automatically lists all
39# C, C++, and assembly files that should be compiled and linked for the library
40# Use a different suffix if you do not want the file to be compiled and linked.
41
42CLIBSRCS   := cos_def_malloc.c \
43
44CPPLIBSRCS :=
45ASMLIBSRCS :=
46
47# The name of the library is automatically set to the directory name of this module.
48# The path to the library output is $(LIB_DIR)/$(LIBNAME)$(LIBSUFFIX)
49
50###############################################################################
51# modulerules contains the rules that will use the above variables
52# and dependencies below to construct the binaries specified.
53# Do not specify any targets before including modulerules.
54
55include $(BUILD_MAKE_PATH)/modulerules.mk
56
57#======== End of makefile ========#
58