#
# Makefile - A Makefile for compiling the source of the Evolutionary
# Algorithm Library.
#
# Author: J.I. van Hemert
# Last Revision: 17-Jun-1998
#

CFILES = \
	Common/StringC.cc \
	Common/RandomA.cc \
	Common/RandomC.cc \
	ExperimentA.cc \
	ExperimentC.cc \
	ConfigurationA.cc \
	ConfigurationC.cc \
	StatisticsA.cc \
	StatisticsC.cc \
	Error/ExceptionA.cc \
	Error/WarningC.cc \
	Error/ErrorC.cc \
	Error/InternalErrorC.cc \
	Error/LibraryErrorC.cc \
	Core/CoreFactoryC.cc \
	Core/EvolutionaryAlgorithmA.cc \
	Core/EvolutionaryAlgorithmC.cc \
	Core/PopulationA.cc \
	Core/PopulationC.cc \
	Core/PoolA.cc \
	Core/PoolC.cc \
	Core/PoolReverseIteratorC.cc \
	Core/PoolIteratorC.cc \
	Core/GenotypeA.cc \
	Core/GenotypeC.cc \
	Core/StopConditionA.cc \
	Core/StopConditionC.cc \
	Core/InitializationA.cc \
	Core/InitializationC.cc \
	Problem/ProblemFactoryC.cc \
	Problem/ProblemA.cc \
	Problem/DataA.cc \
	Problem/DataC.cc \
	Problem/FitnessFunctionA.cc \
	Problem/FitnessFunctionC.cc \
	Reproduction/ReproductionFactoryC.cc \
	Reproduction/ReproductionA.cc \
	Reproduction/ReproductionC.cc \
	Reproduction/ProduceOperatorA.cc \
	Reproduction/ProduceOperatorC.cc \
	Reproduction/ChangeOperatorA.cc \
	Reproduction/ChangeOperatorC.cc \
	Reproduction/SelectParentsA.cc \
	Reproduction/SelectParentsC.cc \
	Reproduction/SelectSurvivorsA.cc \
	Reproduction/SelectSurvivorsC.cc

HFILES = $(patsubst %.$(CSUFFIX),../include/%.$(HSUFFIX),$(CFILES))
TARGET = libea.a

########################## NO CHANGES BELOW THIS LINE #######################

include ../Makefile.settings

$(TARGET): $(OFILES) $(EXTRAOFILES) $(HFILES)
	$(AR) $@ $^
	$(RANLIB) $@

include ../Makefile.common

ifeq ($(DEPENDFILE), $(wildcard $(DEPENDFILE)))
include $(DEPENDFILE)
endif

$(DEPENDFILE) depend dep:
	-@$(RM) $(DEPENDFILE)
	@echo "Creating $(DEPENDFILE)"
	@$(CC) $(INCPATH) -M $(CFILES) > $(DEPENDFILE)
	$(MAKE)

# eof Makefile
