# Makefile for simulator/obstacles
# Satofumi KAMIMURA
# $Id$

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -W -Werror $(INCLUDES)
CFLAGS = $(CXXFLAGS)
INCLUDES = -I.. -I../../coordinate -I../../geometry -I../../common -I/usr/include/lua5.1
LDFLAGS =
LDLIBS =


# Target
OBSTACLES_LIB = obstacles.a
TARGET = $(OBSTACLES_LIB)

all : $(TARGET)

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

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

.PHONY : all clean depend
######################################################################
$(OBSTACLES_LIB) : \
	$(OBSTACLES_LIB)(Box.o) \
	$(OBSTACLES_LIB)(Cylinder.o) \
	$(OBSTACLES_LIB)(Obstacle_device.o) \
	$(OBSTACLES_LIB)(luabindObstacles.o) \

# DO NOT DELETE

Box.o: ../OdeModel.h ../../geometry/Position.h ../../geometry/Angle.h
Box.o: ../../geometry/Point3d.h
Cylinder.o: ../OdeModel.h ../../geometry/Position.h ../../geometry/Angle.h
Cylinder.o: ../../geometry/Point3d.h
Obstacle_device.o: ../Device.h ../../coordinate/Coordinate.h
Obstacle_device.o: ../../geometry/Position.h ../../geometry/Angle.h
Box.o: Box.h ../OdeModel.h ../../geometry/Position.h ../../geometry/Angle.h
Box.o: ../../geometry/Point3d.h ../OdeHandler.h ../ModelManager.h
Box.o: ../../common/Color.h
Cylinder.o: Cylinder.h ../OdeModel.h ../../geometry/Position.h
Cylinder.o: ../../geometry/Angle.h ../../geometry/Point3d.h ../OdeHandler.h
Cylinder.o: ../ModelManager.h ../../common/Color.h
Obstacle_device.o: Obstacle_device.h ../Device.h
Obstacle_device.o: ../../coordinate/Coordinate.h ../../geometry/Position.h
Obstacle_device.o: ../../geometry/Angle.h
luabindObstacles.o: luabindObstacles.h Box.h ../OdeModel.h
luabindObstacles.o: ../../geometry/Position.h ../../geometry/Angle.h
luabindObstacles.o: ../../geometry/Point3d.h Cylinder.h
