# Makefile for running/samples
# Satofumi KAMIMURA
# $Id: Makefile 1038 2009-06-18 09:57:01Z satofumi $

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

# Target
TARGET = \
	run_timestamp \
	followLine \

all : $(TARGET)

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

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

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

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

$(TARGET) : $(REQUIRE_LIBS)

# DO NOT DELETE

followLine.o: ../BeegoDrive.h ../../coordinate/Coordinate.h
followLine.o: ../../geometry/Position.h ../../geometry/Angle.h ../Running.h
followLine.o: ../../geometry/Point.h ../../timestamp/Timestamp.h
followLine.o: ../WheelDirect.h ../../system/delay.h
run_timestamp.o: ../BeegoDrive.h ../../coordinate/Coordinate.h
run_timestamp.o: ../../geometry/Position.h ../../geometry/Angle.h
run_timestamp.o: ../Running.h ../../geometry/Point.h
run_timestamp.o: ../../timestamp/Timestamp.h ../WheelDirect.h
