
battle.o: battle.cxx
	c++ -o battle.o -c battle.cxx -Wall

unit.o: unit.cxx
	c++ -o unit.o -c unit.cxx -Wall

options.o: options.cxx
	c++ -o options.o -c options.cxx -Wall

formation.o: formation.cxx
	c++ -o formation.o -c formation.cxx -Wall

terrain.o: terrain.cxx
	c++ -o terrain.o -c terrain.cxx -Wall

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

events.o: events.cxx
	c++ -o events.o -c events.cxx -Wall

battle: battle.o unit.o formation.o options.o terrain.o plot.o events.o
	c++ -o battle battle.o unit.o formation.o options.o terrain.o plot.o events.o -lm -Wall

ballistics: ballistics.cxx
	c++ -o ballistics ballistics.cxx -lm -Wall

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