############################################################################### # Makefile for THP demo # # Copyright (C)2002-2006 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. # # $Log: makefile,v $ # Revision 1.1 02/03/2006 10:00:44 aka # Imported from Dolphin tree. # # # 6 03/11/25 11:24 Dante # Japanese to English translation of comments and text strings # # 5 03/10/01 9:19a Akagi # Added checking whether MUSYX_ROOT is defined or not. # # 4 02/05/31 9:08a Suzuki # add EXTRASAMPLE flag # # 3 02/05/14 11:58a Suzuki # Added the description for THPPlayerStrmAX and THPPlayerStrmMX. # # 2 02/02/28 6:32p Akagi # enabled to use with MusyX/AX by Suzuki-san (IRD). # # 1 02/01/16 10:50a Akagi # Initial revision made by Suzuki-san (IRD). # # $NoKeywords: $ # ############################################################################### ################################## # QUICK START INSTRUCTIONS # Type "make" at /revolution/build/tests/gx to build DEBUG versions of all tests. # Type "make NDEBUG=TRUE" to build OPTIMIZED versions of all tests # Type "make lit-basicD.bin" to build DEBUG version of just lit-basic # Type "make NDEBUG=TRUE lit-basic.bin" to build OPTIMIZED version of # just lit-basic # # To add another test # 1. Add the .c files to CSRCS to make sure they are built # 2. Add the binary name (no suffix) to BINNAMES # 3. Add a dependency rule for this executable at the bottom of this file ################################## # 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 (/revolution/$(ARCH_TARGET)). # tests are NOT installed into the binary release directory. all: setup build install # 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 # DEMO = TRUE indicates that this module resides under the "demos" subtree. # The list of selectable paths can be found in modulerules. MODULENAME = thpdemo DEMO = TRUE # Add thp(D).a into REVOLUTION_LIBS REVOLUTION_LIBS += $(INSTALL_ROOT)/lib/thp$(LIBSUFFIX) # Common sources built for both EPPC and MAC # CSRCS lists all C files that should be built # The makefile determines which objects are linked into which binaries # based on the dependencies you fill in at the bottom of this file CSRCS = THPSimple/main.c \ THPSimple/THPSimple.c \ THPSimple/THPDraw.c \ THPSimple/axseq.c \ THPPlayer/main.c \ THPPlayer/THPPlayer.c \ THPPlayer/THPVideoDecode.c \ THPPlayer/THPAudioDecode.c \ THPPlayer/THPRead.c \ THPPlayer/THPDraw.c \ THPPlayerStrmAX/main.c \ THPPlayerStrmAX/THPPlayer.c \ THPPlayerStrmAX/THPVideoDecode.c \ THPPlayerStrmAX/THPAudioDecode.c \ THPPlayerStrmAX/THPRead.c \ THPPlayerStrmAX/THPDraw.c # Common binaries linked for both EPPC and MAC # BINNAMES lists all binaries that will be linked. Note that no suffix is # required, as that will depend on whether this is a DEBUG build or not. # The final name of the binaries will be $(BINNAME)$(BINSUFFIX) BINNAMES = THPSimple \ THPPlayer \ THPPlayerStrmAX # Defining a linker command file will have the build system generate it # automatically and include it on the linker invocation line LCF_FILE = $(INC_ROOT)/revolution/eppc.$(ARCH_TARGET).lcf # modulerules contains the rules that will use the above variables # and dependencies below to construct the binaries specified. include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules # Dependencies for the binaries listed in BINNAMES should come here # They are your typical makefile rule, with extra variables to ensure # that the names and paths match up. # $(FULLBIN_ROOT) is the location of the local bin directory # $(BINSUFFIX) depends on whether this is a debug build or not # $(REVOLUTION_LIBS) includes all the Revolution libraries. $(FULLBIN_ROOT)/THPSimple$(BINSUFFIX): THPSimple/main.o \ THPSimple/THPSimple.o \ THPSimple/THPDraw.o \ THPSimple/axseq.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/THPPlayer$(BINSUFFIX): THPPlayer/main.o \ THPPlayer/THPPlayer.o \ THPPlayer/THPVideoDecode.o \ THPPlayer/THPAudioDecode.o \ THPPlayer/THPRead.o \ THPPlayer/THPDraw.o \ THPSimple/axseq.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/THPPlayerStrmAX$(BINSUFFIX): THPPlayerStrmAX/main.o \ THPPlayerStrmAX/THPPlayer.o \ THPPlayerStrmAX/THPVideoDecode.o \ THPPlayerStrmAX/THPAudioDecode.o \ THPPlayerStrmAX/THPRead.o \ THPPlayerStrmAX/THPDraw.o \ $(REVOLUTION_LIBS) #======== End of makefile ========#