# Makefile for positioning/samples
# Satofumi KAMIMURA
# $Id: Makefile 1192 2009-07-30 09:10:18Z satofumi $

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

# Target
TARGET = \
	printDirection

all : $(TARGET)

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

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

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

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

$(TARGET) : $(REQUIRE_LIBS)

# DO NOT DELETE

printDirection.o: ../LrfDirection.h ../../range_finder/UrgDevice.h
printDirection.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
printDirection.o: ../../geometry/Angle.h ../../range_finder/RangeFinder.h
printDirection.o: ../../math/MathUtils.h ../../system/DetectOS.h
printDirection.o: ../../timestamp/Timestamp.h
