# Makefile - Genetic Algorithm
# Copyright (C) 2007 Christopher Wellons
#
# This makefile should be used with the GNU version of make. Other
# versions may not handle the file correctly. It may be avaliable as
# gmake on some systems.

CXXFLAGS = -O2 -W -Wall -g

# Objects
objects   = genalg.o travel.o

# Solution
travel : $(objects)
	$(CXX) $(CXXFLAGS) $^ -o $@

# Build all of the objects
travel.o : travel.cpp genalg.h
genalg.o : genalg.cpp genalg.h

# Phony targets
.PHONY : clean tar zip dir single

clean :
	$(RM) $(objects) travel
