# Makefile for range_finder
# Satofumi KAMIMURA
# $Id: Makefile 1545 2009-11-22 10:03:00Z satofumi $

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -W -Werror $(INCLUDES)
INCLUDES = -I../coordinate -I../geometry -I../connection -I../system -I../timestamp -I../math
LDFLAGS =
LDLIBS =


# Target
RANGE_FINDER_LIB = range_finder.a
TARGET = $(RANGE_FINDER_LIB)

all : $(TARGET)

clean :
	$(RM) *.o $(TARGET)
	cd samples/ && $(MAKE) clean

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

.PHONY : all clean depend
######################################################################
$(RANGE_FINDER_LIB) : \
	$(RANGE_FINDER_LIB)(ScipHandler.o) \
	$(RANGE_FINDER_LIB)(UrgDevice.o) \
	$(RANGE_FINDER_LIB)(UrgDistance.o) \
	$(RANGE_FINDER_LIB)(findUrgPorts.o) \
	$(RANGE_FINDER_LIB)(convert2d.o) \
	$(RANGE_FINDER_LIB)(convert3d.o) \

# DO NOT DELETE

RangeFinder.o: ../math/MathUtils.h ../system/DetectOS.h
UrgDevice.o: ../coordinate/Coordinate.h ../geometry/Position.h
UrgDevice.o: ../geometry/Angle.h RangeFinder.h ../math/MathUtils.h
UrgDevice.o: ../system/DetectOS.h ../timestamp/Timestamp.h
UrgDistance.o: UrgDevice.h ../coordinate/Coordinate.h ../geometry/Position.h
UrgDistance.o: ../geometry/Angle.h RangeFinder.h ../math/MathUtils.h
UrgDistance.o: ../system/DetectOS.h ../timestamp/Timestamp.h
convert2d.o: ../geometry/Position.h ../geometry/Angle.h ../geometry/Point.h
convert3d.o: ../geometry/Position3d.h ../geometry/Position.h
convert3d.o: ../geometry/Angle.h ../geometry/Point3d.h
ScipHandler.o: ScipHandler.h RangeFinderParameter.h
ScipHandler.o: ../connection/Connection.h ../connection/ConnectionUtils.h
ScipHandler.o: ../system/ticks.h ../system/log_printf.h ../system/delay.h
UrgDevice.o: UrgDevice.h ../coordinate/Coordinate.h ../geometry/Position.h
UrgDevice.o: ../geometry/Angle.h RangeFinder.h ../math/MathUtils.h
UrgDevice.o: ../system/DetectOS.h ../timestamp/Timestamp.h ScipHandler.h
UrgDevice.o: RangeFinderParameter.h ../connection/SerialDevice.h
UrgDevice.o: ../connection/Connection.h
UrgDistance.o: UrgDistance.h UrgDevice.h ../coordinate/Coordinate.h
UrgDistance.o: ../geometry/Position.h ../geometry/Angle.h RangeFinder.h
UrgDistance.o: ../math/MathUtils.h ../system/DetectOS.h
UrgDistance.o: ../timestamp/Timestamp.h
convert2d.o: convert2d.h ../geometry/Position.h ../geometry/Angle.h
convert2d.o: ../geometry/Point.h RangeFinder.h ../math/MathUtils.h
convert2d.o: ../system/DetectOS.h
convert3d.o: convert3d.h ../geometry/Position3d.h ../geometry/Position.h
convert3d.o: ../geometry/Angle.h ../geometry/Point3d.h
findUrgPorts.o: findUrgPorts.h ../connection/FindComPorts.h
findUrgPorts.o: ../system/DetectOS.h
