# Makefile simple

all: eatFruit

fruits.o   :  fruits.cc fruits.h
	g++ -c fruits.cc -o fruits.o

persons.o  :  persons.cc persons.h fruits.h
	g++ -c persons.cc -o persons.o

eatFruit.o :  fruits.h persons.h eatFruit.cc
	g++ -c eatFruit.cc -o eatFruit.o

eatFruit   :  fruits.o persons.o eatFruit.o
	g++ eatFruit.o persons.o fruits.o -o eatFruit
