############################################################################### # Makefile for videmo # # Copyright 2000 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.11 2008/06/26 02:57:00 urata # Removed MPAL defines # # Revision 1.10 2008/05/09 04:56:46 urata # Removed CGMS demo. # # Revision 1.9 2008/03/11 09:57:19 urata # Added cgmsdemo. # # Revision 1.8 2006/09/22 08:44:12 urata # Added moving.regions. # # Revision 1.7 2006/09/06 14:08:15 urata # Added dimming demo. # # Revision 1.6 2006/07/22 04:55:31 urata # Added new demo "cross-color". # # Revision 1.5 2006/06/16 07:47:54 urata # Added new demo "frb-vi-gamma". # # Revision 1.4 2006/06/05 00:40:53 urata # Added new test "smp-onetri.Progressive". # # Revision 1.3 2006/05/18 09:43:02 urata # Added the new demo for progressive. # # Revision 1.2 2006/01/06 07:13:12 hiratsu # changed LCF file path. # # Revision 1.1 2005/12/16 08:33:54 urata # Initial check-in. # # # 4 2001/11/13 15:39 Hashida # Fixed a bug that smp-onetri_PAL is not built by default. # # 3 2001/11/04 10:37a Hashida # Added smp-onetri_PAL.c # # 2 2000/03/01 5:38p Hashida # Moved viewer from tests. # # 1 2000/02/18 10:39a Hashida # initial check-in # # $NoKeywords: $ # ############################################################################### # 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 # additional libraries not defined as REVOLUTION_LIBS TPL_LIB = $(INSTALL_ROOT)/lib/tpl$(LIBSUFFIX) # 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 = videmo DEMO = TRUE # 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 = color.c moving.c moving.30Hz.c viewer.c bmp.c smp-onetri_PAL.c moving.progressive.c \ smp-onetri_Progressive.c frb-vi-gamma.c cross-color.c dimming.c \ moving.regions.c ifdef EPPC # 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 endif TVTYPES = _NTSC_INT _NTSC_DS _PAL_INT _PAL_DS # 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 = color moving moving.30Hz $(addprefix viewer,$(TVTYPES)) \ smp-onetri_PAL moving.progressive smp-onetri_Progressive \ frb-vi-gamma cross-color dimming moving.regions # 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)/color$(BINSUFFIX): color.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/moving$(BINSUFFIX): moving.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/moving.30Hz$(BINSUFFIX): moving.30Hz.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/moving.progressive$(BINSUFFIX): moving.progressive.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/smp-onetri_PAL$(BINSUFFIX): smp-onetri_PAL.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/smp-onetri_Progressive$(BINSUFFIX): smp-onetri_Progressive.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/frb-vi-gamma$(BINSUFFIX): frb-vi-gamma.o \ $(REVOLUTION_LIBS) $(TPL_LIB) $(FULLBIN_ROOT)/cross-color$(BINSUFFIX): cross-color.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/dimming$(BINSUFFIX): dimming.o \ $(REVOLUTION_LIBS) $(FULLBIN_ROOT)/moving.regions$(BINSUFFIX): moving.regions.o \ $(REVOLUTION_LIBS) ################################# ## viewer ################################# $(FULLBIN_ROOT)/viewer_NTSC_INT$(BINSUFFIX): viewer_NTSC_INT.o bmp.o\ $(REVOLUTION_LIBS) $(FULLBINOBJ_ROOT)/viewer_NTSC_INT.o: src/viewer.c $(CC) -DNTSC $(CCFLAGS) $(INCLUDES) $(COMPILE) $< \ -o $(subst $(FULLBINOBJ_ROOT)/,$(BINOBJ_ROOT)/,$@) $(FULLBIN_ROOT)/viewer_NTSC_DS$(BINSUFFIX): viewer_NTSC_DS.o bmp.o\ $(REVOLUTION_LIBS) $(FULLBINOBJ_ROOT)/viewer_NTSC_DS.o: src/viewer.c $(CC) -DNTSC -DNON_INTERLACE $(CCFLAGS) $(INCLUDES) $(COMPILE) $< \ -o $(subst $(FULLBINOBJ_ROOT)/,$(BINOBJ_ROOT)/,$@) $(FULLBIN_ROOT)/viewer_PAL_INT$(BINSUFFIX): viewer_PAL_INT.o bmp.o\ $(REVOLUTION_LIBS) $(FULLBINOBJ_ROOT)/viewer_PAL_INT.o: src/viewer.c $(CC) -DPAL $(CCFLAGS) $(INCLUDES) $(COMPILE) $< \ -o $(subst $(FULLBINOBJ_ROOT)/,$(BINOBJ_ROOT)/,$@) $(FULLBIN_ROOT)/viewer_PAL_DS$(BINSUFFIX): viewer_PAL_DS.o bmp.o\ $(REVOLUTION_LIBS) $(FULLBINOBJ_ROOT)/viewer_PAL_DS.o: src/viewer.c $(CC) -DPAL -DNON_INTERLACE $(CCFLAGS) $(INCLUDES) $(COMPILE) $< \ -o $(subst $(FULLBINOBJ_ROOT)/,$(BINOBJ_ROOT)/,$@)