# Makefile for rbo/runCtrl/cpp/sample
# Satofumi KAMIMURA
# $Id$

# Compile options
CC = ${CXX}
CXXFLAGS = -g -O0 -Wall -Werror ${INCLUDES} `sdl-config --cflags`
INCLUDES = -I.. -I../../crdCtrl/cpp -I../../utils/cpp -I../../tRunCtrl -I../utils/c -I../../ticksCtrl/cpp
LDFLAGS =
LDLIBS = `sdl-config --libs` -lSDL_net

# Target
RUN_CPP_LIB = ../runCtrl.a
UTILS_CPP_LIB = ../../utils/cpp/utils.a
CRD_CPP_LIB = ../../crdCtrl/cpp/crdCtrl.a
TICKS_CPP_LIB = ../../ticksCtrl/cpp/ticksCtrl.a
TARGET = \
	followLine \
	viewRunTicks \
	stop \
	noResetPos \

all : ${TARGET}

clean :
	${RM} *.o ${TARGET}

depend :
	makedepend -Y -- ${INCLUDES} -- ${wildcard *.c *.cpp *.h}

.PHONY : all clean depend
######################################################################
${RUN_CPP_LIB} ${UTILS_CPP_LIB} ${CRD_CPP_LIB} ${TICKS_CPP_LIB} :
	cd ${@D}/ && ${MAKE} ${@F}

${TARGET} : ${RUN_CPP_LIB} ${UTILS_CPP_LIB} ${CRD_CPP_LIB} ${TICKS_CPP_LIB}
# DO NOT DELETE

