# Makefile for range_sensor/ethernet_samples
# Satofumi KAMIMURA
# $Id$

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

# Target
TARGET = \
	captureIntensitySample \

all : $(TARGET)

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

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

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

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

$(TARGET) : $(REQUIRE_LIBS)

# DO NOT DELETE

captureIntensitySample.o: ../UrgDevice.h ../RangeSensor.h
captureIntensitySample.o: ../RangeCaptureMode.h ../../math/MathUtils.h
captureIntensitySample.o: ../../system/DetectOS.h
captureIntensitySample.o: ../../coordinate/Coordinate.h
captureIntensitySample.o: ../../geometry/Position.h ../../geometry/Angle.h
captureIntensitySample.o: ../../connection/TcpipSocket.h
captureIntensitySample.o: ../../connection/Connection.h ../../system/delay.h
