############################################################################### # Makefile for networkmanual_jpeg # # Copyright (C) 2008 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 # 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 = hbmdemo/networkmanual_jpeg DEMO = TRUE CCFLAGS += -DUSE_FOR_NETWORKMANUAL # 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 CPPSRCS = networkmanual_jpeg.cpp # 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 = networkmanual_jpeg # 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. REVOLUTION_LIBS += $(INSTALL_ROOT)/lib/homebuttonLib.nwm$(LIBSUFFIX) REVOLUTION_LIBS += $(INSTALL_ROOT)/lib/tpl$(LIBSUFFIX) REVOLUTION_LIBS += $(INSTALL_ROOT)/lib/tmccjpeg.a REVOLUTION_LIBS += $(INSTALL_ROOT)/lib/cnt$(LIBSUFFIX) $(TARGET_BINS): $(CPPSRCS:.cpp=.o) $(TARGET_BINS): $(REVOLUTION_LIBS) ifndef NANDAPP dobuild: $(FULLBIN_ROOT)/$(BINNAMES)$(BINSUFFIX) @echo "================================== Warning!! ==================================" @echo "This App was compiled for DISC app. When you operate the sample of the DISC version," @echo "please thaw and perform to DvdRoot which specifies attached content_data.zip." @echo "===============================================================================" else dobuild: $(FULLBIN_ROOT)/$(BINNAMES)$(BINSUFFIX) endif demo: $(FULLBIN_ROOT)/$(BINNAMES)$(BINSUFFIX) makedol -f $(FULLBIN_ROOT)/$(BINNAMES)$(BINSUFFIX) -d $(FULLBIN_ROOT)/networkmanual_jpeg$(DOLSUFFIX) # makeWad -n $(BINNAMES)$(ASUFFIX) -l $(FULLBIN_ROOT)/$(BINNAMES)$(DOLSUFFIX),Homebutton.arc,HomebuttonSe.arc,HomeButton_nwm.arc,sample.arc -T 0,1,1,1,0 makeWad -n $(BINNAMES)$(ASUFFIX) -l $(FULLBIN_ROOT)/$(BINNAMES)$(DOLSUFFIX),Homebutton.arc,HomebuttonSe.arc,HomeButton_nwm.arc,sample.arc -T 0,0,0,0,0 mv $(BINNAMES)$(WADSUFFIX) $(REVOLUTION_SDK_ROOT)/dvddata/viewer rm $(FULLBIN_ROOT)/$(BINNAMES)$(BINSUFFIX) @echo "================================== Warning!! ==================================" @echo "The created WAD file was moved to RVL_SDK/dvddata/viewer." @echo "When you want to install (or run) it, please use the Nmenu.elf." @echo "" @echo "If WAD file does not work correctly, you may be not calling" @echo "the command line [ make; make clean ] beforehand." @echo "===============================================================================" #======== End of makefile ========#