
objects = main.o lifeform.o animal.o human.o

default: socrat

main.o: main.cpp human.h animal.h lifeform.h
	g++ -c main.cpp

lifeform.o: lifeform.cpp lifeform.h
	g++ -c lifeform.cpp

animal.o: animal.cpp animal.h lifeform.h
	g++ -c animal.cpp

human.o: human.cpp human.h animal.h lifeform.h
	g++ -c human.cpp

socrat: $(objects)
	g++ $(objects) -o socrat

clean:
	rm *.o
	rm socrat
