# Makefile for range_sensor/samples
# Satofumi KAMIMURA
# $Id: Makefile 1939 2010-11-22 02:05:24Z satofumi $

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -Werror $(INCLUDES) `sdl-config --cflags`
INCLUDES = -I.. -I../../monitor -I../../coordinate -I../../connection -I../../geometry -I../../geometry -I../../common -I../../system -I../../range_finder -I../../math
LDFLAGS =
LDLIBS = `sdl-config --libs` -lSDL_net

# Target
TARGET = \
	timestampSync \
	thread_scan \
	check_performance \
	rebootUrg \
	measureCaptureSecond \
	laser_check \
	gd_check \
	groupingSample \
	captureSample \
	swapSample \
	viewSerialIdSample \
	decodeSample \
	laserToggleSample \
	calculateChecksumSample \
	findUrgPorts \
	versionLines \
	gdRangeTest \
	multiMdScanSample \
	mdScan \
	convert2dSample \
	connectSample \
	gdScan \
	parameterLines \
	setTimestampSample \
	recordRecvData \
	evaluateTmTimestamp \
	evaluateMdTimestamp \
	evaluateGdTimestamp \
	intensityScan \
	detectDisconnectSample \
	reconnectSample \
	connectById \

all : $(TARGET)

clean :
	$(RM) *.o $(TARGET) mConnection_0.log mUrgCtrl_0.log lines.dat points.dat degree_errors.dat degree_lines.dat error_log.txt

depend :
	makedepend -Y -- $(INCLUDES) -- $(wildcard *.h *.cpp)

.PHONY : all clean depend
######################################################################
REQUIRE_LIBS = ../../monitor/monitor.a ../range_sensor.a ../../coordinate/coordinate.a ../../connection/connection.a ../../connection/sdl/connection_sdl.a ../../common/common.a ../../geometry/geometry.a ../../monitor/system/monitor_system.a ../../monitor/system/sdl/monitor_system_sdl.a

$(REQUIRE_LIBS) :
	cd $(@D)/ && $(MAKE) $(@F)

$(TARGET) : $(REQUIRE_LIBS)

# DO NOT DELETE

captureSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
captureSample.o: ../RangeCaptureMode.h ../../math/MathUtils.h
captureSample.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
captureSample.o: ../../geometry/Position.h ../../geometry/Angle.h
check_performance.o: ../UrgDevice.h ../RangeSensor.h ../RangeCaptureMode.h
check_performance.o: ../../math/MathUtils.h ../../system/DetectOS.h
check_performance.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
check_performance.o: ../../geometry/Angle.h
connectById.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
connectById.o: ../RangeCaptureMode.h ../../math/MathUtils.h
connectById.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
connectById.o: ../../geometry/Position.h ../../geometry/Angle.h ../UrgUtils.h
connectById.o: ../../connection/Connection.h
connectById.o: ../../connection/ConnectionUtils.h
connectSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
connectSample.o: ../RangeCaptureMode.h ../../math/MathUtils.h
connectSample.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
connectSample.o: ../../geometry/Position.h ../../geometry/Angle.h
convert2dSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
convert2dSample.o: ../RangeCaptureMode.h ../../math/MathUtils.h
convert2dSample.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
convert2dSample.o: ../../geometry/Position.h ../../geometry/Angle.h
decodeSample.o: ../ScipHandler.h ../CaptureSettings.h
detectDisconnectSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h
detectDisconnectSample.o: ../RangeSensor.h ../RangeCaptureMode.h
detectDisconnectSample.o: ../../math/MathUtils.h ../../system/DetectOS.h
detectDisconnectSample.o: ../../coordinate/Coordinate.h
detectDisconnectSample.o: ../../geometry/Position.h ../../geometry/Angle.h
detectDisconnectSample.o: ../../system/ticks.h ../../system/delay.h
evaluateGdTimestamp.o: ../../connection/SerialDevice.h
evaluateGdTimestamp.o: ../../connection/Connection.h
evaluateGdTimestamp.o: ../../connection/ConnectionUtils.h
evaluateGdTimestamp.o: ../../system/ticks.h ../../system/delay.h
evaluateMdTimestamp.o: ../../connection/SerialDevice.h
evaluateMdTimestamp.o: ../../connection/Connection.h
evaluateMdTimestamp.o: ../../connection/ConnectionUtils.h
evaluateMdTimestamp.o: ../../system/ticks.h ../../system/delay.h
evaluateTmTimestamp.o: ../../connection/SerialDevice.h
evaluateTmTimestamp.o: ../../connection/Connection.h
evaluateTmTimestamp.o: ../../connection/ConnectionUtils.h
evaluateTmTimestamp.o: ../../system/ticks.h ../../system/delay.h
findUrgPorts.o: ../../range_finder/findUrgPorts.h
gdRangeTest.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
gdRangeTest.o: ../RangeCaptureMode.h ../../math/MathUtils.h
gdRangeTest.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
gdRangeTest.o: ../../geometry/Position.h ../../geometry/Angle.h
gdRangeTest.o: ../../range_finder/findUrgPorts.h
gdScan.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
gdScan.o: ../RangeCaptureMode.h ../../math/MathUtils.h
gdScan.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
gdScan.o: ../../geometry/Position.h ../../geometry/Angle.h
gd_check.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
gd_check.o: ../RangeCaptureMode.h ../../math/MathUtils.h
gd_check.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
gd_check.o: ../../geometry/Position.h ../../geometry/Angle.h
gd_check.o: ../../system/ticks.h
groupingSample.o: ../UrgDevice.h ../RangeSensor.h ../RangeCaptureMode.h
groupingSample.o: ../../math/MathUtils.h ../../system/DetectOS.h
groupingSample.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
groupingSample.o: ../../geometry/Angle.h
intensityScan.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
intensityScan.o: ../RangeCaptureMode.h ../../math/MathUtils.h
intensityScan.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
intensityScan.o: ../../geometry/Position.h ../../geometry/Angle.h
intensityScan.o: ../../system/delay.h
laserToggleSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h
laserToggleSample.o: ../RangeSensor.h ../RangeCaptureMode.h
laserToggleSample.o: ../../math/MathUtils.h ../../system/DetectOS.h
laserToggleSample.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
laserToggleSample.o: ../../geometry/Angle.h
laser_check.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
laser_check.o: ../RangeCaptureMode.h ../../math/MathUtils.h
laser_check.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
laser_check.o: ../../geometry/Position.h ../../geometry/Angle.h
mdScan.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
mdScan.o: ../RangeCaptureMode.h ../../math/MathUtils.h
mdScan.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
mdScan.o: ../../geometry/Position.h ../../geometry/Angle.h
mdScan.o: ../../system/delay.h ../../system/ticks.h
measureCaptureSecond.o: ../UrgDevice.h ../RangeSensor.h ../RangeCaptureMode.h
measureCaptureSecond.o: ../../math/MathUtils.h ../../system/DetectOS.h
measureCaptureSecond.o: ../../coordinate/Coordinate.h
measureCaptureSecond.o: ../../geometry/Position.h ../../geometry/Angle.h
measureCaptureSecond.o: ../../system/ticks.h ../../system/delay.h
multiMdScanSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h
multiMdScanSample.o: ../RangeSensor.h ../RangeCaptureMode.h
multiMdScanSample.o: ../../math/MathUtils.h ../../system/DetectOS.h
multiMdScanSample.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
multiMdScanSample.o: ../../geometry/Angle.h ../../system/delay.h
parameterLines.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
parameterLines.o: ../RangeCaptureMode.h ../../math/MathUtils.h
parameterLines.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
parameterLines.o: ../../geometry/Position.h ../../geometry/Angle.h
parameterLines.o: ../RangeSensorParameter.h
rebootUrg.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
rebootUrg.o: ../RangeCaptureMode.h ../../math/MathUtils.h
rebootUrg.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
rebootUrg.o: ../../geometry/Position.h ../../geometry/Angle.h
rebootUrg.o: ../../system/delay.h
reconnectSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
reconnectSample.o: ../RangeCaptureMode.h ../../math/MathUtils.h
reconnectSample.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
reconnectSample.o: ../../geometry/Position.h ../../geometry/Angle.h
reconnectSample.o: ../../system/ticks.h ../../system/delay.h
recordRecvData.o: ../../connection/SerialDevice.h
recordRecvData.o: ../../connection/Connection.h
recordRecvData.o: ../../connection/ConnectionUtils.h
setTimestampSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h
setTimestampSample.o: ../RangeSensor.h ../RangeCaptureMode.h
setTimestampSample.o: ../../math/MathUtils.h ../../system/DetectOS.h
setTimestampSample.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
setTimestampSample.o: ../../geometry/Angle.h ../../system/ticks.h
setTimestampSample.o: ../../system/delay.h
swapSample.o: ../UrgDevice.h ../RangeSensor.h ../RangeCaptureMode.h
swapSample.o: ../../math/MathUtils.h ../../system/DetectOS.h
swapSample.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
swapSample.o: ../../geometry/Angle.h ../../connection/ConnectionUtils.h
thread_scan.o: ../UrgDevice.h ../RangeSensor.h ../RangeCaptureMode.h
thread_scan.o: ../../math/MathUtils.h ../../system/DetectOS.h
thread_scan.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
thread_scan.o: ../../geometry/Angle.h ../../system/Thread.h
thread_scan.o: ../../system/delay.h
timestampSync.o: ../UrgDevice.h ../RangeSensor.h ../RangeCaptureMode.h
timestampSync.o: ../../math/MathUtils.h ../../system/DetectOS.h
timestampSync.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
timestampSync.o: ../../geometry/Angle.h ../../system/ticks.h
timestampSync.o: ../../system/delay.h
versionLines.o: ../../monitor/mUrgDevice.h ../UrgDevice.h ../RangeSensor.h
versionLines.o: ../RangeCaptureMode.h ../../math/MathUtils.h
versionLines.o: ../../system/DetectOS.h ../../coordinate/Coordinate.h
versionLines.o: ../../geometry/Position.h ../../geometry/Angle.h
viewSerialIdSample.o: ../../monitor/mUrgDevice.h ../UrgDevice.h
viewSerialIdSample.o: ../RangeSensor.h ../RangeCaptureMode.h
viewSerialIdSample.o: ../../math/MathUtils.h ../../system/DetectOS.h
viewSerialIdSample.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
viewSerialIdSample.o: ../../geometry/Angle.h ../UrgUtils.h
