all: Robot_arm DynamixelHandler
	g++ DynamixelHandler.o Robot_arm.o -o Robot_arm.exe -L/usr/local/lib -ldxl_x64_cpp -lrt
	
Robot_arm: Robot_arm.cpp
	g++ -c Robot_arm.cpp -I/home/ros/SOFTWARE/toolkit-dynamixel/include
	
DynamixelHandler: /home/ros/SOFTWARE/toolkit-dynamixel/src/DynamixelHandler.cpp
	g++ -c -I/home/ros/SOFTWARE/toolkit-dynamixel/include /home/ros/SOFTWARE/toolkit-dynamixel/src/DynamixelHandler.cpp
	
clean:
	rm *.o
	rm *.exe
