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

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -Werror -W $(INCLUDES) `sdl-config --cflags`
INCLUDES = -I.. -I../../coordinate -I../../geometry -I../../system -I../../timestamp -I../../math
LDFLAGS =
LDLIBS = `sdl-config --libs` #-lsetupapi

# Target
TARGET = \
	urg_timestamp \
	findUrgPortsSample \
	gd_capture \
	md_capture \
	urg_finder \

all : $(TARGET)

clean :
	$(RM) *.o $(TARGET) error_log.txt

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

.PHONY : all clean depend
######################################################################
REQUIRE_LIBS = ../range_finder.a ../../coordinate/coordinate.a ../../geometry/geometry.a ../../connection/connection.a ../../system/system.a ../../system/sdl/system_sdl.a

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

$(TARGET) : $(REQUIRE_LIBS)

# DO NOT DELETE

gd_capture.o: ../UrgDevice.h ../../coordinate/Coordinate.h
gd_capture.o: ../../geometry/Position.h ../../geometry/Angle.h
gd_capture.o: ../RangeFinder.h ../../math/MathUtils.h ../../system/DetectOS.h
gd_capture.o: ../../timestamp/Timestamp.h
md_capture.o: ../UrgDevice.h ../../coordinate/Coordinate.h
md_capture.o: ../../geometry/Position.h ../../geometry/Angle.h
md_capture.o: ../RangeFinder.h ../../math/MathUtils.h ../../system/DetectOS.h
md_capture.o: ../../timestamp/Timestamp.h ../../system/delay.h
urg_finder.o: ../findUrgPorts.h
urg_timestamp.o: ../UrgDevice.h ../../coordinate/Coordinate.h
urg_timestamp.o: ../../geometry/Position.h ../../geometry/Angle.h
urg_timestamp.o: ../RangeFinder.h ../../math/MathUtils.h
urg_timestamp.o: ../../system/DetectOS.h ../../timestamp/Timestamp.h
