
worldbuilder.o: worldbuilder.cxx
	g++ -o worldbuilder.o -c worldbuilder.cxx -Wall

star.o: star.cxx
	g++ -o star.o -c star.cxx -Wall

planet.o: planet.cxx
	g++ -o planet.o -c planet.cxx -Wall

orbital_solver.o: orbital_solver.cxx
	g++ -o orbital_solver.o -c orbital_solver.cxx -Wall

surface.o: surface.cxx
	g++ -o surface.o -c surface.cxx -Wall

material.o: material.cxx
	g++ -o material.o -c material.cxx -Wall

gases.o : gases.cxx
	g++ -o gases.o -c gases.cxx -Wall

atmosphere.o : atmosphere.cxx
	g++ -o atmosphere.o -c atmosphere.cxx -Wall

utilities.o: utilities.cxx
	g++ -o utilities.o -c utilities.cxx -Wall

weather.o: weather.cxx
	g++ -o weather.o -c weather.cxx -Wall

checks.o: checks.cxx
	g++ -o checks.o -c checks.cxx -Wall

body.o: body.cxx
	g++ -o body.o -c body.cxx -Wall

geology.o: geology.cxx
	g++ -o geology.o -c geology.cxx -Wall

terrain_elements.o: terrain_elements.cxx
	g++ -o terrain_elements.o -c terrain_elements.cxx -Wall

terrain_relief.o: terrain_relief.cxx
	g++ -o terrain_relief.o -c terrain_relief.cxx -Wall

worldbuilder: worldbuilder.o star.o planet.o orbital_solver.o surface.o material.o gases.o atmosphere.o utilities.o weather.o checks.o body.o geology.o terrain_elements.o terrain_relief.o
	g++ -o world worldbuilder.o star.o planet.o orbital_solver.o surface.o material.o gases.o atmosphere.o utilities.o weather.o checks.o body.o geology.o terrain_elements.o terrain_relief.o -lm -Wall

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