low_orbit.o: low_orbit.cxx
	g++ -o low_orbit.o -c low_orbit.cxx

state_vector.o: state_vector.cxx
	g++ -o state_vector.o -c state_vector.cxx

units.o: units.cxx
	g++ -o units.o -c units.cxx

math_helpers.o: math_helpers.cxx
	g++ -o math_helpers.o -c math_helpers.cxx

plot.o: plot.cxx
	g++ -o plot.o -c plot.cxx

celestial_body.o: celestial_body.cxx
	g++ -o celestial_body.o -c celestial_body.cxx

rendezvous_target.o: rendezvous_target.cxx
	g++ -o rendezvous_target.o -c rendezvous_target.cxx

burn.o: burn.cxx
	g++ -o burn.o -c burn.cxx

site.o: site.cxx
	g++ -o site.o -c site.cxx

leo_targeting: low_orbit.o state_vector.o units.o plot.o burn.o site.o celestial_body.o math_helpers.o rendezvous_target.o
	g++ -o leo_targeting low_orbit.o state_vector.o units.o plot.o burn.o celestial_body.o site.o math_helpers.o rendezvous_target.o -lm

clean: 
	rm *.o; rm *.*~
