#
# Makefile - A Makefile for compiling the source of the EA library.
#
# Author: J.I. van Hemert
# Last Revision: 09-Jun-1998
#

CFILES = example.cc ProblemC.cc MyProblemFactoryC.cc ExperimentC.cc \
	RandomCsp/randomcsp.cc RandomCsp/csp.cc
HFILES = ProblemC.h MyProblemFactoryC.h ExperimentC.h \
	RandomCsp/randomcsp.h RandomCsp/csp.h
BIN = example

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

include ../Makefile.settings

# Let's force a recompile/link:
.PHONY: $(BIN)

$(BIN): $(OFILES) $(EXTRAOFILES)
	$(LINKER) $(LDFLAGS) $(DEFINES) -o $@ $^ $(LIBPATH) $(LIBS)


include ../Makefile.common

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

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

# eof Makefile
