# Makefile for simulator
# Satofumi KAMIMURA
# $Id: Makefile 1033 2009-06-17 22:16:39Z satofumi $

# Compile options
CC = g++
CXXFLAGS = -g -O0 -Wall -W -Werror $(INCLUDES)
CFLAGS = $(CXXFLAGS)
INCLUDES = -I/usr/include/lua5.1 -I. -I../system -I../coordinate -I../geometry -I../connection -Ibeego_drive -I../running/beego_drive -Irange_finder -I../monitoring -I../range_finder -Iobstacles -I../common -I../lua
LDFLAGS =
LDLIBS =


# Target
SIMULATOR_LIB = simulator.a
TARGET = $(SIMULATOR_LIB)

all : $(TARGET)

clean :
	$(RM) *.o $(TARGET)
	cd samples/ && $(MAKE) clean
	cd beego_drive/ && $(MAKE) clean
	cd range_finder/ && $(MAKE) clean
	cd obstacles/ && $(MAKE) clean

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

.PHONY : all clean depend
######################################################################
$(SIMULATOR_LIB) : \
	$(SIMULATOR_LIB)(DeviceManager.o) \
	$(SIMULATOR_LIB)(ModelManager.o) \
	$(SIMULATOR_LIB)(EventScheduler.o) \
	$(SIMULATOR_LIB)(ExecutionType.o) \
	$(SIMULATOR_LIB)(OdeHandler.o) \
	$(SIMULATOR_LIB)(MarkerManager.o) \
	$(SIMULATOR_LIB)(luabindSimulator.o) \
	$(SIMULATOR_LIB)(gl_draw.o) \
	$(SIMULATOR_LIB)(CameraViewManager.o) \

# DO NOT DELETE

Device.o: ../coordinate/Coordinate.h ../geometry/Position.h
Device.o: ../geometry/Angle.h
MarkerManager.o: ModelManager.h ../common/Color.h ../geometry/Point.h
ModelManager.o: ../common/Color.h
OdeModel.o: ../geometry/Position.h ../geometry/Angle.h ../geometry/Point3d.h
SimulationMain.o: EventScheduler.h
SimulationWindow.o: ExecutionType.h
qrk_main.o: SimulationWindow.h ExecutionType.h
CameraViewManager.o: CameraViewManager.h ../geometry/Angle.h
DeviceManager.o: DeviceManager.h EventScheduler.h
DeviceManager.o: beego_drive/BeegoDrive_device.h Device.h
DeviceManager.o: ../coordinate/Coordinate.h ../geometry/Position.h
DeviceManager.o: ../geometry/Angle.h OdeModel.h ../geometry/Point3d.h
DeviceManager.o: range_finder/UrgDevice_device.h ../system/log_printf.h
DrawEnvironmentWidget.o: DrawEnvironmentWidget.h ModelManager.h
DrawEnvironmentWidget.o: ../common/Color.h EventScheduler.h
DrawEnvironmentWidget.o: CameraViewManager.h gl_draw.h ../geometry/Angle.h
EventScheduler.o: EventScheduler.h Device.h ../coordinate/Coordinate.h
EventScheduler.o: ../geometry/Position.h ../geometry/Angle.h
EventScheduler.o: ../system/ManagedTicks.h OdeHandler.h ModelManager.h
EventScheduler.o: ../common/Color.h ../system/Thread.h ../system/Lock.h
EventScheduler.o: ../system/ConditionVariable.h ../system/LockGuard.h
EventScheduler.o: ../monitoring/system_ticks.h ../monitoring/system_delay.h
ExecutionType.o: ExecutionType.h
MarkerManager.o: MarkerManager.h ModelManager.h ../common/Color.h
MarkerManager.o: ../geometry/Point.h ExecutionType.h OdeHandler.h
MarkerManager.o: EventScheduler.h
ModelManager.o: ModelManager.h ../common/Color.h
OdeHandler.o: OdeHandler.h
SimulationMain.o: SimulationMain.h EventScheduler.h ExecutionType.h
SimulationMain.o: ModelManager.h ../common/Color.h ../system/fileExist.h
SimulationMain.o: ../lua/luabindInit.h luabindSimulator.h
SimulationMain.o: obstacles/luabindObstacles.h ../lua/luabindGeometry.h
SimulationMain.o: ../lua/luabindSystem.h ../lua/LuaHandler.h
SimulationMain.o: ../system/log_printf.h
SimulationWindow.o: SimulationWindow.h ExecutionType.h SimulationMain.h
SimulationWindow.o: EventScheduler.h TicksControlWidget.h
SimulationWindow.o: DrawEnvironmentWidget.h DeviceManager.h
SimulationWindow.o: ../system/fileExist.h
TicksControlWidget.o: TicksControlWidget.h
gl_draw.o: gl_draw.h ../common/Color.h
luabindSimulator.o: luabindSimulator.h beego_drive/BeegoDrive_device.h
luabindSimulator.o: Device.h ../coordinate/Coordinate.h
luabindSimulator.o: ../geometry/Position.h ../geometry/Angle.h OdeModel.h
luabindSimulator.o: ../geometry/Point3d.h range_finder/UrgDevice_device.h
luabindSimulator.o: DeviceManager.h CameraViewManager.h
