# Makefile for Traveling Salesman GA solver # Thomas Pederson, 950505 CC = g++ FLAGS = -c -g TRAVEL_OBJS = travel.o gene.o chromo.o pop.o TRAVEL_SRCS = travel.cc gene.h gene.cc chromo.h chromo.cc pop.h pop.cc TARGET = travel_gnu all: $(TRAVEL_OBJS) @ \rm -f $(TARGET) ; @ echo Linking $(TARGET) ; @ $(CC) -I/usr/include/CC $(TRAVEL_OBJS) -g -o $(TARGET) -lm clean: @ echo Removing @ \rm -f *.o $(TARGET) depend: @ echo "Making dependencies." @ makedepend -g *.cc @ $(CC) -I/usr/include/CC $(TRAVEL_OBJS) -g >> Makefile ############################################################# # DO NOT DELETE THIS LINE -- make depend depends on it.