# Makefile for Robot Controller
# (C) 2005 Jason Hunt - huntjas2@msu.edu
#

server:	server.o camera.o network.o compress.o failsafe.o controller.o gun.o
	g++	server.o camera.o network.o compress.o failsafe.o controller.o gun.o	-pthread -ljpeg -o server -O4
	cp server /bin/server

server.o:	server.cpp server.h camera.h failsafe.h controller.h network.h version.h
	g++	-c server.cpp -o server.o -O4
	
camera.o:	camera.cpp camera.h server.h compress.h 
	g++	-c camera.cpp -o camera.o -O4
	
network.o:	network.cpp network.h server.h camera.h controller.h gun.h
	g++	-c network.cpp -o network.o -O4
	
compress.o:	compress.cpp camera.h
	g++	-c compress.cpp -o compress.o -O4
	
failsafe.o:	failsafe.cpp failsafe.h controller.h
	g++	-c failsafe.cpp	-o failsafe.o -O4
	
controller.o:	controller.cpp controller.h
	g++	-c controller.cpp -o controller.o -O4
	
gun.o:	gun.cpp gun.h
	g++	-c gun.cpp -o gun.o 
	





	