###############################################################################
# Makefile for controlLib Library
###############################################################################

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: 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

MODULENAME	= controlLib

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

# 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	= dvdControl.c cntControl.c ramControl.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.
LIB_ROOT=./..
include $(REVOLUTION_SDK_ROOT)/build/buildtools/modulerules
LINCLUDES=-I../../../../include -I../avLib/include -Iinclude
