# Makefile for ranges/samples
# Satofumi KAMIMURA
# $Id$

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -Werror ${INCLUDES} `sdl-config --cflags`
INCLUDES = -I.. -I../../connection -I../../system
LDFLAGS =
LDLIBS = `sdl-config --libs`

# Target
TARGET = \
	logFrontOutput \
	meScanSample \
	recvMeSample \
	mdScanSample \
	gdScanSample \
	connectSample \
	recvClassicGSample \
	recvQtSample \
	recvCaptureDataSample \
	getVersionLinesSample \
	getParametersSample \
	findUrgPortsSample \
	mdDisconnectSample \
	searchUrgPort \
	logConvert2D \
	convertDollarG \

all : ${TARGET}

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

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

.PHONY : all clean depend
######################################################################
REQUIRE_LIBS = ../ranges.a ../../connection/connection.a ../../common/common.a ../../system/system.a ../../system/sdl/system_sdl.a
${REQUIRE_LIBS} :
	cd ${@D}/ && ${MAKE} ${@F}

${TARGET} : ConnectWithScip.o ${REQUIRE_LIBS}

# DO NOT DELETE

ConnectWithScip.o: ../UrgUsbCom.h ../../connection/IsUsbCom.h
ConnectWithScip.o: ConnectWithScip.h ../../connection/FindComPorts.h
ConnectWithScip.o: ../../connection/Connection.h ../ScipHandler.h
ConnectWithScip.o: ../CaptureMode.h
connectSample.o: ../UrgCtrl.h ../RangeSensor.h ../CaptureMode.h
connectSample.o: ../../system/getTicks.h
convertDollarG.o: ../SensorParameter.h ../ScipHandler.h ../CaptureMode.h
convertDollarG.o: ../UrgCtrl.h ../RangeSensor.h
findUrgPortsSample.o: ../UrgUsbCom.h ../../connection/IsUsbCom.h
findUrgPortsSample.o: ../../connection/FindComPorts.h
gdScanSample.o: ../UrgCtrl.h ../RangeSensor.h ../CaptureMode.h
getParametersSample.o: ../../connection/SerialCtrl.h
getParametersSample.o: ../../connection/Connection.h ConnectWithScip.h
getParametersSample.o: ../ScipHandler.h ../CaptureMode.h ../SensorParameter.h
getVersionLinesSample.o: ../ScipHandler.h ../CaptureMode.h
getVersionLinesSample.o: ../../connection/SerialCtrl.h
getVersionLinesSample.o: ../../connection/Connection.h ConnectWithScip.h
logConvert2D.o: ../ScipHandler.h ../CaptureMode.h ../SensorParameter.h
logConvert2D.o: ../UrgCtrl.h ../RangeSensor.h
logFrontOutput.o: ../ScipHandler.h ../CaptureMode.h ../SensorParameter.h
logFrontOutput.o: ../UrgCtrl.h ../RangeSensor.h
mdDisconnectSample.o: ../UrgCtrl.h ../RangeSensor.h ../CaptureMode.h
mdScanSample.o: ../UrgCtrl.h ../RangeSensor.h ../CaptureMode.h
mdScanSample.o: ../../system/delay.h
meScanSample.o: ../UrgCtrl.h ../RangeSensor.h ../CaptureMode.h
meScanSample.o: ../../system/delay.h
recvCaptureDataSample.o: ../ScipHandler.h ../CaptureMode.h
recvCaptureDataSample.o: ../../connection/SerialCtrl.h
recvCaptureDataSample.o: ../../connection/Connection.h ConnectWithScip.h
recvClassicGSample.o: ../../connection/SerialCtrl.h
recvClassicGSample.o: ../../connection/Connection.h ../ScipHandler.h
recvClassicGSample.o: ../CaptureMode.h ConnectWithScip.h
recvMeSample.o: ../UrgCtrl.h ../RangeSensor.h ../CaptureMode.h
recvMeSample.o: ../ScipHandler.h ../SensorParameter.h
recvMeSample.o: ../../connection/Connection.h ../../system/delay.h
recvQtSample.o: ../ScipHandler.h ../CaptureMode.h
recvQtSample.o: ../../connection/SerialCtrl.h ../../connection/Connection.h
recvQtSample.o: ConnectWithScip.h ../../system/delay.h
searchUrgPort.o: ../UrgUsbCom.h ../../connection/IsUsbCom.h
searchUrgPort.o: ../../connection/FindComPorts.h
