###############################################################################
# Makefile for PlayAsRGBTexture sample code
###############################################################################

include ../mocommon.make

# 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: avlib controllib setup build install

.PHONY: FORCE

avlib: FORCE
	make -C ../avLib/ setup build install
	
controllib: FORCE
	make -C ../controlLib/ 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	= PlayAsRgbTexture
LINCLUDES   =$(MOINCLUDES) -I../controlLib/include
#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		= main.c 

# 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 	= PlayAsRgbTexture 

# 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
# $(DOLPHINLIBS) includes all the Dolphin libraries.

$(FULLBIN_ROOT)/PlayAsRgbTexture$(BINSUFFIX): main.o  \
                    $(REVOLUTION_LIBS)   $(MOBICLIP_MOVIE_LIBS)



#======== End of makefile ========#
