CPP =	g++
CPPFLAGS =
DEBUG =	-g
RM =	rm -f
OBS	= ChromosomeDistribution.o Chromosome.o DomesticationException.o Individual.o
GLOBAL_DEPS	=

domestication:	$(OBS) Domestication.o
	$(CPP) $(CFLAGS) $(DEBUG) $(OBS) Domestication.o -o domestication

testdomestication:	$(OBS) testdomestication.o
	$(CPP) $(CFLAGS) $(DEBUG) $(OBS) testdomestication.o -o testdomestication

Domestication.o:	Domestication.cpp Chromosome.h ChromosomeDistribution.h Individual.h DomesticationException.h
	$(CPP) -c $(DEBUG) -o Domestication.o Domestication.cpp

testdomestication.o:	testdomestication.cpp Chromosome.h
	$(CPP) -c $(DEBUG) -o testdomestication.o testdomestication.cpp

Chromosome.o:	Chromosome.cpp Chromosome.h DomesticationException.h
	$(CPP) -c $(DEBUG) -o Chromosome.o Chromosome.cpp

ChromosomeDistribution.o:	ChromosomeDistribution.cpp ChromosomeDistribution.h Chromosome.h DomesticationException.h
	$(CPP) -c $(DEBUG) -o ChromosomeDistribution.o ChromosomeDistribution.cpp

Individual.o:	Individual.cpp Individual.h Chromosome.h DomesticationException.h
	$(CPP) -c $(DEBUG) -o Individual.o Individual.cpp

DomesticationException.o:	DomesticationException.cpp DomesticationException.h
	$(CPP) -c $(DEBUG) -o DomesticationException.o DomesticationException.cpp

clean:
	$(RM) *.o testdomestication domestication
