#
#       GASystem
#       Mike Morrow
#       September 1989
#

# This is the makefile for the word finding and the maze running GAs
# The default (first) dependency will make both

# This make file assumes Microsoft C



OBJECTS = drive.obj table.obj param.obj gene.obj util.obj popl.obj exec.obj
OBJWORD = objword.obj
OBJMAZE = object.obj

CFLAGS = -c -Ox
CC = cl $(CFLAGS)


all: ga.exe gaword.exe

ga.exe : $(OBJECTS) $(OBJMAZE)
	cl -o ga $(OBJECTS) $(OBJMAZE)

gaword.exe : $(OBJECTS) $(OBJWORD)
	cl -o gaword $(OBJECTS) $(OBJWORD)


drive.obj : drive.c ga.h table.h
	 $(CC)  drive.c
	
	
table.obj : table.c table.h
	 $(CC)  table.c
	
param.obj : param.c table.h param.h
	 $(CC)  param.c

gene.obj : gene.c ga.h table.h param.h
	 $(CC)  gene.c
	
	
util.obj : util.c
	$(CC) util.c

popl.obj : popl.c ga.h gene.h
	$(CC) popl.c
	
exec.obj : exec.c ga.h table.h util.h
	$(CC) exec.c



objword.obj: objword.c ga.h
	$(CC) objword.c

object.obj : object.c ga.h
	 $(CC)  object.c
