1###############################################################################
2# Makefile for CX Library
3#
4# Copyright 2006 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# All modules have "setup" and "build" as targets.  System libraries
15# and demo programs also have an "install" target that copies the compiled
16# binaries to the binary tree (/$(ARCH_TARGET)).
17all:
18	$(MAKE) setup
19	$(MAKE) build
20	$(MAKE) install
21
22# Enable the following when multi-byte characters (Shift-JIS) is used in code.
23# Option command for converting Shift-JIS into appropriate hexadecimal representation for the pre-processor.
24#MULTIBYTE = TRUE
25
26# commondefs must be included near the top so that all common variables
27# will be defined before their use.
28
29include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs
30
31# Module name should be set to the name of this subdirectory
32
33MODULENAME	= cx
34
35# This indicates to commondefs/modulerules as to where this directory is
36# The selectable paths are restricted to limit the number of subtrees
37# that are added to the SDK tree.
38
39LIB		= TRUE
40
41# Library building
42# LIBNAME specifies the name of the library.  No suffix is required, as
43# that will depend on whether this is a DEBUG build or not.
44# The final name of the library will be $(LIBNAME)$(LIBSUFFIX)
45
46LIBNAME		= cx
47
48# CLIBSRCS/CPPLIBSRCS specifies all C/C++ files that are built and linked into
49# the library.
50# ASMLIBSRCS are all assembly files that will be built and linked into the lib.
51
52CLIBSRCS	= CXCompression.c            \
53                  CXStreamingUncompression.c \
54                  CXUncompression.c          \
55                  CXSecureUncompression.c    \
56
57# Be sure to place binary objects provided by other companies into a folder other than obj.
58# (Ex: hogeobj/HW2/DEBUG/)
59#OBJECTS_ONLY_ROOT = hogeobj/$(ARCH_TARGET)/$(BUILD_TARGET)
60#OBJECTS_ONLY      = hoge.o
61#LIBOBJECTS  = $(addprefix $(OBJECTS_ONLY_ROOT)/, $(OBJECTS_ONLY))
62
63# Modulerules contains the rules that will use the above variables
64# and dependencies below to construct the library and binaries specified.
65include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules
66