# 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
LDFLAGS =
LDLIBS = `sdl-config --libs`

# Target
TARGET = \
	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 ../../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 ../WheelDirect.h ../../system/delay.h
