############################################################################### # Makefile for KPAD Library # # Copyright 2005 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. # ############################################################################### # All modules have "setup" and "build" as targets. System libraries # and demo programs also have an "install" target that copies the compiled # binaries to the binary tree (/$(ARCH_TARGET)). all: setup build install # Enable the following when multi-byte characters (Shift-JIS) is used in code. # Option command for converting Shift-JIS into appropriate hexadecimal representation for the pre-processor #MULTIBYTE = TRUE # commondefs must be included near the top so that all common variables # will be defined before their use. include $(REVOLUTION_SDK_ROOT)/build/buildtools/commondefs # Module name should be set to the name of this subdirectory MODULENAME = kpadOld # This indicates to commondefs/modulerules as to where this directory is # The selectable paths are restricted to limit the number of subtrees # that are added to the SDK tree. LIB = TRUE # Library building # LIBNAME specifies the name of the library. No suffix is required, as # that will depend on whether this is a DEBUG build or not. # The final name of the library will be $(LIBNAME)$(LIBSUFFIX) LIBNAME = kpadOld # CLIBSRCS/CPPLIBSRCS specifies all C/C++ files that are built and linked into # the library. # ASMLIBSRCS are all assembly files that will be built and linked into the lib. CLIBSRCS = KPAD.c # Be sure to place binary objects provided by other companies into a folder other than obj. # (Ex: hogeobj/HW2/DEBUG/) # OBJECTS_ONLY_ROOT = hogeobj/$(ARCH_TARGET)/$(BUILD_TARGET) # OBJECTS_ONLY = hoge.o # LIBOBJECTS = $(addprefix $(OBJECTS_ONLY_ROOT)/, $(OBJECTS_ONLY)) # modulerules contains the rules that will use the above variables # and dependencies below to construct the library and binaries specified. include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules