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