# Makefiel for timestamp/samples
# Satofumi KAMIMURA
# $Id$

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


# Target
TARGET = \
	set_timestamp \
	sync_timestamp \

all : $(TARGET)

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

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

.PHONY : all clean depend
######################################################################
REQUIRE_LIBS = ../timestamp.a ../../running/running.a ../../range_finder/range_finder.a ../../simulator/simulator.a ../../coordinate/coordinate.a ../../geometry/geometry.a ../../running/runCtrl/cpp/runCtrl.a ../../running/runCtrl/utils/cpp/utils.a ../../running/runCtrl/crdCtrl/cpp/crdCtrl.a ../../running/runCtrl/ticksCtrl/cpp/ticksCtrl.a ../../connection/connection.a ../../connection/sdl/connection_sdl.a ../../system/system.a ../../system/sdl/system_sdl.a

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

$(TARGET) : $(REQUIRE_LIBS)

# DO NOT DELETE

set_timestamp.o: ../TimestampManager.h ../../range_finder/UrgDevice.h
set_timestamp.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
set_timestamp.o: ../../geometry/Angle.h ../../range_finder/RangeFinder.h
set_timestamp.o: ../../math/MathUtils.h ../../system/DetectOS.h
set_timestamp.o: ../Timestamp.h ../../system/ticks.h
sync_timestamp.o: ../TimestampManager.h ../../running/BeegoDrive.h
sync_timestamp.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
sync_timestamp.o: ../../geometry/Angle.h ../../running/Running.h
sync_timestamp.o: ../../geometry/Point.h ../Timestamp.h
sync_timestamp.o: ../../running/WheelDirect.h ../../range_finder/UrgDevice.h
sync_timestamp.o: ../../range_finder/RangeFinder.h ../../math/MathUtils.h
sync_timestamp.o: ../../system/DetectOS.h ../../system/ticks.h