followLine.o: ../runCtrl.h ../runInterface.h
followLine.o: ../../crdCtrl/cpp/objCoordinateCtrl.h
followLine.o: ../../crdCtrl/cpp/coordinateCtrl.h ../../utils/cpp/typeUtils.h
followLine.o: ../../tRunCtrl/math_util.h ../../tRunCtrl/detect_os.h
followLine.o: ../../utils/cpp/coordinateTypes.h
followLine.o: ../../ticksCtrl/cpp/ticksCtrlInterface.h
followLine.o: ../../utils/cpp/connectionDevice.h
followLine.o: ../../utils/cpp/ringBufferTemplate.h
followLine.o: ../../tRunCtrl/structTables.h ../../tRunCtrl/directDeviceCtrl.h
followLine.o: ../../tRunCtrl/motorCtrl.h ../../tRunCtrl/robotParams.h
followLine.o: ../../tRunCtrl/directWheelCtrl.h ../../tRunCtrl/wheelCtrl.h
followLine.o: ../../tRunCtrl/encCtrl.h ../../tRunCtrl/modeCtrl.h
followLine.o: ../../tRunCtrl/velocityCtrl.h ../../tRunCtrl/velocityInfo.h
followLine.o: ../../tRunCtrl/bodyPosition.h
followLine.o: ../../tRunCtrl/coordinateCtrl_target.h
followLine.o: ../../tRunCtrl/bodyCtrl.h ../../tRunCtrl/nodeAccess.h
followLine.o: ../../utils/cpp/timeUtils.h ../commandCtrl.h
noResetPos.o: ../runCtrl.h ../runInterface.h
noResetPos.o: ../../crdCtrl/cpp/objCoordinateCtrl.h
noResetPos.o: ../../crdCtrl/cpp/coordinateCtrl.h ../../utils/cpp/typeUtils.h
noResetPos.o: ../../tRunCtrl/math_util.h ../../tRunCtrl/detect_os.h
noResetPos.o: ../../utils/cpp/coordinateTypes.h
noResetPos.o: ../../ticksCtrl/cpp/ticksCtrlInterface.h
noResetPos.o: ../../utils/cpp/connectionDevice.h
noResetPos.o: ../../utils/cpp/ringBufferTemplate.h
noResetPos.o: ../../tRunCtrl/structTables.h ../../tRunCtrl/directDeviceCtrl.h
noResetPos.o: ../../tRunCtrl/motorCtrl.h ../../tRunCtrl/robotParams.h
noResetPos.o: ../../tRunCtrl/directWheelCtrl.h ../../tRunCtrl/wheelCtrl.h
noResetPos.o: ../../tRunCtrl/encCtrl.h ../../tRunCtrl/modeCtrl.h
noResetPos.o: ../../tRunCtrl/velocityCtrl.h ../../tRunCtrl/velocityInfo.h
noResetPos.o: ../../tRunCtrl/bodyPosition.h
noResetPos.o: ../../tRunCtrl/coordinateCtrl_target.h
noResetPos.o: ../../tRunCtrl/bodyCtrl.h ../../tRunCtrl/nodeAccess.h
noResetPos.o: ../../utils/cpp/timeUtils.h ../commandCtrl.h
stop.o: ../runCtrl.h ../runInterface.h ../../crdCtrl/cpp/objCoordinateCtrl.h
stop.o: ../../crdCtrl/cpp/coordinateCtrl.h ../../utils/cpp/typeUtils.h
stop.o: ../../tRunCtrl/math_util.h ../../tRunCtrl/detect_os.h
stop.o: ../../utils/cpp/coordinateTypes.h
stop.o: ../../ticksCtrl/cpp/ticksCtrlInterface.h
stop.o: ../../utils/cpp/connectionDevice.h
stop.o: ../../utils/cpp/ringBufferTemplate.h ../../tRunCtrl/structTables.h
stop.o: ../../tRunCtrl/directDeviceCtrl.h ../../tRunCtrl/motorCtrl.h
stop.o: ../../tRunCtrl/robotParams.h ../../tRunCtrl/directWheelCtrl.h
stop.o: ../../tRunCtrl/wheelCtrl.h ../../tRunCtrl/encCtrl.h
stop.o: ../../tRunCtrl/modeCtrl.h ../../tRunCtrl/velocityCtrl.h
stop.o: ../../tRunCtrl/velocityInfo.h ../../tRunCtrl/bodyPosition.h
stop.o: ../../tRunCtrl/coordinateCtrl_target.h ../../tRunCtrl/bodyCtrl.h
stop.o: ../../tRunCtrl/nodeAccess.h ../../utils/cpp/timeUtils.h
stop.o: ../commandCtrl.h
viewRunTicks.o: ../runCtrl.h ../runInterface.h
viewRunTicks.o: ../../crdCtrl/cpp/objCoordinateCtrl.h
viewRunTicks.o: ../../crdCtrl/cpp/coordinateCtrl.h
viewRunTicks.o: ../../utils/cpp/typeUtils.h ../../tRunCtrl/math_util.h
viewRunTicks.o: ../../tRunCtrl/detect_os.h ../../utils/cpp/coordinateTypes.h
viewRunTicks.o: ../../ticksCtrl/cpp/ticksCtrlInterface.h
viewRunTicks.o: ../../utils/cpp/connectionDevice.h
viewRunTicks.o: ../../utils/cpp/ringBufferTemplate.h
viewRunTicks.o: ../../tRunCtrl/structTables.h
viewRunTicks.o: ../../tRunCtrl/directDeviceCtrl.h ../../tRunCtrl/motorCtrl.h
viewRunTicks.o: ../../tRunCtrl/robotParams.h ../../tRunCtrl/directWheelCtrl.h
viewRunTicks.o: ../../tRunCtrl/wheelCtrl.h ../../tRunCtrl/encCtrl.h
viewRunTicks.o: ../../tRunCtrl/modeCtrl.h ../../tRunCtrl/velocityCtrl.h
viewRunTicks.o: ../../tRunCtrl/velocityInfo.h ../../tRunCtrl/bodyPosition.h
viewRunTicks.o: ../../tRunCtrl/coordinateCtrl_target.h
viewRunTicks.o: ../../tRunCtrl/bodyCtrl.h ../../tRunCtrl/nodeAccess.h
viewRunTicks.o: ../../utils/cpp/timeUtils.h ../commandCtrl.h
